Hi there - were you able to resolve this issue?
I am too having problem but not too sure if yours is the same as I have.
Here's the error I'm getting when launching the command manually via terminal:
root@sybasedba2034:/usr/local/nagios# /usr/local/nagios/libexec/check_snmp -H 172.168.1.244 -C 'dbscomm' -o 'sysUpTime.0'
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 172.168.1.244:161 sysUpTime.0
In Nagios admin page I get this error:
"SNMP problem - No data received from host"
Email notification I get this:
***** NAGIOS *****
Notification Type: PROBLEM
Host: ciscoasa-firewall
State: DOWN
Address: 172.168.1.244
Info: PING CRITICAL - Packet loss = 100%
Date/Time: Fri Apr 24 15:49:50 EDT 2009
Please advise.
Thank you!
DB
Quote:
Originally Posted by sp149
i'm trying to monitor a switch with nagios
i am using the default configuration as mentioned in the nagios monitoring document
snmp community string is not public
when i give the
#/usr/local/nagios/libexec/check_snmp -H XX.XX.XX.XX -C 'xxxxx' -o 'sysUpTime.0'
I get the output
SNMP OK - Timeticks: (297945372) 34 days, 11:37:33.72 | SNMPv2-MIB::sysUpTime.0=Timeticks: (297945372) 34 days, 11:37:33.72
But in nagios web interface i get the error
========
Current Status: UNKNOWN
Status Information: SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] XX.XX.XX.XX:161 sysUpTime.0
========
Can anyone help me..i am using all default configuration files
that comes along with nagios installation.
========
define service{
use generic-service ; Inherit values from a template
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
=============
define host{
use generic-switch
host_name linksys-srw224p
alias Linksys SRW224P Switch
address XX.XX.XX.XX
hostgroups switches
}
===========
# Monitor uptime via SNMP
define service{
use generic-service
host_name linksys-srw224p
service_description Uptime
check_command check_snmp!-C public -o sysUpTime.0
}
==========
command.cfg configuration
# 'check_snmp' command definition
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
|