Hi, I am having trouble getting process restarts to work. I am crosscompiling for ARM on i686 Linux and my configures and makes are clean.
I have been running the daemon with debugging set on. Here is a sequence from what appears should be disman triggering a restart of a program. 62412 disman:event:trigger:monitor: Running trigger (restart meter_service) 62413 UCD-SNMP-MIB::prErrFix.3 = Wrong Type (should be INTEGER): Variable has bad type Here is the config: 89 proc meter_service 90 #setEvent -I prRestart_meter_service prErrFix.3 = 1 91 #setEvent -I prRestart_meter_service UCD-SNMP-MIB::prErrFix.3 = 1 92 setEvent prRestart_meter_service prErrFix.3 = 1 93 notificationEvent not_meter_service prNames.3 prCount.3 prErrMessage.3 94 monitor -S -e not_meter_service -u dismanrw -r 10 -o prNames.3 -o prCount.3 -o prErrMessage.3 "meter_service DOWN" prCount.3 < 1 95 monitor -S -e prRestart_meter_service -u dismanrw -r 10 "restart meter_service" prErrFix.3 1 1 96 procfix meter_service /root/meter_service -vector Voltage -port 8000 -outfile /var/tmp/meterservice_history.out I have also tried various versions of EXPRESSION in the monitor command (e.g., == 1), but hat doesn't make any difference. It appears the problem is the 'setEvent'. Commented out attempts made no difference. Note that the notification sequence works just fine. If I just have: proc myProc procfix myProc blah-de-blah in the config and no setEvent, I see messages like these that DON'T have a problem with the the type of prErrFix, so it seems setting it may be the culprit. results: UCD-SNMP-MIB::prErrFix.4 = INTEGER: noError(0) I have found a few threads on this topic, but nothing that really seems to apply. Another theory is that this is just a cover for an access violation, i.e., but that doesn't really explain why the type is wrong on the disman read. Thanks, Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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
