Nagios fails on empty config file
Ethan Galstad
nagios at nagios.org
Tue Aug 22 17:53:41 CEST 2006
Marc Haber wrote:
> Hi,
>
> this is a forward from the Debian BTS, http://bugs.debian.org/354007.
>
> If Nagios 2 encounters an empty config file, it exits with "invalid
> argument":
>
> |Reading configuration data...
> |
> |Error: Cannot open config file '/etc/nagios-plugins/config/imap.cfg' for
> |reading: Invalid argument
> |
> |***> One or more problems was encountered while processing the config files...
> |
> | Check your configuration file(s) to ensure that they contain valid
> | directives and data defintions. If you are upgrading from a previous
> | version of Nagios, you should be aware that some variables/definitions
> | may have been removed or modified in this version. Make sure to read
> | the HTML documentation regarding the config files, as well as the
> | 'Whats New' section to find out what has changed.
> |
> |* errors in config!
> | failed!
> |invoke-rc.d: initscript nagios2, action "start" failed.
> |root at debian:/etc/nagios-plugins/config#
>
> This has been verified to be still present in nagios 2.5.
>
> Greetings
> Marc
>
I believe this is proper behavior. The "Invalid argument" string is
coming from the system via the strerror() function.
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list