...
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_NAME% See explanation "Service variables" %SERVICE_STATUS% See explanation "Service variables" %SERVICE_MESSAGE_PREFIX% See explanation "Service variables" %MON_N_SCHEDULER_ID% See explanation "Table variables" ... NotificationCommand after substitution (error case): <![CDATA[echo service_host:JobScheduler Errors:2:ERROR scheduler id=scheduler_4444, history id=123, job_chain=test/my_jobchain(order_id), step=100, error=error occurred | D:\nsca\send_nsca.exe -H monitor_host -c D:\nsca\send_nsca.cfg -d : ]]> NotificationCommand after substitution (recovery case): <![CDATA[echo service_host:JobScheduler Errors:0:RECOVERED scheduler id=scheduler_4444, history id=123, job_chain=test/my_jobchain(order_id), step=100, error=error occurred | D:\nsca\send_nsca.exe -H monitor_host -c D:\nsca\send_nsca.cfg -d : ]]> NotificationCommand after substitution (success case): <![CDATA[echo service_host:JobScheduler Success:0:scheduler id=scheduler_4444, history id=123, job_chain=test/my_jobchain(order_id), step=100, error= | D:\nsca\send_nsca.exe -H monitor_host -c D:\nsca\send_nsca.cfg -d : ]]> --> <NotificationMonitor service_name_on_error="JobScheduler Errors" service_name_on_success="JobScheduler Success"> <NotificationCommand><![CDATA[echo service_host:%SERVICE_NAME%:%SERVICE_STATUS%:%SERVICE_MESSAGE_PREFIX%scheduler id=%MON_N_SCHEDULER_ID%, history id=%MON_N_ORDER_HISTORY_ID%, job_chain=%MON_N_JOB_CHAIN_NAME%(%MON_N_ORDER_ID%), step=%MON_N_ORDER_STEP_STATE%, error=%MON_N_ERROR_TEXT% | D:\nsca\send_nsca.exe -H monitor_host -c D:\nsca\send_nsca.cfg -d : ]]> </NotificationCommand> </NotificationMonitor> ... |
...