I am currently running core Version 4.0.6 & am trying to regularly set a host group in downtime - hopefully as a cron job.
looking through the docs i came across SCHEDULE_SERVICEGROUP_HOST_DOWNTIME which seems to do what i want. except i can't make it do so:lol:
If i run this:
Code: Select all
*/usr/local/nagios/var/rw/nagios/cmd SCHEDULE_SERVICEGROUP_HOST_DOWNTIME;Solaris dev servers;1110741500;1577666928;0;0;7200;test;test comment
from the shell either as root or user nagios i get "permission denied"
if i run it as a bash script (has permissions) as in the documentation here
https://assets.nagios.com/downloads/nag ... and_id=121
I get a "command not found" output
To me they're both the same thing just run in slightly different formats..but i get different error messages.
Am i missing something blindingly obvious here to get this working?
any help would be appreciated
regards