problems with snmpget & APAN

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Thu Apr 17 18:35:32 CEST 2003


This is a long shot, but....

I've seen weird things happen in the past (not with Nagios) when a
particular hostname had uppercase characters in it.  You might want to
reconfig Nagios (and /etc/hosts and/or DNS, if that's how you're resolving
hostnames) to use just lowercase characters.  At the very least, create a
hostname alias in /etc/hosts or DNS and definitely try using lowercase in
your Nagios configs.

This might not be the problem at all, but....

jc


> -----Original Message-----
> From: Fredrik Wänglund [mailto:fredrik.wanglund at datavis.se]
> Sent: Thursday, April 17, 2003 12:51 AM
> To: Bunting, Glen, IG
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] problems with snmpget & APAN
> 
> 
> Do you have GlenNT in ypur /etc/hosts file?
> 
> What happens if you run 'snmpget -c public GlenNT 
> .1.3.6.1.2.1.2.2.1.10.1' (or 'snmpwalk GlenNT public 
> .1.3.6.1.2.1.2.2.1.10.1' if you have ucd-snmp < version 5)?
> 
> /FredrikW
> 
> 
> Bunting, Glen, IG wrote:
> 
> >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;p
ublic:.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
> >  
> >
> 
> 
> 
> 
> -------------------------------------------------------
> 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
> 


-------------------------------------------------------
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