NRPE CheckTaskSched No Handler Error
Re: NRPE CheckTaskSched No Handler Error
I'm not familiar with what you are asking me to provide, little more detial please.
Re: NRPE CheckTaskSched No Handler Error
Go to Configure, then Core Configuration Manager. Look for your service:

then on the right, click the icon that looks like a 3.5" disk to the right of the orange X

then on the right, click the icon that looks like a 3.5" disk to the right of the orange X
Former Nagios employee
Re: NRPE CheckTaskSched No Handler Error
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
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.
I believe what he wanted to see was the text of the .cfg file for the service in question.
Former Nagios employee
Re: NRPE CheckTaskSched No Handler Error
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$%
}
# '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
We are looking for the definition of the NRPE check you are running against the Task Scheduler.
Re: NRPE CheckTaskSched No Handler Error
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?
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
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:Theb2b wrote:-a "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" MaxWarn=1
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.
"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.
Re: NRPE CheckTaskSched No Handler Error
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
On an upside figured out how to get checkMEM working to display avialable memory.
Thanks again for all your help.
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=1Thanks again for all your help.
Re: NRPE CheckTaskSched No Handler Error
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!