When Does Nagios Check For External Commands?
• At regular intervals specified by the command_check_interval option in the main configuration file • Immediately after event handlers are executed. This is in addtion to the regular cycle of external command checks and is done to provide immediate action if an event handler submits commands to Nagios. Using External Commands External commands can be used to accomplish a variety of things while Nagios is running. Example of what can be done include temporarily disabling notifications for services and hosts, temporarily disabling service checks, forcing immediate service checks, adding comments to hosts and services, etc. Command Format External commands that are written to the command file have the following format…