Help in Running Nrpe inside inetd with TCP Wrappers on FreeBSD.

Mukarram Syed muksyed at yahoo.com
Thu Dec 2 01:31:12 CET 2004


Andreas, 
that was it...thanks a million for the ultimate fix!
Many Thanks for all who helped me out on this.
-Mukarram Syed.

--- Andreas Ericsson <ae at op5.se> wrote:

> Mukarram Syed wrote:
> > Jan.
> > Thanks always for your responses.
> > I did add gaia's IP address in the nrpe.cfg file
> and
> > rebooted the system.  
> > I have enabled debug mode "debug=1" in the
> nrpe.cfg
> > file restarted inetd, I am getting the following
> in
> > the /var/log/messages:
> > 
> > Nov 23 20:56:22 gaia nrpe[78179]: Unable to open
> > config file '//nrpe.cfg' for reading 
> > Nov 23 20:56:22 gaia nrpe[78179]: Config file
> > '//nrpe.cfg' contained errors, bailing out...
> > Nov 23 20:56:27 gaia nrpe[78188]: Unable to open
> > config file '//nrpe.cfg' for reading 
> > Nov 23 20:56:27 gaia nrpe[78188]: Config file
> > '//nrpe.cfg' contained errors, bailing out...
> > 
> > I have checked everything but I am sure there is
> > something missing...Help would be appreciated. 
> 
> You haven't specified a configuration file location.
> See below.
> 
> > Thanks
> > -Mukarram.
> > 
> > --- Jan Scholten <Jan.Scholten at iconz.net> wrote:
> > 
> > 
> >>>Here is my /etc/inetd.conf file with the nrpe
> >>
> >>line:
> >>
> >>># Enable NRPE
> >>>nrpe    stream  tcp     nowait  nagios
> >>>/usr/libexec/tcpd
> >>
> >>/usr/local/etc/nagios/libexec/nrpe
> >>
> >>>-i /usr/local/etc/nagios/etc/nrpe.cfg --inetd
> >>
> 
> 
> To NRPE, -i and --inetd are the same, and it doesn't
> look for a 
> configuration file by default in the arguments "left
> over" by getopt(). 
> That's why it's trying to fall back to the default
> hardcoded 
> configuration file, which would have been set if you
> had specified the 
> --sysconfdir option at compile time (depending on
> what version you're 
> using).
> 
> You need to change this line to
> /usr/local/etc/nagios/libexec/nrpe -c
> /usr/local/etc/nagios/etc/nrpe.cfg -i
> 
> Then things will work nicely, assuming that's where
> the files are.
> 
> -- 
> Andreas Ericsson                  
> andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
> 
> 
>
-------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT
> Products from real users.
> Discover which products truly live up to the hype.
> Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version
> (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being
> sent to /dev/null
> 


=====
Mukarram Syed
muksyed at yahoo.com


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list