Error writing monitoring data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sal@coned
Posts: 72
Joined: Thu Jan 21, 2010 4:42 pm

Error writing monitoring data

Post by sal@coned »

I am getting config errors, where I create new hostgroups and then add members hosts and when I apply the configuration it says unable to expand the hostgroup.

I can see the hostgroups in the web interface, so I tried to write the config files to see what is in them but a get an errors when writing the config files from the confgiguaration page menu "tools/Write Config Files/Write Monitoring Data"

I used the vmware image and converted it for the ESX system, no permissions have been modified from the original install.
What are the correct permissions?

The error being displayed:
Write hostgroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicegroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write hosttemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicetemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!


An "ls -al" of the nagios etc directory shows the following:
[root@nagios etc]# ls -l
total 184
-rw-rw-r-- 1 nagios users 1178 Feb 19 10:11 cgi.cfg
-rw-rw-r-- 1 nagios users 14837 Feb 24 11:30 commands.cfg
-rw-rw-r-- 1 nagios users 962 Feb 24 11:30 contactgroups.cfg
-rw-rw-r-- 1 nagios users 4973 Feb 24 11:30 contacts.cfg
-rw-rw-r-- 1 nagios users 1543 Feb 24 11:30 contacttemplates.cfg
-rw-rw-r-- 1 nagios users 662 Feb 24 11:30 hostdependencies.cfg
-rw-rw-r-- 1 nagios users 664 Feb 24 11:30 hostescalations.cfg
-rw-rw-r-- 1 nagios users 682 Feb 24 11:30 hostextinfo.cfg
-rw-rw-r-- 1 nagios users 2519 Feb 24 11:30 hostgroups.cfg
drwsrwsr-x 2 apache nagios 4096 Feb 26 14:44 hosts
-rw-rw-r-- 1 nagios users 7602 Feb 24 11:30 hosttemplates.cfg
drwsrwsr-x 2 apache nagios 4096 Feb 19 09:00 import
-rwxrwxr-x 1 nagios users 5714 Feb 2 14:26 nagios.cfg
-rwxrwxr-x 1 nagios users 2229 Jan 11 09:16 ndo2db.cfg
-rwxrwxr-x 1 nagios users 4723 Jan 11 09:16 ndomod.cfg
-rw-rw-r-- 1 nagios users 7207 Jan 11 09:16 nrpe.cfg
-rwxrwxr-x 1 nagios users 5345 Jan 11 09:16 nsca.cfg
drwxrwxr-x 4 nagios nagios 4096 Jan 11 09:16 pnp
-rwxrwxr-x 1 nagios users 210 Jan 11 09:14 resource.cfg
-rwxrwxr-x 1 nagios users 1627 Jan 11 09:16 send_nsca.cfg
-rw-rw-r-- 1 nagios users 668 Feb 24 11:30 servicedependencies.cfg
-rw-rw-r-- 1 nagios users 670 Feb 24 11:30 serviceescalations.cfg
-rw-rw-r-- 1 nagios users 688 Feb 24 11:30 serviceextinfo.cfg
-rw-rw-r-- 1 nagios users 658 Feb 24 11:30 servicegroups.cfg
drwsrwsr-x 2 apache nagios 4096 Feb 26 14:44 services
-rw-rw-r-- 1 nagios users 10370 Feb 24 11:30 servicetemplates.cfg
drwsrwsr-x 2 apache nagios 4096 Feb 10 12:34 static
-rw-rw-r-- 1 nagios users 6403 Feb 24 11:30 timeperiods.cfg
drwxr-xr-x 2 root root 4096 Feb 8 09:41 tmp
[root@nagios etc]#
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Error writing monitoring data

Post by mmestnik »

Locked