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.
LCGS-NINDS-DIRAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve JenningsIT ManagerCommented:
Try and check for PrCount=1 (1.3.6.1.4.1.2021.2.1.5)
0
LCGS-NINDS-DIRAuthor Commented:
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.
0
Steve JenningsIT ManagerCommented:
So you can "walk" the device and see a value of "1" for the prMin?

Steve
0
What were the top attacks of Q1 2018?

The Threat Lab team analyzes data from WatchGuard’s Firebox Feed, internal and partner threat intelligence, and a research honeynet, to provide insightful analysis about the top threats on the Internet. Check out our Q1 2018 report for smart, practical security advice today!

Steve JenningsIT ManagerCommented:
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
0
LCGS-NINDS-DIRAuthor Commented:
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,
0
Steve JenningsIT ManagerCommented:
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
0
LCGS-NINDS-DIRAuthor Commented:
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



0
Steve JenningsIT ManagerCommented:
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
0
Steve JenningsIT ManagerCommented:
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
0
LCGS-NINDS-DIRAuthor Commented:
# 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
0
Steve JenningsIT ManagerCommented:
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
0
LCGS-NINDS-DIRAuthor Commented:
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.
0
LCGS-NINDS-DIRAuthor Commented:
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
0
Steve JenningsIT ManagerCommented:
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
0
LCGS-NINDS-DIRAuthor Commented:
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







0
Steve JenningsIT ManagerCommented:
"cat" the mib and see of the prMin exists there
0
Steve JenningsIT ManagerCommented:
"snmpwalk" the mib from the localhost starting at 2021.2
0
LCGS-NINDS-DIRAuthor Commented:
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:
0
Steve JenningsIT ManagerCommented:
Looks like the OID you are looking for is 1.3.6.1.4.1.2021.2.1.3.1 or .2

And you are going to have to do an snmpset to establish a value.

Good luck,
SteveJ




0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LCGS-NINDS-DIRAuthor Commented:
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?

0
LCGS-NINDS-DIRAuthor Commented:
Got it working. Thanks!
0
Steve JenningsIT ManagerCommented:
Awesome.
0
LCGS-NINDS-DIRAuthor Commented:
Great job by SteveJ!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.