Apologies if I'm not explaining myself right,
When we use the nagios GUI to disable (or enable) monitoring, it is my understanding that in the background a certain instruction is triggered to write onto the command file, such as:
/bin/printf "[%lu] DISABLE_HOST_CHECK;host1\n" $now > $commandfile
(taken from here: https://old.nagios.org/developerinfo/ex ... mand_id=54
What I'd like to do (for a specific service of a remote host) is: when the Nagios GUI is used to disable/enable monitoring an instruction would be triggered to run one of my scripts instead.
The reason behind this is that I've got a remote host that contains services which are monitored by custom local scripts. I can locally and remotely prevent these scripts from running, thus disabling monitoring. Using the Nagios GUI to achieve this would be a lot nicer though. Admittedly, I guess this is not what nagios should be used for, however since I've got a few hosts in nagios it would be nicer to keep using Nagios and keep monitoring suppression/unsuppression in one place.
From what I read, external commands appear to be the opposite of what I'm trying to do - or perhaps I did not understand them correctly?