You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ans: At regular intervals specified by the command_check_interval option in the main configuration file
Immediately after event handlers are executed. This is in addition to the regular cycle of external command checks and is done to provide immediate action if an event handler submits commands to Nagios.
External commands that are written to the command file have the following format [time] command_id;command_arguments
where time is the time (in time_t format) that the external application submitted the external command to the command file. The values for the command_id and command_arguments arguments will depend on what command is being submitted to Nagios.
and this specific tidbit:
External commands that are written to the command file have the following format [time] command_id;command_arguments
where time is the time (in time_t format)
which reminded me of this CLI "recipe" (where example1 in the example is the hostname):
While reading https://www.devopsschool.com/tutorial/nagios/nagios-faq.html I found this:
and this specific tidbit:
which reminded me of this CLI "recipe" (where
example1
in the example is the hostname):$ grep -i example1 /usr/local/nagios/var/nagios.log | perl -pe 's/(\d+)/localtime($1)/e'
It would be useful to provide a helper for converting the
time_t
format to other commonly used formats.The text was updated successfully, but these errors were encountered: