Nagios checks failing with error restricted path in error
Re: Nagios checks failing with error restricted path in erro
Yes, nrpe.cfg has it
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios checks failing with error restricted path in erro
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"mohan23 wrote:Yes, nrpe.cfg has it
And show the output
Re: Nagios checks failing with error restricted path in erro
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?
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
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios checks failing with error restricted path in erro
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?
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
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios checks failing with error restricted path in erro
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/
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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios checks failing with error restricted path in erro
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
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
https://github.com/sni/mod_gearman/blob ... er.conf.in
Be sure to check out our Knowledgebase for helpful articles and solutions!