XI 2012R2.9 Enterprise Edition
Windows 2008R2
NSClient 0.4.1.102
CheckTaskSched2 = 1
I have 2 tasks in the Task Scheduler
./check_nrpe -H 10.104.28.124 -c CheckTaskSched -a "filter=title eq 'Test' AND exit_code ne 0" MaxCrit=1 "syntax=%title%: %exit_code% %most_recent_run_time%"
Test: 5555 2014-Jun-24 02:01:47, eventlog: 1 > critical|'eventlog'=1;0;1
./check_nrpe -H 10.104.28.124 -c CheckTaskSched -a "filter=title eq 'Test2' AND exit_code ne 0" MaxCrit=1 "syntax=%title%: %exit_code% %most_recent_run_time%"
Test2: 6666 2014-Jun-24 02:11:46, eventlog: 1 > critical|'eventlog'=1;0;1
The time returned is GMT, how do I get it to return the same timezone as the target machine?
Here I used a wrong name for the title
./check_nrpe -H 10.104.28.124 -c CheckTaskSched -a "filter=title eq 'Test231312' AND exit_code ne 0" MaxCrit=1 "syntax=%title%: %exit_code% %most_recent_run_time%"
OK: All scheduled tasks are good.|'eventlog'=0;0;1
Since the task name is not found, I want it to say, task not found with unknown error code. How do I go about this?
Thanks
NSClient CheckTaskSched Questions
NSClient CheckTaskSched Questions
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: NSClient CheckTaskSched Questions
I had some issues with the checktasksched too, so I made my own script to monitor them. You could give it a try. http://exchange.nagios.org/directory/Pl ... ks/details You can edit the output as you like in the script.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: NSClient CheckTaskSched Questions
I did see your script but the administrator requirements is not possible in my environment.WillemDH wrote:I had some issues with the checktasksched too, so I made my own script to monitor them. You could give it a try. http://exchange.nagios.org/directory/Pl ... ks/details You can edit the output as you like in the script.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: NSClient CheckTaskSched Questions
Well, if you are running the script locally, there should not be any administrator requirements. I can confirm I have it running on a server as local system.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: NSClient CheckTaskSched Questions
This is great news as we run it locally also. I have given up on the NSClient for Task Schedule monitoring.WillemDH wrote:Well, if you are running the script locally, there should not be any administrator requirements. I can confirm I have it running on a server as local system.
Thanks for your effort in producing this plugin.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: NSClient CheckTaskSched Questions
Thanks as usual for the input, Willem!
raja, I assume we are safe to lock this thread?
raja, I assume we are safe to lock this thread?
Former Nagios employee
Re: NSClient CheckTaskSched Questions
Yes, please close it.tmcdonald wrote:Thanks as usual for the input, Willem!
raja, I assume we are safe to lock this thread?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation