I have had several remote systems where the Cisco Switches have somehow went back to factory settings recently so I lose SNMP communication to the Switch while the Router is still up at the site.
My thought process is to set up a Factory Sensor with logic operations to compare a sensor on the Router with a sensor on the Switch so I can set up a notification to be emailed only when the Router is online and the Switch is offline.
The issue I ran into is when the Switch is offline, its sensors go into the error state so the Factory Sensor goes into error as it can't do any logic at that point. The remote site is not always up so I don't want to be emailed when the whole site is offline.
My question is, is there a way I can run a custom sensor script to have a sensor in error status return a integer value or even show that the sensor is still up with an integer? I'm not familiar with the PRTG scripts but do understand basics of programming. If someone could help me out or point me in the right direction, that would be appreciated. Thanks.