Friday, May 24th 2013, 8:14pm UTC+2
You are not logged in.
Beginner
Location: brooklyn
Occupation: Infrastructure engineer
Number of monitoring servers: 1
Nagios Version: -
Icinga Version: 1.6.1 + icinga-web 1.8.1 + ingraph 1.0.1 + lconf
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 50
Number of services: a bunch
OS: el6
Plugin Version: 1.4.15
IDO-Version: 1.6.1
|
|
Source code |
1 |
Error: Unexpected token or statement in file '/usr/local/nconf/static_cfg/resource.cfg' on line 24. |
|
|
Source code |
1 |
/usr/bin/icinga -v /etc/icinga/icinga.cfg |
|
|
Source code |
1 |
grep -r static_cfg /etc/icinga |
|
|
Source code |
1 2 3 4 5 6 7 |
# grep -r cfg_ . | grep -v "\#cfg_" ./icinga.cfg:# extension) in a particular directory by using the cfg_dir ./icinga.cfg:cfg_dir=/etc/icinga/modules ./icinga.cfg:# object configuration files (see the cfg_file and cfg_dir options above). ./icinga.cfg:cfg_dir=/etc/icinga/nconf # find /etc/icinga/modules -type s #returns nothing # find /etc/icinga/nconf -type s #returns nothing |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#
# Static configuration files
#
# List of folders containing additional files that you would like to make editable within NConf (basic text editing).
# We call these files 'static files', because they are not generated by NConf.
# All folders listed here will be included in the output file, together with the generated config.
# We recommend you to copy your static files into the 'nconf/static_cfg' folder.
#
$STATIC_CONFIG = array("static_cfg");
# If security permits it, you could make your active Nagios configuration editable in NConf directly.
# We discourage users from doing this though, because there is a risk that they could accidentally damage their Nagios configuration.
#$STATIC_CONFIG = array("static_cfg", "/etc/nagios");
#
# Syntax checking for static config folders
# Static config will be treated as "global" config. Syntax checking will be run for each Collector / Monitor server.
# In a distributed monitoring setup, you might have to disable syntax checking, if you are getting errors that items don't exist on certain servers.
#
define('CHECK_STATIC_SYNTAX', 1);
|
|
|
Source code |
1 2 3 |
ln -s /etc/icinga/resource.cfg /usr/local/nconf/static_cfg setfacl -m user:apache:rw /etc/icinga/resource.cfg sed s/"'CHECK_STATIC_SYNTAX', 1"/"'CHECK_STATIC_SYNTAX', 0"/ -i /usr/local/nconf/config/nconf.php |
This post has been edited 5 times, last edit by "mbrownnyc" (Jul 27th 2012, 7:02pm)
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.1 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Beginner
Location: brooklyn
Occupation: Infrastructure engineer
Number of monitoring servers: 1
Nagios Version: -
Icinga Version: 1.6.1 + icinga-web 1.8.1 + ingraph 1.0.1 + lconf
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 50
Number of services: a bunch
OS: el6
Plugin Version: 1.4.15
IDO-Version: 1.6.1
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# cat /etc/icinga/resource.cfg ########################################################################### # # RESOURCE.CFG - Sample Resource File for Icinga # # You can define $USERx$ macros in this file, which can in turn be used # in command definitions in your host config file(s). $USERx$ macros are # useful for storing sensitive information such as usernames, passwords, # etc. They are also handy for specifying the path to plugins and # event handlers - if you decide to move the plugins or event handlers to # a different directory in the future, you can just update one or two # $USERx$ macros, instead of modifying a lot of command definitions. # # The CGIs will not attempt to read the contents of resource files, so # you can set restrictive permissions (600 or 660) on them. # # Icinga supports up to 32 $USERx$ macros ($USER1$ through $USER32$) # # Resource files may also be used to store configuration directives for # external data sources like MySQL... # ########################################################################### # Sets $USER1$ to be the path to the plugins $USER1$=/usr/local/nagios/libexec/ # Sets $USER2$ to be the path to event handlers #$USER2$=/usr/local/nagios/libexec//eventhandlers # Store some usernames and passwords (hidden from the CGIs) #$USER3$=someuser #$USER4$=somepassword |
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
Beginner
Location: brooklyn
Occupation: Infrastructure engineer
Number of monitoring servers: 1
Nagios Version: -
Icinga Version: 1.6.1 + icinga-web 1.8.1 + ingraph 1.0.1 + lconf
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 50
Number of services: a bunch
OS: el6
Plugin Version: 1.4.15
IDO-Version: 1.6.1
Well, one reason for not being allowed to edit $USER$ variables via NConf might be - apart from the obvious path to the plugins - that they are used to contain sensitive information like passwords. Having different people being able to edit the configuration this still might be considered "secret".
|
|
Source code |
1 2 3 4 5 6 7 |
# grep -r cfg_ . | grep -v "\#cfg_" ./icinga.cfg:# extension) in a particular directory by using the cfg_dir ./icinga.cfg:cfg_dir=/etc/icinga/modules ./icinga.cfg:# object configuration files (see the cfg_file and cfg_dir options above). ./icinga.cfg:cfg_dir=/etc/icinga/nconf # find /etc/icinga/modules -type s #returns nothing # find /etc/icinga/nconf -type s #returns nothing |
This post has been edited 1 times, last edit by "mbrownnyc" (Jul 30th 2012, 7:16pm)
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.1 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf
Beginner
Location: brooklyn
Occupation: Infrastructure engineer
Number of monitoring servers: 1
Nagios Version: -
Icinga Version: 1.6.1 + icinga-web 1.8.1 + ingraph 1.0.1 + lconf
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 50
Number of services: a bunch
OS: el6
Plugin Version: 1.4.15
IDO-Version: 1.6.1
This post has been edited 1 times, last edit by "mbrownnyc" (Jul 30th 2012, 10:25pm)
Birthday: May 30th 1983 (29)
Gender: male
Location: Nürnberg
Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways
Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev
Nagios Version: s/nagios/icinga/
Icinga Version: 1.9.1 / GIT
Distributed monitoring: Ja
Redundant monitoring: Ja
Number of hosts: 1000+
Number of services: 15000+
OS: RHEL, Debian, SUSE
Plugin Version: 1.4.16
IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle
Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf