Hi Milos,

Am Donnerstag, 12. Januar 2006 18:15 schrieb Milos Radenkovic:
> Hi everybody,
>
> I found a document about net-snmp agent configuration for Solaris and tried
> to follow Bruce Shaw's advice about 'monitor' directives. He suggests that
> there should be one monitor directive for each monitored process, hence:
> ...
> proc vold
> monitor -r 30 -i -o prNames.1 -o prErrMessage.1 "Process vold"
> prErrorFlag.1 != 0 ...




> Unfortunately this won't send a trap. However, if I use the following
> directive instead:
>
> monitor -r 30 -i -o prNames -o prErrMessage "Process vold" prErrorFlag != 0
>
> the traps are being sent!

This is the correct way, snmpd finds the index. So you didn't need
write prNames.1 or prNames.X

The monitor "directive" needs the "proc" directive!

> I don't understand what might be the problem here. I checked the value of
> prErrorFlag.1 with snmpget, and it is ok ( it turns from 0 to 1 when vold
> stops), but there is no trap being generated.

Note, that the trap was sent only one time. The flag must set to "0", snmpd 
sent the next trap, when the flag was set to "1" the next time...

Bye

Andre


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to