Splitting files
Andy Shellam (Mailing Lists)
andy.shellam-lists at mailnetwork.co.uk
Tue Jan 9 10:21:21 CET 2007
To make things easier in nagios.cfg, you can create a subfolder - put
any *.cfg files in it, and add "cfg_dir=<subfolder>" into nagios.cfg
instead of a ton of "cfg_file" directives.
When Nagios starts it will load any *.cfg from your subfolder
dynamically saving you the hassle of having to remember to add a new
config file into nagios.cfg.
Ismail M. Settenda wrote:
> My understanding was that instead of having all the cfg options i.e
> contactgroups.cfg in one file (objects.cfg). One can split these to
> different files as specified in nagios.cfg.
>
> So that you don't have one lengthy file and locating/editing
> particular issues becomes easier.
>
> --
> Ismail
>
> On 1/9/07, *Nedim Bicic* <nedo72 at gmail.com <mailto:nedo72 at gmail.com>>
> wrote:
>
> Hey everyone here is a question i have nagios working but how
> do you do this below spliting these files into its own like
> minimal.cfg
>
> thanks
>
>
> # You can split other types of object definitions across several
> # config files if you wish (as done here), or keep them all in a
> # single config file.
>
> #cfg_file=/etc/nagios/minimal.cfg
>
>
> cfg_file=/etc/nagios/contactgroups.cfg
> cfg_file=/etc/nagios/contacts.cfg
> #cfg_file=/etc/nagios/dependencies.cfg
> #cfg_file=/etc/nagios/escalations.cfg
> cfg_file=/etc/nagios/hostgroups.cfg
> cfg_file=/etc/nagios/hosts.cfg
>
> cfg_file=/etc/nagios/services.cfg
> cfg_file=/etc/nagios/timeperiods.cfg
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> <mailto:Nagios-users at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> <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
>
>
>
>
> !DSPAM:37,45a346a4137101011318293!
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> !DSPAM:37,45a346a4137101011318293!
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
> !DSPAM:37,45a346a4137101011318293!
>
--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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