nconf deployment.ini configuration for a basic Nagios server on CentOS 6.2
Posted
by
jshin47
on Server Fault
See other posts from Server Fault
or by jshin47
Published on 2012-06-29T14:37:57Z
Indexed on
2012/06/29
15:17 UTC
Read the original article
Hit count: 398
I have set up nconf and Nagios but I cannot figure out how to configure deployment.ini
to properly deploy the generated configuration to /usr/local/nagios/etc
.
Here are the directory listings of interest:
[jshin@nag0 tmp]$ ls
Default_collector global
[jshin@nag0 tmp]$ cd Default_collector/
[jshin@nag0 Default_collector]$ ls
advanced_services.cfg hostgroups.cfg service_dependencies.cfg services.cfg
host_dependencies.cfg hosts.cfg servicegroups.cfg
[jshin@nag0 Default_collector]$ cd ..
[jshin@nag0 tmp]$ cd global/
[jshin@nag0 global]$ ls
checkcommands.cfg contacts.cfg misccommands.cfg timeperiods.cfg
contactgroups.cfg host_templates.cfg service_templates.cfg
[jshin@nag0 global]$ cd ..
[jshin@nag0 tmp]$ cd /usr/local/nagios/etc/
[jshin@nag0 etc]$ ls
cgi.cfg htpasswd.users nagios.cfg objects resource.cfg
[jshin@nag0 etc]$ cd objects/
[jshin@nag0 objects]$ ls
commands.cfg localhost.cfg switch.cfg timeperiods.cfg
contacts.cfg printer.cfg templates.cfg windows.cfg
Here is my deployment.ini
(pretty much the default setting)
;; LOCAL deployment ;;
[extract config]
type = local
source_file = "/var/www/html/nconf/output/NagiosConfig.tgz"
target_file = "/tmp/"
action = extract
[copy collector config]
type = local
source_file = "/tmp/Default_collector/"
target_file = "/usr/local/nagios/etc/Default_collector/"
action = copy
[copy global config]
type = local
source_file = "/tmp/global/"
target_file = "/usr/local/nagios/etc/global"
action = copy
reload_command = "service nagios restart"
What I am wondering is why the directory structure that the default deployment.ini
seems to suggest, with Default_collector
and global
, is different from the one that Nagios has by default, with only a folder called objects
. What am I missing?
Or more importantly, how does your deployment.ini
look?
© Server Fault or respective owner