check_hpjd shows warning unnesessarily

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_hpjd shows warning unnesessarily

Post by Box293 »

Adam wrote:rkennedy do you have a default copy of snmp.conf? I suspect I have it set up wrong.
This is the worlds most unsecure snmp.conf however it should "just work"

Code: Select all

rocommunity public 
syslocation Somewhere
syscontact [email protected]
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Adam
Posts: 14
Joined: Tue Feb 02, 2016 1:01 pm

Re: check_hpjd shows warning unnesessarily

Post by Adam »

I changed my snmp.conf and tried snmpwalk again... Notice the warnings about Unkown tokens. This is what is making think I have a problem with SNMP.

Code: Select all

[root@localhost adam]# snmpwalk -v 2c -c public -O e 127.0.0.1
No log handling enabled - turning on stderr logging
[color=#FF0000]/etc/snmp/snmp.conf: line 1: Warning: Unknown token: rocommunity.
/etc/snmp/snmp.conf: line 2: Warning: Unknown token: syslocation.
/etc/snmp/snmp.conf: line 3: Warning: Unknown token: syscontact.[/color]
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost.localdomain 2.6.32-573.12.1.el6.centos.plus.i686 #1 SMP Wed Dec 16 14:30:42 UTC 2015 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (20723) 0:03:27.23
SNMPv2-MIB::sysContact.0 = STRING: root@localhost
SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDMIBObjects.3.1.1
SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (19) 0:00:00.19
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (19) 0:00:00.19
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (51692542) 5 days, 23:35:25.42
HOST-RESOURCES-MIB::hrSystemUptime.0 = No more variables left in this MIB View (It is past the end of the MIB tree)
[root@localhost adam]# 
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_hpjd shows warning unnesessarily

Post by Box293 »

My apologies, I posted a config for snmpd.conf which is for a linux server that listens for snmp requests.

Honestly I've not had to use a snmp.conf file before, I looked at a couple of my test machines and no such file exists.

What happens if you stop using the file?

Code: Select all

mv /etc/snmp/snmp.conf /tmp/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Adam
Posts: 14
Joined: Tue Feb 02, 2016 1:01 pm

Re: check_hpjd shows warning unnesessarily

Post by Adam »

So I removed the hpjd checks for a few days, the system got a few updates, and when I finally came back to this issue I found that everything is now working fine. Thank you everyone for your assistance.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_hpjd shows warning unnesessarily

Post by hsmith »

Would you like us to close this thread since the issue seems to be resolved?
Former Nagios Employee.
me.
Adam
Posts: 14
Joined: Tue Feb 02, 2016 1:01 pm

Re: check_hpjd shows warning unnesessarily

Post by Adam »

Yes, we can close this one. Thanks.
Locked