monitoring linux with snmp
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
monitoring linux with snmp
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.
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.
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.
Re: monitoring linux with snmp
I assume you meant:
not
Try adding localhost:
Restart snmpd:
and test it again:
Code: Select all
rocummunity public 192.168.0.0/24Code: Select all
rocummunity public 192.168.0.0/244Code: Select all
rocummunity public 192.168.0.0/24
rocummunity public localhostCode: Select all
service snmpd restartCode: Select all
./check_snmp_storage.pl -H 192.168.0.132 -C public -m "^/$" -w 2 -c 4Be 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
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.
[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
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.
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
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...
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
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 noneNagios-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
I still haver the same error
-
srikanth.kallu
- Posts: 243
- Joined: Thu Jul 26, 2012 10:48 am
Re: monitoring linux with snmp
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
[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.
Re: monitoring linux with snmp
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
Where can i find this file