Hello everyone,
first of all.. Iam new to nagios core and i try to monitor some network devices, so i really need your help.
Because i have some issues with the snmp check_commands.. for example with the system uptime
Service State Information:
External command error: Error in packet
Reason: (noSuchName) There is no such variaböe name in this MIB.
Failed object: iso.3.6.1.2.1.25.1.6.0
Here is how is definited the command and the service:
## SNMP Command Definition - Up time
define command
{
command_name SNMP-Uptime
command_line $USER1$/check_snmp -o 1.3.6.1.2.1.25.1.1.0 -H $HOSTADDRESS$ $ARG1$
}
and the Service for the Host:
## SNMP Service Definition - Up time
define service
{
use generic-service
host_name myhostnameSWITCH
service_description System uptime
check_command SNMP-Uptime!-C public
}
So what did i wrong? or what have i do that i works?
I am grateful for any help!
And sorry.. english is not my mother tongue.
SNMP - There is no such variable name in this MIB
Re: SNMP - There is no such variable name in this MIB
Hi
i have the same problem: running snmpwalk i get a big list of OIDs but it seems strange to me that i must create a service for each of the OIDs, (it's also difficult to relate two distinct OIDs)
.1.3.6.1.2.1.2.2.1.6.4 = STRING: xx:xx:xx:xx:xx:xx
.1.3.6.1.2.1.2.2.1.6.5 = STRING: xx:xx:xx:xx:xx:xx
.1.3.6.1.2.1.2.2.1.7.1 = INTEGER: up(1)
.1.3.6.1.2.1.2.2.1.7.2 = INTEGER: down(2)
.1.3.6.1.2.1.2.2.1.9.4 = Timeticks: (13601887) 1 day, 13:46:58.87
.1.3.6.1.2.1.2.2.1.10.1 = Counter32: 143862889
.1.3.6.1.2.1.2.2.1.10.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.10 = Counter32: 4077830604
.1.3.6.1.2.1.2.2.1.16.11 = Counter32: 1481026996
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.1 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.4 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.8 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.4.20.1.1.127.0.0.1 = IpAddress: 127.0.0.1
.1.3.6.1.2.1.4.20.1.1.XXX.XXX.XXX.101 = IpAddress: XXX.XXX.XXX.101
.1.3.6.1.2.1.6.13.1.2.127.0.0.1.33599.127.0.0.1.1883 = IpAddress: 127.0.0.1
.1.3.6.1.2.1.6.13.1.2.XXX.XXX.XXX.101.1883.XXX.XXX.XXX.101.59616 = IpAddress: XXX.XXX.XXX.101
.1.3.6.1.2.1.25.1.4.0 = STRING: "ramdisk_size=128M mem=126M board=AP152_AFI console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1536k(kernel),"
.1.3.6.1.2.1.25.2.3.1.2.33 = OID: .1.3.6.1.2.1.25.2.1.4
.1.3.6.1.2.1.25.2.3.1.3.1 = STRING: Physical memory
.1.3.6.1.2.1.25.2.3.1.3.3 = STRING: Virtual memory
.1.3.6.1.2.1.25.2.3.1.3.6 = STRING: Memory buffers
.1.3.6.1.2.1.25.2.3.1.3.7 = STRING: Cached memory
.1.3.6.1.2.1.25.2.3.1.3.8 = STRING: Shared memory
i have the same problem: running snmpwalk i get a big list of OIDs but it seems strange to me that i must create a service for each of the OIDs, (it's also difficult to relate two distinct OIDs)
.1.3.6.1.2.1.2.2.1.6.4 = STRING: xx:xx:xx:xx:xx:xx
.1.3.6.1.2.1.2.2.1.6.5 = STRING: xx:xx:xx:xx:xx:xx
.1.3.6.1.2.1.2.2.1.7.1 = INTEGER: up(1)
.1.3.6.1.2.1.2.2.1.7.2 = INTEGER: down(2)
.1.3.6.1.2.1.2.2.1.9.4 = Timeticks: (13601887) 1 day, 13:46:58.87
.1.3.6.1.2.1.2.2.1.10.1 = Counter32: 143862889
.1.3.6.1.2.1.2.2.1.10.2 = Counter32: 0
.1.3.6.1.2.1.2.2.1.16.10 = Counter32: 4077830604
.1.3.6.1.2.1.2.2.1.16.11 = Counter32: 1481026996
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.1 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.4 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.3.1.1.2.35.1.XXX.XXX.XXX.8 = Hex-STRING: XX XX XX XX XX XX
.1.3.6.1.2.1.4.20.1.1.127.0.0.1 = IpAddress: 127.0.0.1
.1.3.6.1.2.1.4.20.1.1.XXX.XXX.XXX.101 = IpAddress: XXX.XXX.XXX.101
.1.3.6.1.2.1.6.13.1.2.127.0.0.1.33599.127.0.0.1.1883 = IpAddress: 127.0.0.1
.1.3.6.1.2.1.6.13.1.2.XXX.XXX.XXX.101.1883.XXX.XXX.XXX.101.59616 = IpAddress: XXX.XXX.XXX.101
.1.3.6.1.2.1.25.1.4.0 = STRING: "ramdisk_size=128M mem=126M board=AP152_AFI console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1536k(kernel),"
.1.3.6.1.2.1.25.2.3.1.2.33 = OID: .1.3.6.1.2.1.25.2.1.4
.1.3.6.1.2.1.25.2.3.1.3.1 = STRING: Physical memory
.1.3.6.1.2.1.25.2.3.1.3.3 = STRING: Virtual memory
.1.3.6.1.2.1.25.2.3.1.3.6 = STRING: Memory buffers
.1.3.6.1.2.1.25.2.3.1.3.7 = STRING: Cached memory
.1.3.6.1.2.1.25.2.3.1.3.8 = STRING: Shared memory
Re: SNMP - There is no such variable name in this MIB
You said that you want to monitor network devices. There are plugins that use SNMP to gather data from network devices which you may be interested in.
https://exchange.nagios.org/
Search there for specific plugins and use them instead.
This error
means that the OID on the device does not exist.
https://exchange.nagios.org/
Search there for specific plugins and use them instead.
This error
Code: Select all
Failed object: iso.3.6.1.2.1.25.1.6.0
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP - There is no such variable name in this MIB
Oh ok, I will take a look. Thanks
Just so I got it right:
If i want to get an info for example for the uptime and the pysical memory..
I have to use two different OIDs, which i get with the snmpwalk right?
Because if have many routers and switches, and at the moment i just got the ping to see if the device is reachable or not.
And i want also see the uptime, the memory and other things.
Just so I got it right:
If i want to get an info for example for the uptime and the pysical memory..
I have to use two different OIDs, which i get with the snmpwalk right?
Because if have many routers and switches, and at the moment i just got the ping to see if the device is reachable or not.
And i want also see the uptime, the memory and other things.
Re: SNMP - There is no such variable name in this MIB
Yes, you would have to use 2 different OID's (and sometimes more) to get the Uptime and Physical memory from the device and you can use the snmpwalk to get that information.
Be sure to check out our Knowledgebase for helpful articles and solutions!