splitting up config files & cfg_dir

Fredrik Wänglund fredrik.wanglund at datavis.se
Mon May 12 08:25:37 CEST 2003


This is because Nagios tries to load all .cfg-files in the dir, 
including the
extinfo-file... These files are not intended to be read by Nagios, but the
CGI's. Rename the extinfo-files so they dont end with .cfg and add them to
cgi.cfg instead (xedtemplate_config_file=).



/FredrikW


Nick Gushlow wrote:

>Hi,
>
>I've recently tried to change my nagios install from having one config
>file for hosts, services, etc to having lots of config files in separate
>directories for each server group.  I'm using cfg_dir in the nagios.cfg
>file rather than specifying each file.
>
>this is how the files are laid out:
>
>/nagios - main config files with generic templates - hosts, services,
>contacts etc
>/nagios/group1 - hosts, hostgroups, hostextinfo, services
>/nagios/group2 - hosts, hostgroups, hostextinfo, services
>.
>.
>.
>etc.
>
>The problem now is that my hostextinfo definitions don't work. I get the
>following error when doing a pre-flight check:
>-----
>Error: Invalid object definition type 'hostextinfo' in file
>'/etc/nagios/lan/hostextinfo.cfg' on line 6.
>-----
>
>
>the hostextinfo.cfg file looks like this:
>-----
>#####
>## Host Extended Information File
>##
>
># Server 1
>define hostextinfo{
>        host_name               Server1
>        icon_image              linux40.png
>        icon_image_alt          Gentoo Linux 1.4
>        statusmap_image         linux40.gd2
>        }
>-----
>
>Line 6 is the define hostextinfo{ line.  None of my definitions have
>changed, yet they all worked when I had one big hostextinfo file.
>
>Anyone know why this might be happening?
>
>-- Nick Gushlow
>
>
>
>-------------------------------------------------------
>Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
>The only event dedicated to issues related to Linux enterprise solutions
>www.enterpriselinuxforum.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
>  
>




-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.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