I'm having problem to write CCM configuration to physical file. Receive below error,
What I have done,
1. /usr/local/nagiosxi/scripts/reset_config_perms
2. NagiosXI-FixPerms.sh
3. Apply Configuration completed but no change.
4. Refer to NagiosQL Doc but apparently it is not properly updated. I'm afraid that it will get things worse than before.
http://www.nagiosql.org/documentation.html#Permissions
5. reconfigure_nagios.sh success but no changes as well.
Files/Folders Permission as below,
Code: Select all
# pwd
/usr/local/nagios
# ll
total 28
drwxrwxr-x. 2 nagios nagios 4096 Nov 1 14:52 bin
drwsr-sr-x. 8 apache nagios 4096 Feb 6 14:18 etc
drwxr-xr-x. 2 root root 4096 Oct 31 16:02 include
drwxrwxr-x. 2 nagios nagios 4096 Feb 4 23:23 libexec
drwxrwxr-x. 2 nagios nagios 4096 Nov 1 14:53 sbin
drwxrwxr-x. 15 nagios nagios 4096 Nov 1 14:53 share
drwxrwxr-x. 9 nagios nagios 4096 Feb 7 17:13 var
Code: Select all
# pwd
/usr/local/nagios/etc
# ll
total 1024
drwxr-sr-x. 3 apache nagios 4096 Nov 1 11:18 cfgprep
-rwxr-xr-x 1 apache nagios 1344 Dec 28 09:56 cgi.cfg
-rwxr-xr-x 1 apache nagios 25327 Feb 7 16:18 commands.cfg
-rwxr-xr-x 1 apache nagios 1332 Feb 7 16:18 contactgroups.cfg
-rwxr-xr-x 1 apache nagios 6613 Feb 7 16:18 contacts.cfg
-rwxr-xr-x 1 apache nagios 1396 Feb 7 16:18 contacttemplates.cfg
-rwxr-xr-x 1 apache nagios 642 Feb 7 16:18 hostdependencies.cfg
-rwxr-xr-x 1 apache nagios 644 Feb 7 16:18 hostescalations.cfg
-rwxr-xr-x 1 apache nagios 662 Feb 7 16:18 hostextinfo.cfg
-rw-r--r-- 1 apache nagios 265564 Feb 7 17:05 hostgroups.cfg
drwsr-sr-x. 2 apache nagios 544768 Feb 6 16:28 hosts
-rw-r--r-- 1 apache nagios 14478 Feb 7 17:05 hosttemplates.cfg
drwsr-sr-x. 2 apache nagios 4096 Feb 6 16:08 import
-rwxr-xr-x 1 apache nagios 6576 Feb 6 14:30 nagios.cfg
-rwxr-xr-x 1 apache nagios 4096 Oct 31 17:21 nagios.cfg.18052012
-rwxr-xr-x 1 apache nagios 6375 Jan 18 14:10 nagios.cfg.save
-rwxr-xr-x 1 apache nagios 5764 Oct 31 14:45 nagios.cfg.xi
-rwxr-xr-x 1 apache nagios 2458 Jan 14 16:02 ndo2db.cfg
-rwxr-xr-x 1 apache nagios 2229 Oct 31 17:21 ndo2db.cfg.bak
-rwxr-xr-x 1 apache nagios 4723 Oct 31 17:21 ndomod.cfg
-rwxr-xr-x 1 apache nagios 4096 Oct 31 17:21 nrpe.cfg
-rwxr-xr-x 1 apache nagios 5345 Oct 31 17:21 nsca.cfg
-rwxr-xr-x 1 apache nagios 5345 Oct 31 14:47 nsca.cfg.orig
drwsr-sr-x. 4 apache nagios 4096 Feb 5 12:41 pnp
-rwxr-xr-x 1 apache nagios 0 Oct 31 17:21 recurringdowntime.cfg
-rwxr-xr-x 1 apache nagios 210 Oct 31 17:21 resource.cfg
-rwxr-xr-x 1 apache nagios 210 Oct 31 14:45 resource.cfg.xi
-rwxr-xr-x 1 apache nagios 1627 Oct 31 17:21 send_nsca.cfg
-rwxr-xr-x 1 apache nagios 1627 Oct 31 14:47 send_nsca.cfg.orig
-rwxr-xr-x 1 apache nagios 648 Feb 7 16:18 servicedependencies.cfg
-rwxr-xr-x 1 apache nagios 650 Feb 7 16:18 serviceescalations.cfg
-rwxr-xr-x 1 apache nagios 668 Feb 7 16:18 serviceextinfo.cfg
-rw-r--r-- 1 apache nagios 770 Feb 7 17:05 servicegroups.cfg
drwsr-sr-x. 2 apache nagios 4096 Jan 17 15:41 services
-rw-r--r-- 1 apache nagios 21182 Feb 7 17:05 servicetemplates.cfg
drwsr-sr-x. 2 apache nagios 4096 Dec 26 16:01 static
-rwxr-xr-x 1 apache nagios 14961 Feb 7 16:18 timeperiods.cfg
Code: Select all
# cat /etc/group | grep nag
apache:x:48:nagios
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache
Nagios XI 2012R1.3
NagiosQL Version 3.0.3
- Faiz