LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-06-2007, 06:17 AM   #1
aeby
Member
 
Registered: Mar 2007
Posts: 109

Rep: Reputation: 15
nagios + snmp


Hi ,
I have successfully installed nagios-snmp plugins in C . the installtion went well. But when i try and issue the command
./check_snmp_int -H 10.0.0.99 -C public -n zzzz -v
it gives me the following error.

V1 login : public
Error reading table : (null)
.

I think it has something to do with the MIB table, i have not done any configuration on MIB.I just know that it is a sort of data storage, i am planning to implement nagios for a network and monitro the total bandwith on the lines. I dont know where i wil find the mib file for that and where am i supposed to put it so that snmp can read it.

I am new to Mib so can anyone please guide me , i need an mib file to a host which is a normal linux gateway .

Thanks in advance.
Kind Regards,
 
Old 08-29-2009, 07:38 AM   #2
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
Quote:
Originally Posted by aeby View Post
Hi ,
I have successfully installed nagios-snmp plugins in C . the installtion went well. But when i try and issue the command
./check_snmp_int -H 10.0.0.99 -C public -n zzzz -v
it gives me the following error.

V1 login : public
Error reading table : (null)
.

I think it has something to do with the MIB table, i have not done any configuration on MIB.I just know that it is a sort of data storage, i am planning to implement nagios for a network and monitro the total bandwith on the lines. I dont know where i wil find the mib file for that and where am i supposed to put it so that snmp can read it.

I am new to Mib so can anyone please guide me , i need an mib file to a host which is a normal linux gateway .

Thanks in advance.
Kind Regards,
perhaps wrong OID specified.
try snmpwalk to that gateway, lots of OIDs will be shown or use somekind of mib walker program then use it like this
# ./check_snmp -H <gateway-ip> -C <community-string> -P 1 -o <OID-name>
 
Old 08-29-2009, 01:21 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
./check_snmp_int -H 10.0.0.99 -C public -n zzzz -v
it gives me the following error.

V1 login : public
Error reading table : (null)
i think you have referred the sample from following website (http://nagios.manubulon.com/snmp_int.html) you can define multiple interface by -n option.
"zzzz" actually this is not the way to define multiple interfaces. this just an example.

Try like this
Quote:
./check_snmp_int -H 172.16.7.212 -C public -n eth0 eth1 -v
and further idea refer this url
http://nagios.manubulon.com/index_commands.html, and look this example how they defined multiple interface

Quote:
define command{
command_name check_snmp_int_v1
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ $USER7$ -n $ARG1$ $ARG2$
}
Quote:
Oooh sorry this is almost 2years old post,i didn't refer the original date

Last edited by kirukan; 08-29-2009 at 01:26 PM.
 
Old 08-29-2009, 11:15 PM   #4
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
from that url, i came to this:
Code:
define command {
        command_name check_snmp
        command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $COMMUNITY$ -o $OID$
}

define service {
        use                             local-service
        host_name                       win2003
        service_description             Checks disk capacity
        check_command                   check_snmp!192.168.56.2!public!HOST-RESOURCES-MIB::hrDiskStorageCapacity.6
}
but the result is SNMP problem - No data received from host on the Information column for that particular host Service Status Details For Host...

I derived that from this command
Code:
/usr/lib/nagios/plugins/check_snmp -H 192.168.56.2 -C public -o HOST-RESOURCES-MIB::hrDiskStorageCapacity.6
with this output
Code:
SNMP OK - 2093804 KBytes |
I don't know why is that pipe sign showed up but why the same did not work for the check_command in host file?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios and SNMP Deaclen Linux - Software 1 02-28-2007 09:12 AM
Nagios and snmp authentication ebel.velda Linux - Software 1 02-28-2007 09:08 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
Using SNMP in NAGIOS Bzw Linux - Networking 3 12-06-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration