Community discussions

MikroTik App
 
gianmaxfactor
just joined
Topic Author
Posts: 17
Joined: Wed Nov 15, 2017 6:25 pm

Compare Name with FirstDnsName

Sat Sep 19, 2020 3:04 pm

Hello guys,

why doesn't this probe work in your mind?

Name: check_name
Type: Function

Error: if(string_substring(device_property("Name"),0,10)=string_substring(device_property("FirstDnsName"),0,10),"",device_property("FirstDnsName"))

Thanks
Gian
 
gianmaxfactor
just joined
Topic Author
Posts: 17
Joined: Wed Nov 15, 2017 6:25 pm

Re: Compare Name with FirstDnsName

Sun Sep 20, 2020 8:22 am

Hello Gian,

give it a try:

Name: check_name
Type: Function
Agent: default
Available: not(ping(device_property("FirstAddress")))
Error: if(string_find(device_property("Name"),device_property("FirstDnsName"))=0,"",device_property("FirstDnsName"))
Value: string_find(device_property("Name"),device_property("FirstDnsName")
Unit: #

Let me know!
Max
 
User avatar
itsupportschulen
just joined
Posts: 22
Joined: Fri May 24, 2013 10:57 am
Location: Germany, Herford
Contact:

Re: Compare Name with FirstDnsName

Sun Jan 09, 2022 5:14 pm

some alternative errorline to check DNS missmatch on devices with SNMP activated:

Error: if(string_find(oid("1.3.6.1.2.1.1.5.0"),device_property("FirstDnsName"))=0,"",concatenate("!DNS-Missmatch! --> ",oid("1.3.6.1.2.1.1.5.0")))

Who is online

Users browsing this forum: No registered users and 4 guests