Upgrade nsclient services fails

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Upgrade nsclient services fails

Post by kwhogster »

Just updated my Windows 2008 server to nsclient 4.4.23

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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Upgrade nsclient services fails

Post by avandemore »

It would seem check_tasksched is not defined on your nsclient. Can you share its configuration?
Previous Nagios employee
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Upgrade nsclient services fails

Post by kwhogster »

After I ran this

nscp settings --activate-module CheckTaskSched --add-defaults and press Enter

I forgot to restart the nscp service

Did that now working


This can be locked as resolved

Thank you
Locked