Start Task Scheduler in Windows

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Start Task Scheduler in Windows

Post 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 .
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Start Task Scheduler in Windows

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Start Task Scheduler in Windows

Post by bsivavani »

Thank You.

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

Re: Start Task Scheduler in Windows

Post by bolson »

May we close this topic?
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Start Task Scheduler in Windows

Post by bsivavani »

Yes. Please close this topic.
bolson

Re: Start Task Scheduler in Windows

Post by bolson »

Closing topic as resolved.

Thank you for using the Nagios Support Forum.
Locked