I have a problem with the execution of shell commands in the definition of notifications;
voila definition commands
define command (
command_line / usr / bin / eject cdrom
This definition is just an example to see the execution of shell commands.
notify_host_by_eject is triggered after the log file, but it is not executed.
I’m new to supervision and nagios and I do not know much about commands and how they are written.
I would like you help me with the syntax and the execution of shell commands in the definition of commands nagios.