Problem SNMP UNKNOWN
Problem SNMP UNKNOWN
Hello, I have a problem with snmp services. Indeed, each of them are "unknown" and i have an "error in packet"
I think I have well configured, I don't understand what is the real problem.
I installed packets "nagios-snmp-plugins" "nagios-plugins" "snmpd" "snmp"
I provide you my "nagios.cfg", "localhost.cfg", "commands.cfg", "templates.cfg"
Thanks for your help
I think I have well configured, I don't understand what is the real problem.
I installed packets "nagios-snmp-plugins" "nagios-plugins" "snmpd" "snmp"
I provide you my "nagios.cfg", "localhost.cfg", "commands.cfg", "templates.cfg"
Thanks for your help
Last edited by sofiane on Wed Dec 20, 2017 2:47 am, edited 1 time in total.
Re: Problem SNMP UNKNOWN
To satisfy my own selfish curiosity, is there a particular reason you're using SNMP to gather metrics from the local machine?
"Error in packet" is a message generated by the snmpd agent. Generally it means the OIDs you're querying are unavailable. I would double-check the scope that the "public" community has within your snmpd configuration as well as making sure that the UCD-SNMP-MIBs module is correctly exposed by the snmpd agent.
"Error in packet" is a message generated by the snmpd agent. Generally it means the OIDs you're querying are unavailable. I would double-check the scope that the "public" community has within your snmpd configuration as well as making sure that the UCD-SNMP-MIBs module is correctly exposed by the snmpd agent.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Problem SNMP UNKNOWN
I use snmp in localhost services, just for a snmp test (to see if it works).
Why ? I shouldn't do it ?
Why ? I shouldn't do it ?
Re: Problem SNMP UNKNOWN
SNMP is nice, so you could use it everywhere (that's my opinion)
But could you try the following command on the command line:
And see if that works...
If that works, you could also try the following commands:
and
The last one tells you if there might be a problem with the MIB files. It's actually the same command, but with the full OID instead of using the MIB files.
But could you try the following command on the command line:
Code: Select all
snmpwalk -v2c -c public 127.0.0.1
If that works, you could also try the following commands:
Code: Select all
snmpget -v2c -c public 127.0.0.1 sysUpTime.0
Code: Select all
snmpget -v2c -c public 127.0.0.1 .1.3.6.1.2.1.1.3.0
Rob Hassing
Re: Problem SNMP UNKNOWN
I tried your commands.
1st command result :
2nd command result :
3rd command result :
1st command result :
Code: Select all
iso.3.6.1.2.1.1.1.0 = STRING: "Linux Sofiane 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3 (2017-12-03) x86_64"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
iso.3.6.1.2.1.1.3.0 = Timeticks: (2178444) 6:03:04.44
iso.3.6.1.2.1.1.4.0 = STRING: "Me <me@example.org>"
iso.3.6.1.2.1.1.5.0 = STRING: "Sofiane"
iso.3.6.1.2.1.1.6.0 = STRING: "Sitting on the Dock of the Bay"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.1.8.0 = Timeticks: (50) 0:00:00.50
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.11.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.9 = OID: iso.3.6.1.6.3.13.3.1.3
iso.3.6.1.2.1.1.9.1.2.10 = OID: iso.3.6.1.2.1.92
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The management information definitions for the SNMP User-based Security Model."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.9 = STRING: "The MIB modules for managing SNMP Notification, plus filtering."
iso.3.6.1.2.1.1.9.1.3.10 = STRING: "The MIB module for logging SNMP Notifications."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (49) 0:00:00.49
iso.3.6.1.2.1.1.9.1.4.9 = Timeticks: (50) 0:00:00.50
iso.3.6.1.2.1.1.9.1.4.10 = Timeticks: (50) 0:00:00.50
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (4154087) 11:32:20.87
iso.3.6.1.2.1.25.1.2.0 = Hex-STRING: 07 E1 0C 0D 12 30 19 00 2B 01 00
iso.3.6.1.2.1.25.1.3.0 = INTEGER: 393216
iso.3.6.1.2.1.25.1.4.0 = STRING: "BOOT_IMAGE=/boot/vmlinuz-4.9.0-4-amd64 root=UUID=415d6a07-bd43-4437-9d2d-15d8bdd04a63 ro quiet
"
iso.3.6.1.2.1.25.1.5.0 = Gauge32: 1
iso.3.6.1.2.1.25.1.6.0 = Gauge32: 175
iso.3.6.1.2.1.25.1.7.0 = INTEGER: 0
iso.3.6.1.2.1.25.1.7.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
Code: Select all
sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)
Code: Select all
iso.3.6.1.2.1.1.3.0 = Timeticks: (2182761) 6:03:47.61
Last edited by sofiane on Wed Dec 13, 2017 1:19 pm, edited 1 time in total.
Re: Problem SNMP UNKNOWN
There seems to be a problem with your MIB files.
Did you install net-snmp-libs package?
That's where the MIB files are in.
In Centos / Fedora the MIB are normally installed in:
Did you install net-snmp-libs package?
That's where the MIB files are in.
In Centos / Fedora the MIB are normally installed in:
Code: Select all
/usr/share/snmp/mibs/
Rob Hassing
Re: Problem SNMP UNKNOWN
No, I just installed "nagios-snmp-plugins" "nagios-plugins" "snmpd" "snmp".
Edit : I installed it
Edit : I installed it
Re: Problem SNMP UNKNOWN
Sounds good,
Is it still having the same SNMP unknown error once you installed?
Is it still having the same SNMP unknown error once you installed?
Re: Problem SNMP UNKNOWN
Is there a difference when you run the commands I mentioned before?
Rob Hassing