External Command Reference

External Commands Reference - SAVE_STATE_INFORMATION

Command Format:



Causes Naemon to save all current monitoring status information to the state retention file. Normally, state retention information is saved before the Naemon process shuts down and (potentially) at regularly scheduled intervals. This command allows you to force Naemon to save this information to the state retention file immediately. This does not affect the current status information in the Naemon process.

Shell Script Usage Example:

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

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