# check for SNMPd # prints out system name, location, contact and system uptime define command { command_name check_snmpd command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -P 2c -m SNMPv2-MIB -m HOST-RESOURCES-MIB -o system.sysName.0,system.sysLocation.0,system.sysContact.0,hrSystemUptime.0 $ARG1$ } # Check any SNMP OID. # Useful args: # -C community # -o OID # -c Critical Level # -w warning Level define command { command_name check_snmp command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -P 2c $ARG1$ } # SNMPD service define service { use generic-service name snmpd service_description snmpd register 0 normal_check_interval 5 retry_check_interval 1 notification_interval 120 check_command check_snmpd!-C public } # Any SNMP check define service { use generic-service name snmp service_description snmp register 0 check_command check_snmp!-C public }