Problem SNMP UNKNOWN
Re: Problem SNMP UNKNOWN
No
PS : I corrected the errors "bad operators", now, there is "error in packet" everywhere
PS : I corrected the errors "bad operators", now, there is "error in packet" everywhere
Re: Problem SNMP UNKNOWN
So there are still problems with the MIB files...
The output of:
is still:
And if you would run:
The output of:
Code: Select all
snmpget -v2c -c public 127.0.0.1 sysUpTime.0
Code: Select all
sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)
Code: Select all
snmpget -v2c -m ALL -c public 127.0.0.1 sysUpTime.0
Rob Hassing


Re: Problem SNMP UNKNOWN
result :
Code: Select all
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (738966) 2:03:09.66
Re: Problem SNMP UNKNOWN
According to the plugin, you could load all MIB files when using the check:
So if you could change the command file and would add -m ALL to the command, it should work.
Code: Select all
-m, --miblist=STRING
List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL'
for symbolic OIDs.)
Rob Hassing


Re: Problem SNMP UNKNOWN
I replaced "command.cfg" by the one you gave me. It still doesn't work 
When I put : ./check_snmp localhost -o 1.3.6.1.2.1.11 -m all
I have

When I put : ./check_snmp localhost -o 1.3.6.1.2.1.11 -m all
I have
Code: Select all
Erreur d'exécution de commande externe: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-MIB::snmp
Re: Problem SNMP UNKNOWN
I'm missing the community and I don't think that's a good oid.When I put : ./check_snmp localhost -o 1.3.6.1.2.1.11 -m all
And if you are using OID instead of the names you don't need to load the MIB files
Rob Hassing


Re: Problem SNMP UNKNOWN
I saw the oid here (snmp) : http://www.alvestrand.no/objectid/1.3.6.1.2.1.html
Re: Problem SNMP UNKNOWN
you are just using the first part of an entire OID. All OID's you want to use with check_snmp should end with 0 (don't just add a zero, but look up the entire OID).
Rob Hassing


Re: Problem SNMP UNKNOWN
Hummm Ok. What is the full oid ? 
