Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
... <!-- service_host The host that executes the passive check. The name must match the corresponding setting in the System Monitor. monitor_host The hostname or IP address of System Monitor host. service_status ${MON_O_CONTROLLER_ID} The JS7 Controller ID, see Monitor Variables ${MON_N_STATUS} 0=success, 1=warning, 2=critical ${MON_ON_CONTROLLER_IDTYPE} The JS7 Controller ID, see Monitor Variables SUCCESS, WARNING, ERROR, RECOVERED ... Message example after substitution (error case): <Message name="notify_on_error"><![CDATA["localhost\tJS7 Monitoring Errors\t2\tERROR controller id=jobscheduler, history id=123, workflow path=test/some_workflow, label=100, error=error occurred\n"]]></Message> Message example after substitution (recovery case): <Message name="notify_on_error"><![CDATA["localhost\tJS7 Monitoring Errors\t0\tRECOVERED controller id=jobscheduler, history id=123, workflow path=test/some_workflow, label=100, error=error occurred\n"]]></Message> Message example after substitution (success case): <Message name="notify_on_error"><![CDATA["localhost\tJS7 Monitoring Success\t0\tSUCCESS controller id=jobscheduler, history id=123, workflow path=test/some_workflow, label=100, error=\n"]]></Message> --> ... <Message name="notify_on_error"><![CDATA["service_host\tJS7 Monitoring Errors\t2t${MON_N_STATUS}\t${MON_OSN_SEVERITYTYPE} controller id=${MON_O_CONTROLLER_ID}, history id=${MON_O_HISTORY_ID}, workflow path=${MON_O_WORKFLOW_PATH}, order id=${MON_O_ORDER_ID}, status=${MON_OS_SEVERITY}, error=${MON_OS_ERROR_TEXT}\n"]]></Message> ... <CommandFragment name="command_on_error"> <MessageRef ref="notify_on_error"/> <Command><![CDATA[echo -e ${MESSAGE} | /usr/local/nagios/bin/send_nsca -H monitor_host -c /usr/local/nagios/etc/send_nsca.cfg]]></Command> </CommandFragment> ... |
...
Overview
Content Tools