Home » Categories » General Topics » Check Library

Scheduled Task Checks

Scheduled Task Checks

Scheduled Task checks allow you to query the status of Windows Tasks.

 

Nagios Plugins

Nagios Plugins does not include a way to check scheduled tasks.

NCPA

NPCA does not include a way to check scheduled tasks.

NSClient++ via check_nt

NSClient++ via check_nt does not include a way to check scheduled tasks.

NSClient++ via check_nrpe

NSClient++ includes the check_tasksched module that allows you to check Windows Scheduled Tasks.

The check_tasksched module requires the module to be enabled in the nsclient.ini file, execute the following command in an Administrative command prompt:

cd "\Program Files\NSClient++\"
nscp settings --activate-module CheckTaskSched
nscp service --restart

 

Here is an example of making sure that a scheduled task (Test_Task) is running as per it's schedule. On the Windows machine, the tasks runs every 5 minutes. The following check will alert if the last run time is more than five minutes (when it last started).

Command:

./check_nrpe -H 10.25.14.2 -c check_tasksched -a "filter=title eq 'Test_Task'" 'critical=most_recent_run_time < -5m' empty-state=critical 'empty-syntax=${status}: Test_Task NOT found' 'detail-syntax=${title} is stale more than -5m'

Output:

OK: All tasks are ok|'Test_Task_exit_code'=0;0;0 'Test_Task_most_recent_run_time'=1511910303;0;1511910278

WMI

Check WMI Plus does not include a way to check scheduled tasks.

SNMP

SNMP does not include a way to check scheduled tasks.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Performance Counter Checks
Viewed 1719 times since Wed, Nov 15, 2017
Agent Checks
Viewed 905 times since Tue, Nov 14, 2017
Disk Performance Checks
Viewed 1947 times since Sun, Nov 26, 2017
Disk Space Checks
Viewed 11046 times since Thu, Nov 9, 2017
Printer Checks
Viewed 721 times since Tue, Nov 28, 2017
File And Folder Checks
Viewed 5254 times since Sun, Nov 26, 2017
Load Checks
Viewed 6029 times since Thu, Nov 9, 2017
Process Checks
Viewed 6091 times since Thu, Nov 23, 2017
Uptime Checks
Viewed 2657 times since Sun, Nov 26, 2017
Network Interface Checks
Viewed 2197 times since Mon, Nov 20, 2017