so i copy MY MIB file to these Location:
Code: Select all
/usr/share/snmp/mibs/Code: Select all
/usr/share/snmp/mibs/Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o 1.3.6.1.4.1.9789.1500.1.117Code: Select all
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9789.1500.1.117Code: Select all
./check_snmp -n -H 10.30.0.1 -o .1.3.6.1.4.1.9789.1500.3.82 16
SNMP OK - Timeticks: (560619050) 64 days, 21:16:30.50 |hey ,tgriep wrote:Here is a command you use to show you the OID number and the associated description to it.You can use the output to look for the OID you can use for the check_snmp commands you want.Code: Select all
snmptranslate -m /usr/share/snmp/mibs/ASTARO-MIB.txt -Tz
I've noticed in your commands you have the OID followed by a space and then another number. This does not appear to be correctly formatted.SJ04 wrote:Hello There,
I am in trouble with monitoring the Sophos Firewall via Nagios. I have downloaded the Firewall MIB file and when i trying to get the Value of Firewall i am having this Error.
i have also copied the MIB file to SNMP/MIB directory but it still didnt work. Will be really Appricating if someone can help me out.Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789 1 External command error: Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: iso.3.6.1.4.1.9789
thanks
SJ04
Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789.0
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789.1
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o 1.3.6.1.4.1.9789.1500.1.117.0
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o 1.3.6.1.4.1.9789.1500.1.117.1Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.0
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1500.1.117.0
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1500.1.117.1Code: Select all
snmpwalk -v 2c -c public 192.168.1.1 -O n -m all 1.3.6.1.4.1.9789@Box293,Box293 wrote:I've noticed in your commands you have the OID followed by a space and then another number. This does not appear to be correctly formatted.SJ04 wrote:Hello There,
I am in trouble with monitoring the Sophos Firewall via Nagios. I have downloaded the Firewall MIB file and when i trying to get the Value of Firewall i am having this Error.
i have also copied the MIB file to SNMP/MIB directory but it still didnt work. Will be really Appricating if someone can help me out.Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789 1 External command error: Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: iso.3.6.1.4.1.9789
thanks
SJ04
Normally OIDs end with a .0
If they end with a .1 then it is a reference to a table, not a value.
What is the result of these commands:
Also:Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789.0 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o .1.3.6.1.4.1.9789.1 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o 1.3.6.1.4.1.9789.1500.1.117.0 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -o 1.3.6.1.4.1.9789.1500.1.117.1
The commands you have been using will be using SNMP v1 by default. I suggest you add -P 2c to your commands.
None of your commands specify a community string, you should have something like -C public
Leave the leading period (.) off the oid
With those suggestions in mind, try these commands:You should do a walk on the device to see what OIDs are available:Code: Select all
/usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.0 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1500.1.117.0 /usr/local/nagios/libexec/check_snmp -H 192.168.1.1 -P 2c -C public -o 1.3.6.1.4.1.9789.1500.1.117.1Code: Select all
snmpwalk -v 2c -c public 192.168.1.1 -O n -m all 1.3.6.1.4.1.9789
Code: Select all
snmpwalk -v 2c -c public 192.168.1.1 -O n -m all .1.3.6.1.4.1.9789.1500.2.31
.1.3.6.1.4.1.9789.1500.2.31 = No Such Object available on this agent at this OIDCode: Select all
snmpwalk -v 2c -c public 192.168.1.1 -O n -m all 1.3.6.1.4.1.9789
Code: Select all
/etc/snmpCode: Select all
snmp.confCode: Select all
mibs +ALLCode: Select all
ls -l /usr/share/snmp/mibs/Hi ,tgriep wrote:One more thing to do, create a file in this foldercalledCode: Select all
/etc/snmpAdd this line to that fileCode: Select all
snmp.confThis will ensure that all of the snmp commands you run will search all of the files in the /usr/share/snmp/mibs/ folder.Code: Select all
mibs +ALL
Did you copy the MIB file to that folder?
Can you run the following command and post the output?Code: Select all
ls -l /usr/share/snmp/mibs/