Page 1 of 1

Start Task Scheduler in Windows

Posted: Wed Jul 26, 2017 12:38 pm
by bsivavani
Hi,

We are using check_ms_win_tasks.ps1 plugin to monitor task scheduler status.

We have setup this plugin to monitor Task scheduler in Windows 2008 server and it is working as expected.

[nagios@s930l3090 ~]$ /usr/local/nagios/libexec/check_nrpe -u -H s910a3000.group.rwe.com -t 120 -c check_ms_win_tasks -a '-IF TEST -IT SQL_DeDuplication_CLOUD'
1 / 1 tasks ran succesfully. |'Total Tasks'=1 'OK Tasks'=1;;;0;1 'Failed Tasks'=0;;;0;1 'Running Tasks'=0;;;0;1 'Disabled Tasks'=0;;;0;1
[nagios@s930l3090 ~]$

Can you let us know if it is possible to start the Task Scheduler whenever it finds it is Not running .

Re: Start Task Scheduler in Windows

Posted: Wed Jul 26, 2017 2:24 pm
by lmiltchev
You can probably use an event handler to do that. Here's an example of how to restart a Windows service via NRPE and NSClient++:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I haven't really tested this with the Task Scheduler, but it should work. Let us know if this helped.

Re: Start Task Scheduler in Windows

Posted: Tue Aug 01, 2017 10:50 am
by bsivavani
Thank You.

I am able to restart the task scheduler using event handlers.

Re: Start Task Scheduler in Windows

Posted: Tue Aug 01, 2017 11:33 am
by bolson
May we close this topic?

Re: Start Task Scheduler in Windows

Posted: Mon Aug 07, 2017 5:19 am
by bsivavani
Yes. Please close this topic.

Re: Start Task Scheduler in Windows

Posted: Mon Aug 07, 2017 9:08 am
by bolson
Closing topic as resolved.

Thank you for using the Nagios Support Forum.