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!
 
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. 
 
I tried various combinations of expressions in monitor directive, and came to 
conclusion that if the directive contains at least one oid like prXxxx.1 - it 
won't work. For example:
 
monitor -r 30 -i -o prNames.1 -o prErrMessage "Process vold" prErrorFlag != 0
 
won't work because there is prNames.1 oid (I am aware this directive hasn't got 
much sense, I am just trying to make a point).
 
Does anyone have an idea what might be the problem? I am using Solaris 10.
 
Kind regards,
 
Milos Radenkovic,
Sun System Engineer 



-------------------------------------------------------
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_idv37&alloc_id865&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