check_if_by_snmp output

Mrutyunjaya Dash mdash at juniper.net
Thu Mar 16 08:35:04 CET 2006


Hi Gritsch,

 

I tried executing the command but it seems the command is not there in the system. I have installed net-snmp on the system. Can you please let me know whether snmpwalk comes along with net-snmp package or I need to install some other package separately to get the snmpwalk?

 

Regards,

Dash

 

 

________________________________

From: Gritsch Peter [mailto:peter.gritsch at fh-joanneum.at] 
Sent: Wednesday, March 15, 2006 7:49 PM
To: Mrutyunjaya Dash
Subject: AW: [Nagios-users] check_if_by_snmp output

 

Hi Dash!

 

Looks like a problem with SNMP generally. Did you set up a default community file?

Try

 

snmpwalk -v 2c -c `cat $HOME/.snmp4nagios/community` \

localhost .1.3.6.1.2.1.1 

 

Unless this returns some information about localhost, there is likely a problem with either

the snmp agent @ localhost or the way communities are configured in SNMP4Nagios.

 

Run with -v -v -v and check the log (/var/log/messages usually) for the community the plugin

uses.

 

Concerning the "Nagios Plugins" Style output you describe below: Use the command line

switch "-N" to get this (i.e. use something like

 

./check_if_by_snmp -R /opt/rrdtool/ \

-T -L -H localhost -i 2 -I eth0 -N

Hope that helps,

Peter

	
________________________________


	Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Mrutyunjaya Dash
	Gesendet: Mittwoch, 15. März 2006 14:51
	An: nagios-users at lists.sourceforge.net
	Betreff: [Nagios-users] check_if_by_snmp output

	Hi List,

	I just installed the snmp4nagios with all the required libraries. Now when I am trying to execute the following command, I am getting the output as below. But according to the document, the output should be something in different way. I believe there is something wrong. Can anyone give some idea on this?

	./check_if_by_snmp -R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0

	Timeout! Peer = localhost, OID = 1.3.6.1.2.1.2.2.1.7.2

	Whereas the output should be in this way as below

	OK - eth0: I: 1410937 kO, 12672117 Pkt; O: 1339265 kO, 12722878 Pkt

	|'estimated speed'=100000000

	'input octets'=1444800491c 'input packets'=12672117c 'input errors'=0c

	'output octets'=1371407644c 'output packets'=12722878c 'output errors'=0c

	 

	Regards,

	Mrutyunjaya Dash

	IT Engineer

	Juniper Networks Pvt Ltd.

	Bangalore

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060316/ef7d8ede/attachment.html>


More information about the Users mailing list