NRPE CheckTaskSched No Handler Error

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.
Theb2b
Posts: 16
Joined: Fri Nov 23, 2012 2:33 pm

Re: NRPE CheckTaskSched No Handler Error

Post by Theb2b »

I'm not familiar with what you are asking me to provide, little more detial please.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE CheckTaskSched No Handler Error

Post by tmcdonald »

Go to Configure, then Core Configuration Manager. Look for your service:

Image

then on the right, click the icon that looks like a 3.5" disk to the right of the orange X
Former Nagios employee
Theb2b
Posts: 16
Joined: Fri Nov 23, 2012 2:33 pm

Re: NRPE CheckTaskSched No Handler Error

Post by Theb2b »

Left hand "pane" I have Configuration, click on that I get leads me to screen with "Select Type of Config Data You Wish To View". Defiantly not in the correct location.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE CheckTaskSched No Handler Error

Post by tmcdonald »

Sorry, I saw "CCM" in lmiltchev's post and assumed we were talking Nagios XI.

I believe what he wanted to see was the text of the .cfg file for the service in question.
Former Nagios employee
Theb2b
Posts: 16
Joined: Fri Nov 23, 2012 2:33 pm

Re: NRPE CheckTaskSched No Handler Error

Post by Theb2b »

Believe this is what you are looking for?

# 'checkMEM' command definition
define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c CheckMEM -a MinWarn=$ARG1$% MinCrit=$ARG2$%
}
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE CheckTaskSched No Handler Error

Post by slansing »

We are looking for the definition of the NRPE check you are running against the Task Scheduler.
Theb2b
Posts: 16
Joined: Fri Nov 23, 2012 2:33 pm

Re: NRPE CheckTaskSched No Handler Error

Post by Theb2b »

define command {
command_name CheckTaskSched
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckTaskSched -a "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" MaxWarn=1
}

This what you are needing?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE CheckTaskSched No Handler Error

Post by abrist »

Theb2b wrote:-a "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" MaxWarn=1
You may be having nested quote issues. The entire string needs to be wrapped in quotes for them all to be passed as an arg (-a). Any quote inside the arg must be escaped:

Code: Select all

-a ' "filter=title eq \'$ARG1$\' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" MaxWarn=1 '
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Theb2b
Posts: 16
Joined: Fri Nov 23, 2012 2:33 pm

Re: NRPE CheckTaskSched No Handler Error

Post by Theb2b »

Sorry for the delay in getting back, department was a bit short handed but I can now get back to this.

Made the changes per last request, and now getting Parsing failed: title eq 'test.job' AND exit_code ne 0
Below is my modifed command definition

Code: Select all

command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c CheckTaskSched -a "filter=title eq \'test.job\' AND exit_code ne 0" "syntax=%title%: %exit_code%" MaxWarn=1
On an upside figured out how to get checkMEM working to display avialable memory.

Thanks again for all your help.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE CheckTaskSched No Handler Error

Post by lmiltchev »

Have you tried using different version of NSClient++? I have a ver. 0.3.9 on one of my test boxes, and it seems to list all of the running tasks properly:

Code: Select all

[root@testbox libexec]# ./check_nt -H <IP> -s "password" -p 12489 -v CLIENTVERSION
NSClient++ 0.3.9.328 2011-08-16
[root@testbox libexec]# ./check_nrpe -H <IP> -c CheckTaskSched -p 5666 -a "filter=status ne 'disabled'" "syntax='%title%'"
'GoogleUpdateTaskUserS-1-5-21-279415221-2249968408-1103756752-1000UA.job', 'GoogleUpdateTaskUserS-1-5-21-279415221-2249968408-1103756752-1000Core.job', 'Adobe Flash Player Updater.job'
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked