Code: Select all
[root@localhost libexec]# ./check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des
SNMP OK - -63 | iso.3.6.1.4.1.4458.1000.1.5.56.2.0=-63
Host config file:
When I tried to adddefine host {
use linux-server
host_name radwin1
alias radwinradio1
address 192.168.1.110
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
contacts nagiosadmin
notification_interval 60
notification_period 24x7
first_notification_delay 0
notifications_enabled 1
}
define service{
use generic-service
host_name radwin1
service_description PING
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
}
Code: Select all
define service{
use generic-service
host_name radwin1
service_description PING
check_command check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des W -w 60 -c 70
}
Code: Select all
Checking objects...
Error: Service check command 'check_snmp -H 192.168.1.110 -o .1.3.6.1.4.1.4458.1000.1.5.56.2.0 -P 3 --seclevel=authPriv --secname=admin --authproto=md5 --authpasswd='netman123' --privpasswd='netman123' --privproto=des W -w 60 -c 70' specified in service 'PING' for host 'radwin1' not defined anywhere!