Page 2 of 2
Re: Nagios checks failing with error restricted path in erro
Posted: Tue Dec 03, 2019 11:06 pm
by mohan23
Yes, nrpe.cfg has it
Re: Nagios checks failing with error restricted path in erro
Posted: Wed Dec 04, 2019 8:38 am
by scottwilkerson
mohan23 wrote:Yes, nrpe.cfg has it
If you go to the CCM and edit one of the services that is showing that output, can you click the "Run Check Command" -> "Run Check Command"
And show the output
Re: Nagios checks failing with error restricted path in erro
Posted: Mon Dec 09, 2019 12:06 pm
by mohan23
Now my question is I want to use restrict_path in gearman worker.conf and how I can ovveride and use those shell characters like ,'"()$- in my command line?
What I mean is I want to enable restrict_path and I want to use these forbidden shell characters in command line, how can I do this?
Re: Nagios checks failing with error restricted path in erro
Posted: Mon Dec 09, 2019 5:07 pm
by tgriep
There does not look like there is an option to use the restricted_path option and have the special characters without rewriting the software to allow it.
Re: Nagios checks failing with error restricted path in erro
Posted: Mon Dec 09, 2019 11:08 pm
by mohan23
I have defined hostgroups=somename and at the same time can put hosts=yes and services=yes in remote worker.conf
hostgroups=linuxservers
hosts=yes
services=yes
Are these entries valid as I'm providing hostgroup names?
Re: Nagios checks failing with error restricted path in erro
Posted: Tue Dec 10, 2019 10:33 am
by tgriep
The options that you have set should work for you.
But if you see host and service checks that you do not want to run on that worker, if you set the host and service option to no, it will only run the checks for the hostgroup.
Re: Nagios checks failing with error restricted path in erro
Posted: Tue Dec 10, 2019 3:33 pm
by tgriep
One more update, it looks like they did add the ability to use the special characters when using the restrict_path option.
To use this, you would have to upgrade the Mod Gearman worker.
I saw the option in version 3.2.1 of the Worker software but I did not see when it was added.
https://github.com/sni/mod_gearman/
Re: Nagios checks failing with error restricted path in erro
Posted: Fri Dec 13, 2019 4:33 am
by mohan23
what is the option that i can add in worker.conf to use spacial characters
Re: Nagios checks failing with error restricted path in erro
Posted: Fri Dec 13, 2019 10:05 am
by tgriep
Take a look at the bottom of the worker.conf file at this link for the option.
https://github.com/sni/mod_gearman/blob ... er.conf.in