CHANGE MAX SVC CHECK ATTEMPTS
Command Format
CHANGE_MAX_SVC_CHECK_ATTEMPTS;service;check_attempts
Description
Changes the maximum number of check attempts (retries) for a particular service.
Shell Script Usage Example
sh
#!/bin/sh
# This is a shell script showing how to submit the CHANGE_MAX_SVC_CHECK_ATTEMPTS command
# to Naemon. Adjust variables to fit your environment as necessary.
printf "[%lu] CHANGE_MAX_SVC_CHECK_ATTEMPTS;service1;10\n" \
`date +%s` > /var/lib/naemon/naemon.cmd