monitoring linux with snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

monitoring linux with snmp

Post by srikanth.kallu »

I am trying to monitor Linux with SNMP

I added this line in snmpd.conf

rocummunity public 192.168.0.0/244

on the server i get this error

[root@nagiosxi libexec]# ./check_snmp_storage.pl -H 192.168.0.132 -C public -m "^/$" -w 2 -c 4
ERROR: Description/Type table : Requested table is empty or does not exist.

Can i please get help

Edit: Please dont assume i am reposting this, I still need help for this.
Last edited by slansing on Thu Mar 20, 2014 3:18 pm, edited 1 time in total.
Reason: Merged your two posts, please do not double post as that will bump you lower on our "to be replied to" list. Warning 2.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: monitoring linux with snmp

Post by lmiltchev »

I assume you meant:

Code: Select all

rocummunity public 192.168.0.0/24
not

Code: Select all

rocummunity public 192.168.0.0/244
Try adding localhost:

Code: Select all

rocummunity public 192.168.0.0/24
rocummunity public localhost
Restart snmpd:

Code: Select all

service snmpd restart
and test it again:

Code: Select all

./check_snmp_storage.pl -H 192.168.0.132 -C public -m "^/$" -w 2 -c 4
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring linux with snmp

Post by srikanth.kallu »

I have changed it on snmpd.conf and restarted the service i still have the same error.

[root@nagiosxi libexec]# ./check_snmp_storage.pl -H 192.168.0.132 -C public -m "^/$" -w 2 -c 4
ERROR: Description/Type table : Requested table is empty or does not exist.

192.168.0.132 is the IP of the server i am trying to monitor

10.0.12.45 is the IP of my Nagios server.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: monitoring linux with snmp

Post by sreinhardt »

The issue is not with what host is allowed, as that seems correct, but instead with what tables you have given that community string access to. I need to check some documentation, and will edit this post to reflect what you need to look for if you do not post back first.

Actually, in terms of making this easiest, could you post the entire snmpd.conf and I will take a look at it please.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring linux with snmp

Post by srikanth.kallu »

I have attached snmpd.conf
You do not have the required permissions to view the files attached to this post.
Last edited by slansing on Fri Mar 21, 2014 2:03 pm, edited 1 time in total.
Reason: Merged your two posts, please do not double post as that will bump you lower on our "to be replied to" list. Warning 2...
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: monitoring linux with snmp

Post by sreinhardt »

Try adding the following lines to the end of your config and restarting snmpd.

Code: Select all

group   rocummunitygroup any           rocummunity
view    roview    included   .1
access  rocummunitygroup ""      any       noauth    exact  roview none none
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring linux with snmp

Post by srikanth.kallu »

I still haver the same error
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring linux with snmp

Post by srikanth.kallu »

I made few changes in the snmpd.conf and it ssems to be working from nagios server, but still cannot make it work from GUI/Wizard.

[root@nagiosxi libexec]# ./check_snmp_storage.pl -H 192.168.0.132 -C mouser -m "^/$" -w 2 -c 4
/: 38%used(18921MB/50397MB) (>4%) : CRITICAL

I am attaching my new snmpd.conf file
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: monitoring linux with snmp

Post by lmiltchev »

Can you show us the service definition? Does it look something like this?

Code: Select all

define service {
	host_name			192.168.0.132
	service_description		/ Disk Usage
	use				xiwizard_linuxsnmp_storage
	check_command			check_xi_service_snmp_linux_storage! -C mouser --v2c -m "^/$" -w 80 -c 95 -f
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	_xiwizard			linuxsnmp
	register			1
	}
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: monitoring linux with snmp

Post by srikanth.kallu »

Where can i find this file
Locked