Page 1 of 2

monitoring linux with snmp

Posted: Thu Mar 20, 2014 11:33 am
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.

Re: monitoring linux with snmp

Posted: Thu Mar 20, 2014 4:08 pm
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

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 9:45 am
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.

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 11:30 am
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.

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 1:56 pm
by srikanth.kallu
I have attached snmpd.conf

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 2:44 pm
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

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 2:47 pm
by srikanth.kallu
I still haver the same error

Re: monitoring linux with snmp

Posted: Fri Mar 21, 2014 4:33 pm
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

Re: monitoring linux with snmp

Posted: Mon Mar 24, 2014 10:51 am
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
	}

Re: monitoring linux with snmp

Posted: Mon Mar 24, 2014 2:38 pm
by srikanth.kallu
Where can i find this file