Skip to content

DEL ALL HOST COMMENTS

Command Format

DEL_ALL_HOST_COMMENTS;host_name

Description

Deletes all comments associated with a particular host.

Shell Script Usage Example

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

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