Page 1 of 1

Check NRPE scheduled task

Posted: Tue Nov 09, 2021 6:37 am
by Baptist39
Hello everyone!

A little problem that is bothering me :)

I want to supervise the execution of a pannified windows task, so I use NRPE, it's the simplest solution I found.
Before creating my command on Nagios XI, I test it directly on the server.

Image

My command works well !
"OK: All tasks are ok|'FTP_CopyfactInfra_exit_code'=0;0;0 'FTP_CopyfactInfra_most_recent_run_time'=1636453698;0;1636370894"

So I switch to Nagios, I create my command the same way:
Image

I make a small test of order, and it is there that it blocks:
Image

"Failed to validate filter see log for details: Filter expression is not valid: title eq \'FTP_CopyfactInfra\'"

However, the syntax is exactly the same as the first one I ran without using the nagios interface?
So I don't understand what's wrong with this "\" character...

If someone has an idea, I'm interested !

Thank !! :)

(Sorry for my english translation)

Re: Check NRPE scheduled task

Posted: Wed Nov 10, 2021 2:48 am
by Baptist39

Re: Check NRPE scheduled task

Posted: Fri Nov 12, 2021 11:51 am
by benjaminsmith
Thanks for pointing that out, we'll close this one out.

--Benjamin