Link to home
Start Free TrialLog in
Avatar of LCGS-NINDS-DIR
LCGS-NINDS-DIRFlag for United States of America

asked on

How can I set up SNMP on What's Up Gold to check for processes that are up and running?

We have a Linux host in What's Up Gold.  On the Linux host we've set up snmpd.conf so that it send snmptraps to the WUG host and the correct community. In the snmpd.conf file, we are checking to see if the vnc and smb processes are up and running at least 1 instance.

On the WUG console, I can browse the MIB and find the correct OID which is:
 iso.org.dod.internet.private.enterprises.ucdavis.prTable.prEntry.prMin (1.3.6.1.4.1.2021.2.1.3)

This checks for the minimum number of procs that should be running for this instance. The value in snmpd.conf is 1 (eg. MIN=1)

However, when I go to set the alarm, it appears as always down. When I go to the device main page in WUG and go under SNMP Device Details, I find that prMin is not responding.


prMin          Response packet contained the error: No Such Name


I have restarted services on WUG and snmp on the Linux host but to no avail.
Avatar of Steve Jennings
Steve Jennings

Try and check for PrCount=1 (1.3.6.1.4.1.2021.2.1.5)
Avatar of LCGS-NINDS-DIR

ASKER

Still the same response.

prCount         Response packet contained the error: No Such Name

But to confirm, in WUG, the Object ID is

1.3.6.1.4.1.2021.2.1.5

The instance number comes up as 0 by default even though the instance in SNMP for the VNC server is 1.
So you can "walk" the device and see a value of "1" for the prMin?

Steve
by the way, that "No such name" error generally means that the agent doesn't support that variable OR it thinks you are trying to SET the variable. Add a "." or a "0" or "1" to the end of the string just for grins.

Good luck,
SteveJ
No change. Still the same. I've restarted WUG services and snmpd on the Linux host but the results are still the same.

For the prMin value, I do an snmpwalk from the Linux host and see the value of 1 and from WUG I can browse the MIB and find that OID and the instance. However, the value is N/A,
Ok, to be clear: from the Linux machine you can do an "SNMPGET" on this OID 1.3.6.1.4.1.2021.2.1.3 and you get a valid response, but from WUG you get a "name error"? Can you get any values from the Linux box using WUG for other OIDs?


SteveJ
OK. I was trying an snmpwalk on the localhost. Here is what the Linux host shows with an snmpget

# snmpget -v 1 -c mypublic localhost  .1.3.6.1.4.1.2021.2.1.3
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::prCount



Let's get very basic:

What does this return?

snmpget -v 1 -c mypublic localhost  system.sysDescr.0

Sounds to me like you don't have the UDC-SNM-MIB compiled on the Linux box.

Good luck,
SteveJ
By the way, do you have something like this in your snmpd.conf?

mibs +UCD-SNMP-MIB

Or for testing you can do something like this from a /bin/sh shell . . . .

MIBS=+UCD-SNMP-MIB
export MIBS


That may be the source of your issue

Good luck,
SteveJ
# snmpget -v 1 -c mypublic localhost  system.sysDescr.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux localhost 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64
Hmm . . . so you are running v2 SNMP, how about the rest of my comments? Did you make a change to the snmpd.conf on the linux box and add the "mibs +UCD-SNMP-MIB" line?

Good luck,
SteveJ
I added the mibs line to snmpd.conf (MIBS=+UCD-SNMP-MIB) and restarted snmpd and still can't get  it

# snmpget -v 1 -c mypublic localhost  .1.3.6.1.4.1.2021.2.1.3
Cannot find module (MIBS=+UCD-SNMP=MIB): At line 0 in (none)
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.2021.2.1.3

This is a RedHat Enterpise 5 64-bit system and there appears to be no native version of ucd-snmp for this system.
The following snmpwalk for UCD-SNMP-MIB shows a response (several screens) but no that particular OID using snmpget

# snmpwalk -v1 -c mypublic localhost UCD-SNMP-MIB::ucdavis
Add "mibs +UCD-SNMP-MIB" to the snmpd.conf
OR . . .
From a shell command prompt, enter:

MIBS=+UCD-SNMP-MIB
export MIBS

Both of these presume that you have the MIB on the system in the same location as the rest of the MIBs. You can download it from here: http://www.shrubbery.net/mibs/UCD-SNMP-MIB.txt

Good luck,
SteveJ
I do have this MIB in the standard place where all the other ones are:
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt

I've added that line to snmpd.conf

No luck. Still the same error:

# snmpget -v 1 -c mypublic localhost  .1.3.6.1.4.1.2021.2.1.3
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::prMin







"cat" the mib and see of the prMin exists there
"snmpwalk" the mib from the localhost starting at 2021.2
It appears to have the prMin info in there.

# more /usr/share/snmp/mibs/UCD-SNMP-MIB.txt | grep prMin
    prMin            Integer32,
prMin OBJECT-TYPE


# snmpwalk -v 1 -c mypublic localhost .1.3.6.1.4.1.2021.2
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
UCD-SNMP-MIB::prNames.1 = STRING: vnc
UCD-SNMP-MIB::prNames.2 = STRING: smb
UCD-SNMP-MIB::prMin.1 = INTEGER: 0
UCD-SNMP-MIB::prMin.2 = INTEGER: 0
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.2 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prCount.2 = INTEGER: 0
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1
UCD-SNMP-MIB::prErrMessage.1 = STRING: No vnc process running.
UCD-SNMP-MIB::prErrMessage.2 = STRING: No smb process running.
UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
ASKER CERTIFIED SOLUTION
Avatar of Steve Jennings
Steve Jennings

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm getting a response now in What's Up Gold. I now see that gets set aside

   prMin.1         0

This was after uncommenting the following line in the snmpd.conf file and restarting snmpd.

   set snmp community read-only mypublic

Now if I run an SNMP GET I get a valid response.

# snmpget -v 1 -c mypublic localhost 1.3.6.1.4.1.2021.2.1.3.1
UCD-SNMP-MIB::prMin.1 = INTEGER: 0


The original problem was that I wanted snmp to monitor the vnc and smb processes so that if they are not running, I wanted an alert in What's Up Gold. Now that SNMP is sending its traps, I shut down vnc but there is no response. Should the value of the Integer change when the process goes down?

Got it working. Thanks!
Awesome.
Great job by SteveJ!