SNMPD: Remotely query return code of scripts

monitoring, systems Add comments

To remotely check the return code of a script via snmpd add the following to snmpd.conf:
exec myname /path/to/script
After recycling the snmpd daemon the return code could be obtained via the following OID:
1.3.6.1.4.1.2021.8.1.100.1
If you have more than one exec line the last digit is incremented by one for each script.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in