problems with snmpget & APAN
Bunting, Glen, IG
GBunting864 at Worldsavings.com
Thu Apr 17 00:00:35 CEST 2003
All,
I am currently running nagios with APAN for some services. I am trying to get the bandwidth usage of one of our win2k boxes. I think I have everything set up correctly, but from the nagios page I am getting an unknown status with the message the snmp returned no data. when I run the command from the command line, I get SNMP OK - 19099227. When I look at /tmp/apan.debug, I get the following error:
Wed Apr 16 14:38:10 PDT 2003 Args: snmpget GlenNT Net-usage 1050529090 10 20
Could not insert ':IN' , '1050529090:19089543' into /usr/local/nagios/rrd/GlenNT_Net-usage.rrd
Wed Apr 16 14:39:10 PDT 2003 Args: snmpget GlenNT Net-usage 1050529150 10 20
Could not insert ':IN' , '1050529150:19090595' into /usr/local/nagios/rrd/GlenNT_Net-usage.rrd
Here are the relevant configs:
apan.cfg:
# Bandwidth Usage
GlenNT;Net-usage;/usr/local/nagios/rrd/GlenNT_Net-usage.rrd;public:.1.3.6.1.2.1.2.2.1.10.1|public:.1.3.6.1.2.1.2.2.2.1.16.1;IN:LINE2 OUT:LINE2;Network throughput;Bytes/Sec;
services.cfg:
# Service definition for bandwidth usage
define service{
host_name GlenNT
service_description Net-usage
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command apan!snmpget!10!20
use generic-service
normal_check_interval 1
}
The rrd was created with the following command:
rrdtool create /usr/local/nagios/rrd/GlenNT_Net-usage.rrd -s 60 DS:IN:COUNTER:300:0:U DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800
What have I miss-configured?
Thanks
Glen
*****************************************************************************
If you are not the intended recipient of this e-mail, please notify
the sender immediately. The contents of this e-mail do not amend
any existing disclosures or agreements unless expressly stated.
*****************************************************************************
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list