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, |
Quote:
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> |
Quote:
"zzzz" actually this is not the way to define multiple interfaces. this just an example. Try like this Quote:
http://nagios.manubulon.com/index_commands.html, and look this example how they defined multiple interface Quote:
Quote:
|
from that url, i came to this:
Code:
define command { 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 Code:
SNMP OK - 2093804 KBytes | |
All times are GMT -5. The time now is 04:40 PM. |