Problem SNMP UNKNOWN

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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 | 
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Problem SNMP UNKNOWN

Post by rhassing »

And what happens if you do

Code: Select all

check_snmp -m ALL -H localhost' -C public -o sysDescr.0
Rob Hassing
Image
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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 | 
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Problem SNMP UNKNOWN

Post by rhassing »

So it should work in Nagios as well...
This is the command from your command.cfg file
Rob Hassing
Image
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post by sofiane »

I don't know why, but it still doesn't work :?
kyang

Re: Problem SNMP UNKNOWN

Post 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?
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem SNMP UNKNOWN

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
sofiane
Posts: 19
Joined: Tue Dec 12, 2017 7:05 am

Re: Problem SNMP UNKNOWN

Post 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
Last edited by sofiane on Tue Dec 19, 2017 2:27 am, edited 3 times in total.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem SNMP UNKNOWN

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked