Snmp Process Monitoring Issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Snmp Process Monitoring Issue
# 1  
Old 04-11-2011
Snmp Process Monitoring Issue

Can someone please explain to me how come snmpwalk doesn't always find a running process that's on a remote server?

I prefer to use snmp to monitor processes remotely because this doesn't require me to put a script on that remote box. but the problem is, there are times that my snmp command will report that a certain process wasn't found, when in fact that process is running.

The script i run for this revolves around this command:

Code:
snmpwalk -v2c -c bla&@ blah.blah.net hrSWRunPath | egrep -ic oracle


is there a better way to do this via snmp?
# 2  
Old 04-12-2011
snmp is by definition NOT required to get an answer for every query. By default it uses a delivery system, UDP, not TCP, that is not guaranteed to complete the delivery.

The more usual way to get what you want using snmpwalk, this example assumes public is allowed

Code:
ok=1
cnt=0
while [ $ok -ne 0 ]
do
   snmpwalk -c public -v 2c  nodename [oid]
   ok=$?
   cnt=$cnt+1
   [ $cnt -eq 10 ]  && break;
   sleep 2
done | egrep -q 'pattern '
[ $? -ne 0 ]  &&  echo 'failure'

This is in effect partly because a busy system is allowed to disregard snmp requests.
# 3  
Old 04-26-2011
You may want to use the DISMAN Event MIB and the built-in process monitoring facility, see for instance: snmpd.examples

HTH, Loïc
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

2. UNIX for Advanced & Expert Users

Issue with SNMP

Hi, I have a strange issue with snmwpalk. If I do snmpget on yyy.977.4.3.1.3.1006 I get the following successfull output : yyy.977.4.3.1.3.1006 = INTEGER: 206 This is what I was excepting for, now I want to look for other snmp addresses Under yyy.977.4.3.1.3.xxxx. If I do snmpwalk on... (3 Replies)
Discussion started by: FFedo
3 Replies

3. Infrastructure Monitoring

SNMP Monitoring

Hi, I have below IP address configured in my server. Recently i installed SNMP in Linux 64x bit. While checking the snmp using snmpwalk i get Time out error for all IP except loopback IP(127.0.0.1). How to make all my IPs listen to SNMP eth0 BOOTPROTO=static DEVICE=eth0... (1 Reply)
Discussion started by: Paulwintech
1 Replies

4. Infrastructure Monitoring

temp monitoring via SNMP

Hi, I am trying to monitor temperature of telecom devices of avaya and polycom. I have setup SNMP. can somebody help me to know what are the requirements to have a SNMP command working for this thanks in advance (1 Reply)
Discussion started by: Subhash Chauhan
1 Replies

5. Infrastructure Monitoring

Monitoring CPU Usage with SNMP

Can someone please tell me how to calculate the CPU usage from what one gets back from snmpwalk? I have searched and dug through the internet and apparently, no one has the answer to this? i can use snmpwalk to pull out relevant information about cpu. but i have no clue what values are to be... (1 Reply)
Discussion started by: SkySmart
1 Replies

6. Infrastructure Monitoring

SNMP Issue

When my server is restarted, SNMP does not start automatically. It needs to be started manually everytime the server is restarted. (1 Reply)
Discussion started by: shahdeo
1 Replies

7. Infrastructure Monitoring

net-snmp issue

When I run a script that polls a router I get the following error from net-snmp. I can not seem to find a straight answer. Could my mib files be corrupt? xxx-xxx:/etc/sma/snmp/mibs# perl /export/home/user/perl/test.pl Unlinked OID in SNMPv2-MIB: snmp ::= { mib-2 11 } Undefined identifier:... (2 Replies)
Discussion started by: mrlayance
2 Replies

8. Solaris

Net-snmp issue in Solaris 8

Hi there, I know this is a common question, but I have not found a satsifactory solution yet, so pardon me for posting similar questions. My problem is the log /var/adm/messages is filling up with this entry every few minutes Please refer below. Oct 4 21:39:46 host last message repeated 3... (5 Replies)
Discussion started by: sundar63
5 Replies

9. AIX

monitoring process list via snmp, hrSWRun

hello, i'd like to evaluate the process list of an AXI 5.3 system via snmpv3. The problem is, that there's no data below the specified branches: 1.3.6.1.2.1.25.4 / .5 in /etc/mib.defs it is defined as hrSWRun / hrSWRunPerf The user's viewgroup is iso. (1.). A snmpwalk through... (0 Replies)
Discussion started by: Bzubi
0 Replies

10. UNIX for Advanced & Expert Users

Monitoring CPU usage on AIX 5.3 with SNMP

Hi I would like to monitor CPU usage ( %) , memory utilization and such on an AIX 5.3 with snmp. How would I do that ? :confused: If I do "snmpwalk -c public -v1 hosttomonitor" I get nothing about the CPU. I've done this on Linux ( not much trouble doing it on linux ) but I'm having a hard... (2 Replies)
Discussion started by: art
2 Replies
Login or Register to Ask a Question