Quick question
Now in /opt/nrpe/ you have local.cfg and plugin.cfg which file is the master and which one is the secondary....example
cpu threshold if I raise it in local.cfg but plugin.cfg has a different setting than will the plugin override what I put in the local.cfg file?
thanks for the help and I hope I am write on this question.
chuck112
local.cfg / plugin.cfg quick question
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: local.cfg / plugin.cfg quick question
Not quite sure what you are referring to here.. how did you install NRPE? What distro is this installed on?
Re: local.cfg / plugin.cfg quick question
I work for a company and a co worker says it goes one way and in the documentation i think i remember it going plugin.cfg as having the final say not local.cfg
Re: local.cfg / plugin.cfg quick question
You haven't answered slansing's question...
In order to help you out we will need a little bit more info.how did you install NRPE? What distro is this installed on?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: local.cfg / plugin.cfg quick question
Okay hopefully this helps
Nagios Core
version 3.2.3
Every 15 minutes the Primary Nagmaster server (as determined by the settings on the NOC / Nagios / Nagios Servers page in ERP) gets all Nagios configurations from ERP. It creates configuration files for itself and all the other Master, Team and Distributed servers. If there are multiple distributed servers assigned to the same region, it splits the checks between them evenly. It then has all the servers test the new configuration files to make sure nothing was set up incorrectly in ERP. If everything tests OK it then has all of the servers switch over to the new configuration files.
wget https://phonehome..........com/downloads/nagios/nagios-install.tgz -O /usr/local/src/nagios-install.tgz
cd /usr/local/src
tar xzvf nagios-install.tgz
cd /usr/local/src/nagios/server
mkdir /opt/......-tools/nagios
cd /opt/......-tools/nagios
wget https://phonehome............com/downloads/nagios/standalone.tgz -O standalone.tgz
tar xzvf standalone.tgz
rm -f standalone.tgz
mv cron.d-nagios /etc/cron.d/nagios
final destination.. /opt/nrpe/local.cfg and /opt/nrpe/plugin.cfg.....
Thats almost explaining how any company would set theirs up but I was hoping i didnt have to go that far into depth but now hopefully we can work the question... which file has final say local or plugin?
I really do appreciate it... you have not idea
Nagios Core
version 3.2.3
Every 15 minutes the Primary Nagmaster server (as determined by the settings on the NOC / Nagios / Nagios Servers page in ERP) gets all Nagios configurations from ERP. It creates configuration files for itself and all the other Master, Team and Distributed servers. If there are multiple distributed servers assigned to the same region, it splits the checks between them evenly. It then has all the servers test the new configuration files to make sure nothing was set up incorrectly in ERP. If everything tests OK it then has all of the servers switch over to the new configuration files.
wget https://phonehome..........com/downloads/nagios/nagios-install.tgz -O /usr/local/src/nagios-install.tgz
cd /usr/local/src
tar xzvf nagios-install.tgz
cd /usr/local/src/nagios/server
mkdir /opt/......-tools/nagios
cd /opt/......-tools/nagios
wget https://phonehome............com/downloads/nagios/standalone.tgz -O standalone.tgz
tar xzvf standalone.tgz
rm -f standalone.tgz
mv cron.d-nagios /etc/cron.d/nagios
final destination.. /opt/nrpe/local.cfg and /opt/nrpe/plugin.cfg.....
Thats almost explaining how any company would set theirs up but I was hoping i didnt have to go that far into depth but now hopefully we can work the question... which file has final say local or plugin?
I really do appreciate it... you have not idea
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: local.cfg / plugin.cfg quick question
It sounds like that question on which CFG file is used is something environment specific to you that we would have no real idea on. Default NRPE installs work one of two ways, they either use a xinetd.conf file and are loaded with xinetd, or they use the nrpe.cfg file when they are loaded as a stand-alone daemon. What you are suggesting here is something non default with NRPE thus we don't really have a good answer for you. I'd suggest getting in contact with whoever set this up in your environment.
Re: local.cfg / plugin.cfg quick question
that would be the person im trying to prove wrong...
lol
hopefully maybe someone has the same set up or knows this answer
lol
hopefully maybe someone has the same set up or knows this answer
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: local.cfg / plugin.cfg quick question
What order are they loaded in the nrpe.cfg? The last one will win overwriting the previous commands if you usechuck112 wrote:Quick question
Now in /opt/nrpe/ you have local.cfg and plugin.cfg which file is the master and which one is the secondary....example
cpu threshold if I raise it in local.cfg but plugin.cfg has a different setting than will the plugin override what I put in the local.cfg file?
thanks for the help and I hope I am write on this question.
chuck112
Code: Select all
include=/opt/nrpe/local.cfg
include=/opt/nrpe/plugin.cfgCode: Select all
include_dir=/opt/nrpehttp://utcc.utoronto.ca/~cks/space/blog ... addirOrder