Page 3 of 4

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 4:10 am
by sofiane
rhassing wrote:.1.3.6.1.2.1.1.3.0 would be a full OID
Result :

Code: Select all

SNMP OK - Timeticks: (380169) 1:03:21.69 | 

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 5:02 am
by rhassing
And what happens if you do

Code: Select all

check_snmp -m ALL -H localhost' -C public -o sysDescr.0

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 5:19 am
by sofiane
Result :

Code: Select all

SNMP OK - Linux Sofiane 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3 (2017-12-03) x86_64 | 

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 6:52 am
by rhassing
So it should work in Nagios as well...
This is the command from your command.cfg file

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 8:24 am
by sofiane
I don't know why, but it still doesn't work :?

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 11:14 am
by kyang
Wow, thanks @rhassing!

sofiane, it doesn't work? Same error as the first screenshot?

Were there any changes to the commands.cfg? Or is it still the same?

Is the path to check_snmp plugin actually this /usr/lib/nagios/plugins/check_snmp?

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 1:34 pm
by sofiane
kyang wrote:Wow, thanks @rhassing!
I'm so boring ? :lol:
sofiane, it doesn't work? Same error as the first screenshot?
Yes, unfortunately :|
Were there any changes to the commands.cfg? Or is it still the same?
The same
Is the path to check_snmp plugin actually this /usr/lib/nagios/plugins/check_snmp?
Yes.
Image

Re: Problem SNMP UNKNOWN

Posted: Fri Dec 15, 2017 3:37 pm
by tgriep
Another reason for the errors you are receiving is that the SNMP Daemon that is running on the server is not allowing the polling of those OID's so can you post your snmpd.conf file so we can check it?

Re: Problem SNMP UNKNOWN

Posted: Mon Dec 18, 2017 3:11 pm
by sofiane
Sorry for my inactivity, I had some problems IRL

After reinstalling Nagios, all my snmp services have now "critical" status and graphs don't work (better than "unknown" I agree :mrgreen: )

Image

I don't now why, but "SNMP_service.xml" doesn't want to be created in /usr/local/pnp4nagios/var/perfdata/localhost/ , even after restarting npcd service

Re: Problem SNMP UNKNOWN

Posted: Mon Dec 18, 2017 4:49 pm
by tgriep
Check and see if after reinstalling Nagios, the check_snmp plugin was reinstalled as well in to the following location.

Code: Select all

/usr/lib/nagios/plugins/
If the plugin is missing, that would generate the error you are receiving.