defined this service
Code: Select all
define service {
host_name TGCS001
service_description Daily Event Report
check_command check_nrpe!check_tasksched! -a "filter=title eq 'Daily Event Report'" 'critical=most_recent_run_time < -1d' empty-state=critical 'empty-syntax=CRITICAL: Daily Event Report NOT found' 'detail-syntax=${title} is stale more than -1d'
check_interval 1440
notification_interval 0
servicegroups Scheduled Tasks
use generic-service
}
define service {
host_name TGCS001
service_description Get System Updates
check_command check_nrpe!check_tasksched! -a "filter=title eq 'Get Updates'" 'critical=most_recent_run_time < -31d' empty-state=critical 'empty-syntax=CRITICAL: Get Updates NOT found' 'detail-syntax=${title} is stale more than -31d'
check_interval 1440
notification_interval 0
servicegroups Scheduled Tasks
use generic-service
}
define service {
host_name TGCS001
service_description Server Up Time
check_command check_nrpe!check_tasksched! -a "filter=title eq 'Server Uptime Report'" 'critical=most_recent_run_time < -1w' empty-state=critical 'empty-syntax=CRITICAL: Server Uptime Report NOT found' 'detail-syntax=${title} is stale more than -1w'
check_interval 1440
notification_interval 0
servicegroups Scheduled Tasks
use generic-service
}
get this error
Daily Event Report This service has 1 comment associated with it This service is currently in a period of scheduled downtime UNKNOWN 03-22-2017 19:40:40 0d 2h 26m 42s 3/3 Unknown command(s): check_tasksched
Get System Updates This service has 1 comment associated with it This service is currently in a period of scheduled downtime UNKNOWN 03-22-2017 18:16:17 0d 2h 21m 13s 3/3 Unknown command(s): check_tasksched
Server Up Time This service has 1 comment associated with it This service is currently in a period of scheduled downtime UNKNOWN 03-22-2017 18:29:59 0d 2h 7m 31s 3/3 Unknown command(s): check_tasksched
Got this from this link http://sites.box293.com/nagios/home
on the server I ran this from c:\program files\nsclient++
nscp settings --activate-module CheckTaskSched --add-defaults and press Enter
Did not have to update the nsclient.ini for this
I have a Windows 2012 R2 with nsclient 4.4.23 with same settings and it works fine
Thoughts?
PS
This server was running 4.1.1 of nsclient and it had the same settings and it worked I had to modify the services when I went to 4.4.23