External Command Reference

External Commands Reference - LOG

Command Format:

LOG;any text

Description:

Adds custom entry to the default log file.

Shell Script Usage Example:

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

printf "[%lu] LOG;SERVICE NOTE: testhost;event handler restarted service successfully\n" `date +%s` > /var/lib/naemon/naemon.cmd