External Command Reference

External Commands Reference - CHANGE_SVC_MODATTR

Command Format:

CHANGE_SVC_MODATTR;host_name;service_description;value

Description:

This command changes the modified attributes value for the specified service. Modified attributes values are used by Naemon to determine which object properties should be retained across program restarts. Thus, modifying the value of the attributes can affect data retention. This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Naemon.

Shell Script Usage Example:

#!/bin/sh
# This is a sample shell script showing how you can submit the CHANGE_SVC_MODATTR command
# to Naemon. Adjust variables to fit your environment as necessary.

printf "[%lu] CHANGE_SVC_MODATTR;host1;service1;0\n" `date +%s` > /var/lib/naemon/naemon.cmd