Page 1 of 1
check_hpjd failing after installation of 'SNMP Trap Sender'
Posted: Wed Jan 15, 2014 5:55 pm
by jwelch
Installed Version: 2012R2.7
I installed the SNMP Trap Sender component today and ran the required script as root.
I haven't done anything with the component yet, but later in the day I saw that an snmp
check of one of our printers is failing...starting around the time I installed the component.
We don't do much snmp based monitoring so this is probably the only check affected.
running the check script manually as root works:
Printer ok - ("Powersave on")
but running check_hpjd as the nagios user fails:
No log handling enabled - turning on stderr logging ("Powersave on")
running check_hpjd as another non-root user gives the same msg:
No log handling enabled - turning on stderr logging ("Powersave on")
so I'm guessing it's some sort of permissions issue, but I'm not sure where to look.
Re: check_hpjd failing after installation of 'SNMP Trap Send
Posted: Wed Jan 15, 2014 6:18 pm
by jwelch
or maybe not. I see the following when I run snmpget as root or nagios for one of the OIDs that check_hpjd uses:
No log handling enabled - turning on stderr logging
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (MTA-MIB): At line 0 in (none)
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
Cannot find module (SCTP-MIB): At line 0 in (none)
Cannot find module (RMON-MIB): At line 0 in (none)
Cannot find module (EtherLike-MIB): At line 0 in (none)
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
Cannot find module (IPV6-MIB): At line 0 in (none)
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
.1.3.6.1.4.1.11.2.3.9.1.1.2.1.0 = INTEGER: 0
Re: check_hpjd failing after installation of 'SNMP Trap Send
Posted: Wed Jan 15, 2014 6:53 pm
by jwelch
Never mind.
My MIB files are in /usr/share/snmp/mibs and were all owned by root with
some group root and some group nagios, but all readable by world.
I did a 'chgrp nagios *' and 'chmod 664 *' just to make them consistent
and suddenly everything works.