Nagios checks failing with error restricted path in error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Nagios checks failing with error restricted path in erro

Post by mohan23 »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Nagios checks failing with error restricted path in erro

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios checks failing with error restricted path in erro

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Nagios checks failing with error restricted path in erro

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios checks failing with error restricted path in erro

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios checks failing with error restricted path in erro

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Nagios checks failing with error restricted path in erro

Post by mohan23 »

what is the option that i can add in worker.conf to use spacial characters
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios checks failing with error restricted path in erro

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked