Sponsored Content
Operating Systems Solaris Net-SNMP v5.4 - sub-id not found in log, but can query with snmpget and snmpwalk Post 302269789 by Mariognarly on Thursday 18th of December 2008 05:33:56 PM
Old 12-18-2008
Net-SNMP v5.4 - sub-id not found in log, but can query with snmpget and snmpwalk

Hi everyone,

I'm configuring Net-SNMP v5.4 on Solaris 10, sending traps to OpenNMS 1.2.9-0.20061212.0. I'm setting up disk monitoring (% of space free) for 5 directories. Here's what I'm working with:

(snmpd.conf - disk and monitoring portions)
#
# Disk Usage monitoring:
#
disk / 20%
disk /tmp 20%
disk /usr 10%
disk /opt 10%
disk /var 10%


#
# Enable Active Monitoring
#
defaultMonitors yes

monitor -i -r 5 -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag !=0



(snmpd.log once SNMP is restarted)
NET-SNMP version 5.4 restarted
send response: (Sub-id not found: (top) -> dskErrorFlag)
-- IF-MIB::ifNumber.0
send response:
-- SNMPv2-MIB::sysObjectID.0
send response:
-- IF-MIB::ifNumber.0
send response:
-- SNMPv2-MIB::sysObjectID.0
send response:
-- IF-MIB::ifNumber.0

-bash-3.00$ snmpwalk -v 2c -c public localhost dskErrorFlag
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: 1
UCD-SNMP-MIB::dskErrorFlag.4 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.5 = INTEGER: 0
-bash-3.00$ snmpget -v 2c -c public localhost dskErrorFlag.1
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 0
-bash-3.00$ snmpget -v 2c -c public localhost dskErrorFlag.3
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: 1


So I have /opt dir at 94% tripping the flag as it should. I can query both dskErrorFlag, and dskErrorFlag.'x'.

However, when the SNMP agent tries to send dskErrorFlag to OpenNMS to generate a trap, it does not find the Sub-id. Hence the error in the log file.

Using:

snmpwalk -Dparse-mibs -v 2c -c public localhost system

to display where the MIB definitions are located, I can see it is looking in the correct directory.

Here is where I am stumped. I'm not sure what else to check, or how to fix this issue.

Any ideas?
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

net-snmp

Does anybody know where I can get net-snmp for compaq tru64 V4.0G? I am having a difficult time locating it. Can it run on tru64 V4.0G? (2 Replies)
Discussion started by: jalburger
2 Replies

2. Solaris

net-snmp-5.1.2 Solaris 9

All, I downloaded and installed the following net-snmp from the sourceforge.net website on a Solaris 9 server with the entire collection installed: net-snmp-5.1.2-SunOS_5.9_sun4u.tar.gz with no errors. I attempt to run snmpget and I get the following error: ld.so.1: snmpget: fatal:... (1 Reply)
Discussion started by: bubba112557
1 Replies

3. UNIX for Advanced & Expert Users

snmpget/snmpwalk for dskPercent not working.

snmpwalk -v1 -c myname {ip address} dskPercent. Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: UCD-SNMP-MIB::dskPercentNode snmpget -v1 -c myname {ip address} dskPercent.1 Error in packet Reason: (noSuchName) There is no such variable... (0 Replies)
Discussion started by: ynilesh
0 Replies

4. Infrastructure Monitoring

HPUX net-SNMP interpreter "/bin/perl" not found

I am trying to install net-snmp on an HPUX box. I am getting the fallowing error message when I try to run the snmpconf file. I installed the fallowing version of net-snmp net-snmp-5.0.10.2-HP-UX_B.11.11_9000_800.tar and my HPUX box is version HP-UX commnms B.11.11 U 9000/800... (2 Replies)
Discussion started by: krisarmstrong
2 Replies

5. AIX

NET-SNMP not responding to snmpwalk

We are using net-snmp on AIX 5.3 TL12 with CACTi for monitoring. Recently we are facing a problem. When we start net-snmp the snmpwalk to the localhost is working. But after a few minutes the snmpwalk gives a timeout to localhost. The snmp process is running. We recently upgraded the TL on the... (1 Reply)
Discussion started by: wibhore
1 Replies

6. AIX

snmp genError with snmpwalk

Hi Admins, I am new member here. I am using IAX 5.3 trying to configure snmpv3. Conf file /etc/snmpdv3.conf contents given below VACM_GROUP group1 SNMPv1 public - VACM_GROUP group1 SNMPv1 sbmviking - VACM_VIEW defaultView internet - included -... (0 Replies)
Discussion started by: newaix
0 Replies

7. HP-UX

Net-snmp 5.7.2 on HP-UX 11.31

Hi All, I have an issue with net-snmp communication from a monitoring server to HP UX server. Following are the details HP - UX server : 172.16.184.34 Monitoring Server : 172.16.5.57 (Solarwinds Application)I'm running HP-UX's snmp on udp port 161 and net-snmp on udp 1161. ... (0 Replies)
Discussion started by: maverick_here
0 Replies
SNMPDF(1)							     Net-SNMP								 SNMPDF(1)

NAME
snmpdf - display disk space usage on a network entity via SNMP SYNOPSIS
snmpdf [COMMON OPTIONS] [-Cu] AGENT DESCRIPTION
snmpdf is simply a networked verison of the typical df command. It checks the disk space on the remote machine by examining the HOST- RESOURCES-MIB's hrStorageTable or the UCD-SNMP-MIB's dskTable. By default, the hrStorageTable is preferred as it typically contains more information. However, the -Cu argument can be passed to snmpdf to force the usage of the dskTable. AGENT identifies a target SNMP agent, which is instrumented to monitor the gievn objects. At its simplest, the AGENT specification will consist of a hostname or an IPv4 address. In this situation, the command will attempt communication with the agent, using UDP/IPv4 to port 161 of the given target host. See the snmpcmd(1) manual page for a full list of the possible formats for AGENT. See the snmpd.conf(5) manual page on setting up the dskTable using the disk directive in the snmpd.conf file. OPTIONS
COMMON OPTIONS Please see snmpcmd(1) for a list of possible values for COMMON OPTIONS as well as their descriptions. -Cu Forces the command to use dskTable in mib UCD-SNMP-MIB instead of the default to determine the storage information. Generally, the default use of hrStorageTable in mib HOST-RESOURCES-MIB is preferred because it typically contains more information. EXAMPLES
% snmpdf -v 2c -c public localhost Description size (kB) Used Available Used% / 7524587 2186910 5337677 29% /proc 0 0 0 0% /etc/mnttab 0 0 0 0% /var/run 1223088 32 1223056 0% /tmp 1289904 66848 1223056 5% /cache 124330 2416 121914 1% /vol 0 0 0 0% Real Memory 524288 447456 76832 85% Swap Space 1420296 195192 1225104 13% SEE ALSO
snmpd.conf(5), snmp.conf(5) 4th Berkeley Distribution 25 Jul 2003 SNMPDF(1)
All times are GMT -4. The time now is 05:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy