Page 2 of 3

Re: NRPE CheckTaskSched No Handler Error

Posted: Fri Nov 01, 2013 12:14 pm
by Theb2b
I'm not familiar with what you are asking me to provide, little more detial please.

Re: NRPE CheckTaskSched No Handler Error

Posted: Fri Nov 01, 2013 12:19 pm
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

Re: NRPE CheckTaskSched No Handler Error

Posted: Mon Nov 04, 2013 1:22 pm
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.

Re: NRPE CheckTaskSched No Handler Error

Posted: Mon Nov 04, 2013 3:05 pm
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.

Re: NRPE CheckTaskSched No Handler Error

Posted: Tue Nov 05, 2013 2:10 pm
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$%
}

Re: NRPE CheckTaskSched No Handler Error

Posted: Tue Nov 05, 2013 2:51 pm
by slansing
We are looking for the definition of the NRPE check you are running against the Task Scheduler.

Re: NRPE CheckTaskSched No Handler Error

Posted: Tue Nov 05, 2013 4:23 pm
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?

Re: NRPE CheckTaskSched No Handler Error

Posted: Wed Nov 06, 2013 10:58 am
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 '

Re: NRPE CheckTaskSched No Handler Error

Posted: Tue Nov 12, 2013 11:47 am
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.

Re: NRPE CheckTaskSched No Handler Error

Posted: Tue Nov 12, 2013 2:16 pm
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'