lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

conditions/responses

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
Ciaran Bryan
Helper


Joined: 02 Apr 2004
Posts: 17

PostPosted: Wed May 05, 2004 2:37 pm    Post subject: conditions/responses Reply with quote

Hi,
Running 0.14 and trying to setup triggered event responses. Have setup the condition to be true and configured the response and associated notification. On the gatherer run (see log below) the condition is met and an event is raised but the response and notification script is never executed.

My question is, does this work or am i missing somthing ?


Thanks,


[L: 0064, C: 0016] [Dev: 0022] [Sub: 0078] [Mon: 0279] Starting Monitor.
[L: 0128, C: 1024] [Dev: 0022] [Sub: 0078] [Mon: 0279] Mysql Query Succeeded. (SELECT cmd, data_type FROM tests_script WHERE id = 9)
[L: 0064, C: 0512] [Dev: 0022] [Sub: 0078] [Mon: 0279] Sending '/opt/perfmon/scripts/o3sis_monitor.ksh be02 Application 1 requestsProcessed' to shell.
[L: 0064, C: 0016] [Dev: 0022] [Sub: 0078] [Mon: 0279] Value: 0
[L: 0128, C: 0128] [Dev: 0022] [Sub: 0078] [Mon: 0279] RRD: 'update /opt/perfmon/netmrg/var/lib/netmrg/rrd/mon_279.rrd N:0'
[L: 0128, C: 1024] [Dev: 0022] [Sub: 0078] [Mon: 0279] Mysql Query Succeeded. (SELECT id, trigger_type, last_status, situation, last_triggered FROM events WHERE mon_id=279 AND trigger_type = 1)
[L: 0128, C: 1024] [Dev: 0022] [Sub: 0078] [Mon: 0279] [Ev: 0002] Mysql Query Succeeded. (SELECT value, value_type, condition, logic_condition FROM conditions WHERE event_id=2 ORDER BY id)
[L: 0064, C: 0032] [Dev: 0022] [Sub: 0078] [Mon: 0279] [Ev: 0002] Triggered.
[L: 0128, C: 1024] [Dev: 0022] [Sub: 0078] [Mon: 0279] MySQL Update Succeeded. (UPDATE monitors SET tuned=1, last_val=0
Back to top
merabtav
Beginner


Joined: 17 May 2004
Posts: 2

PostPosted: Mon May 17, 2004 8:11 pm    Post subject: same problem Reply with quote

Hi,

I have same problem. I have set up events. It works fine, but
If I add a response to it the script, which should send notification as an email to me after the condition is triggered, the script never executed.

Any suggestion?

Thanks
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Tue May 18, 2004 2:02 am    Post subject: Reply with quote

Looking back over the code, it seems that the status of the event must change for the response to be done (ie, go from a non-triggered to a triggered state). Could this be the cause of your problem?

Other than that, it's pretty straight-forward. Let us know if you find anything, but we'll keep looking on this end.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group