Monitoring Windows 2008 Scheduled Tasks
Posted: Wed Jul 10, 2013 9:28 am
Hello,
I've had a really hard time today trying to monitor WIndows 2008 scheduled tasks. Is there anyone here who got some experience with this?
I've been looking on http://www.nsclient.org/nscp/wiki/Check ... _tasksched for more information, but it seems like there is some infor missing.
nsclient.ini:
[/modules]
CheckTaskSched1 = 1
CheckTaskSched2 = 1
[root@srvnagios01 ~]# /usr/local/nagios/libexec/check_nrpe -H testserver -t 30 -c CheckTaskSched -p 5666 -a "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=\>0
OK: All scheduled tasks are good.|'eventlog'=0;0;0
While there is at least one scheduled task that hasn't got a status code of 0.
i thought the problem could be that I use the checktasksched1 or so, but
/usr/local/nagios/libexec/check_nrpe -H testserver -t 30 -c CheckTaskSched2 -p 5666 -a "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=\>0
No handler for command: checktasksched2
So he doesn't seem to know checktasksched2..
Any help is welcome..
I've had a really hard time today trying to monitor WIndows 2008 scheduled tasks. Is there anyone here who got some experience with this?
I've been looking on http://www.nsclient.org/nscp/wiki/Check ... _tasksched for more information, but it seems like there is some infor missing.
nsclient.ini:
[/modules]
CheckTaskSched1 = 1
CheckTaskSched2 = 1
[root@srvnagios01 ~]# /usr/local/nagios/libexec/check_nrpe -H testserver -t 30 -c CheckTaskSched -p 5666 -a "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=\>0
OK: All scheduled tasks are good.|'eventlog'=0;0;0
While there is at least one scheduled task that hasn't got a status code of 0.
i thought the problem could be that I use the checktasksched1 or so, but
/usr/local/nagios/libexec/check_nrpe -H testserver -t 30 -c CheckTaskSched2 -p 5666 -a "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=\>0
No handler for command: checktasksched2
So he doesn't seem to know checktasksched2..
Any help is welcome..