problems with snmpget & APAN
Bunting, Glen, IG
GBunting864 at Worldsavings.com
Thu Apr 17 19:22:32 CEST 2003
Fredrick,
GlenNT is in my /etc/hosts file. Running the commands below I get timed out. It appears that I need to specify the version of snmp to use using the -v flag. When I do that I get data using both version 1 and version 2c.
Thanks
Glen
-----Original Message-----
From: Fredrik Wänglund [mailto:fredrik.wanglund at datavis.se]
Sent: Wednesday, April 16, 2003 10:51 PM
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;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
>
>
*****************************************************************************
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