Nagios Core - SCHEDULE_FORCED_SVC_CHECK not working anymore
Posted: Tue Nov 06, 2018 5:30 am
Hello,
I am using Nagios Core 3.5.1 in Ubuntu Ubuntu 14.04.5 LTS.
Suddenly since yesterday, I am facing problem with force checks.
When I execute force check from web gui, its said "Your command request was successfully submitted to Nagios for processing."
I can even see it in nagios3.log "[1541498447] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;host.ext;Network bandwidth;1541498445"
but its actually not fired as process in system background...
When I run testing script:
now=`date +%s`
commandfile='/var/lib/nagios3/rw/nagios.cmd'
/usr/bin/printf "[%lu] ADD_HOST_COMMENT;host.ext;1;Comment;Comment test" > $commandfile
It works! it ads comment to host.
But when I run:
/usr/bin/printf "[%lu] SCHEDULE_HOST_CHECK;host.ext;$NOW" > $commandfile
It doesn work! I can see in log, it was fired. But command to ping host isnt executed...
Any idea?
Thanks lot for help...
Peter.
I am using Nagios Core 3.5.1 in Ubuntu Ubuntu 14.04.5 LTS.
Suddenly since yesterday, I am facing problem with force checks.
When I execute force check from web gui, its said "Your command request was successfully submitted to Nagios for processing."
I can even see it in nagios3.log "[1541498447] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;host.ext;Network bandwidth;1541498445"
but its actually not fired as process in system background...
When I run testing script:
now=`date +%s`
commandfile='/var/lib/nagios3/rw/nagios.cmd'
/usr/bin/printf "[%lu] ADD_HOST_COMMENT;host.ext;1;Comment;Comment test" > $commandfile
It works! it ads comment to host.
But when I run:
/usr/bin/printf "[%lu] SCHEDULE_HOST_CHECK;host.ext;$NOW" > $commandfile
It doesn work! I can see in log, it was fired. But command to ping host isnt executed...
Any idea?
Thanks lot for help...
Peter.