This is the website that I am tying to follow - https://assets.nagios.com/downloads/nag ... uters.html
These are all the ways I have tird to add the OID to the switch.cfg file:
Code: Select all
define service {
use generic-service ; Inherit values from a template
host_name Accessories
service_description Uptime
check_command check_snmp!-C CMPublic -o hrSystemUptime.1.3.6.1.2.1.25.1.1.0
}
Code: Select all
define service {
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C CMPublic -o sysUpTime.1.3.6.1.2.1.25.1.1.0
}
Code: Select all
define service {
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C CMPublic -o .1.3.6.1.2.1.25.1.1.0
}
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory
When I navigate to /usr/local/nagios/libexec there is a check_smtp
-rwxr-xr-x. 1 nagios nagios 272336 Aug 15 10:07 check_smtp