I currently have the Actions Component setup to add a custom command (i.e. the Action Type is set to command) to every service within a service group when certain conditions are met. This works.
However, when I click on the command it opens a brand new tab, telling me its executing the script. This is not ideal.
Does this behavior always happen with commands? Is there any way to get it to stop opening up this new tab and displaying this extra information (some of which could be considered a security risk as its potentially giving extra information about the system)?
Many thanks,
Matthew
Actions Component
Re: Actions Component
Yup! The popup is pretty important in helping (older versions of) PHP not get hung up on a particular process.hornseym wrote: Does this behavior always happen with commands?
Not with the component's current state. If you were feeling adventurous, you could change the following in /usr/local/nagiosxi/html/includes/components/actions/runcmd.php around line 125:hornseym wrote: Is there any way to get it to stop opening up this new tab and displaying this extra information?
Code: Select all
system($cmdline);Code: Select all
exec($cmdline);Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/