DISMAN-EVENT-MIB may be your friend and might save a lot of scripting.

Let's pretend we're monitoring a web server on "apple" with community string
"publoc" sending traps to "beartrap".

We would need the following entries in apple's snmpd.conf:

syslocation "somewhere over the rainbow"
syscontact "the man in black"
sysservices 79
agentSecName beartrap
rouser beartrap
rocommunity publoc
trapsink beartrap publoc
trap2sink beartrap publoc
trapinform beartrap publoc
trapcommunity publoc
proc httpd
defaultMonitors yes

When it dies, it shows up in 

UCD-SNMP-MIB::prErrMessage

and should kick out a trap.

I've got this sort of working and will post final solution when I'm happy.







>At this time, we wish to receive an alert when one Unix process is down. 

>We have no idea about the script you meant, have an example of that script
? 

>Once it run, this script will generate a snmp trap when a monitored process
down, isn't it ? pls correct me if I'm wrong. 



This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to