add_wd_ev

Purpose:

Add a CyFlex event to be monitored by the ‘cyflex_wd’ task.

Enter:

add_wd_ev <event_name> <event_type> <num_events> <num_sec>

Where:

event_name

Specify the event name to add to the list being monitored by the ‘cyflex_wd’ task

event_type

Specify ‘PERIODIC’ or ‘ERROR’:

  • Specify ‘PERIODIC’ to set an event periodically to trigger the condition if the specified value for num_events are not set within the specified value for num_sec.
  • Specify ‘ERROR’ to set an event when an issue occurs to trigger the condition when detecting the specified value for num_events within the specified value for num_sec. 
num_events

Specify the number of ‘ERROR’ events received or the number of ‘PERIODIC’ events missed during the interval specified for num_sec.

num_sec Specify the number of seconds to monitor the event.

Example:

add_wd_ev EbloxNAN ERROR 10 60
The above adds ‘EbloxNAN’ to the monitor list by the ‘cyflex_wd’ task. Because ERROR is selected, ‘cyflex_wd’ will wait for ‘EbloxNAN’ and if 10 of those events are set within a 60, then the CyFlex watch_dog will be killed

add_wd_ev do_signal PERIODIC 2 10
The above adds ‘do_signal’ to the monitor list by the ‘cyflex_wd’ task. Because PERIODIC is selected, ‘cyflex_wd’ listens to all ‘do_signal’ events, and if less than 2 events are received within 10 seconds, then the cyflex watch_dog will be killed

Notes:

The watchdog task “cyflex_wd” task must be running.

This command would normally run towards the end of the go script that starts CyFlex.

If the event has already been added, there will be no error, but the counts associated with this event will reset within the ‘cyflex_wd’ watchdog monitor task

See Also:

cyflex_wd, Master Scheduler