I wanted to be informed through email when an SNMP device is down. I created a physical device on the map, configured the SNMP access and so on. I created a Custom Attributes (tab “Custom Attributes”) onto the SNMP sysObjectID variable. I created a rule indicating what to do if the result of the sysObjectID query (snmp get) is not the expected (in this case a timeout) and I just written a line for sending an email into the corresponding script file. This does not work.
More precisely, I added the following “Comparator” : VALUE Does Not Equal To “18.104.22.168.4.1.422.214.171.12460”. This is the expected sysObjectID. Then I activated the “Change Element Status” and the “Execute Script". And this does not work. Please see the attached screenshot jpeg file.
For testing purpose I inversed the logic. I switched the Comparator to VALUE Equals to and then I received a lot of email. So both, my rule and my script, are correct.
Please note that I tested both the full dot ASN1/SMI notation and the mixed dot and string notation here “enterprises. 4126.96.36.19960”. It seems that only the full dot notation should be used.
Please, you just have to configure an email address into an SMTP sever, configure your software as I described and write a script of one line:
SendMail("192.168.1.65", "firstname.lastname@example.org", "6560 Down", "6560 Down", "email@example.com") but configured for you.
Please, this looks/sounds like a bug. Can you confirm this? Or, is there another way to be notified by email when a device is down?
That is for SNMP. But for ICMP Ping monitoring? How to do? Possible?