But even when I strip these out and hard code it all it still does nothing
So, I have this set in my Nagios.cfg -
obsess_over_hosts=1
obsess_over_services=1
ocsp_timeout=5
I have this set in the Global Event Handler -
/usr/local/nrdp/clients/send_nrdp.sh -u https://NAGSERVER/nrdp -t TOKEN -H HOSTNAME -s "Port - WAN Test" -S ok -o "This is a test global event handler"
And I have ticket the box to enable it
The service named above has 'obsess over service' set to on
When I run that command from the command line it works perfectly fine, so it is definitely a problem with it being executed
Is there another checkbox somewhere I am missing?
I can see this error in nagios.cfg but I'm not sure if its related as it looks like it has been happening for some time
[1528109693] wproc: GLOBAL SERVICE EVENTHANDLER job 7425 from worker Core Worker 26246 is a non-check helper but exited with return code 7
[1528109693] wproc: early_timeout=0; exited_ok=1; wait_status=1792; error_code=0;
[1528109693] wproc: stderr line 01: execvp(/usr/bin/php, ...) failed. errno is 7: Argument list too long