Skip to content

SAVE STATE INFORMATION

Command Format

SAVE_STATE_INFORMATION

Description

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

sh
#!/bin/sh
# This is a shell script showing how to 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