Hi,

Im having an issue which is user/group ID related.

Severity        Time    Message
critical        2009-07-24 12:29:47     

Can't amend group ownership for htpasswd files: Operation not permitted at 
/usr/local/nagios/bin/nagconfgen.pl line 1353.

     Configuration output

Can't amend group ownership for htpasswd files: Operation not permitted at 
/usr/local/nagios/bin/nagconfgen.pl line 1353.
Fri Jul 24 12:29:44 2009 Starting
Fri Jul 24 12:29:44 2009 --> Writing config files for Master Monitoring Server
Fri Jul 24 12:29:45 2009 35 commands written to checkcommands.cfg
Fri Jul 24 12:29:46 2009 312 service definitions written to services.cfg
Fri Jul 24 12:29:47 2009 102 hosts written to hosts.cfg
Fri Jul 24 12:29:47 2009 35 hostgroups written to hostgroups.cfg
Fri Jul 24 12:29:47 2009 2 contacts written to contacts.cfg
Failed to generate configuration - see /admin/reload for errors

The attempted command at line 1353 is:

chown -1, $nagcmd_gid, "$configfilepath/htpasswd.users", "$configfilepath/htpasswd.admin" or die "Can't amend group ownership for htpasswd files: $!";;

# cat /etc/passwd | grep nagios:
nagios:x:499:499:nagios:/var/log/nagios:/bin/sh

# cat /etc/group | grep nag
nagiocmd:x:500:
nagcmd:x:498:nagios
nagios:x:499:apache

This occured because I compiled the opsview agent package (RPM on CentOS 5.2) and installed and it seems to have altered the UID/GID of the nagios/nagcmd/nagiocmd users and groups. I already had the Nagios NRPE package installed and removed this. Also, Opsview is installed in a failover Heartbeat/Pacemaker cluster and the UID/GID's were different between nodes. I have now set them to be the same to avoid confusion but it still gives that error.

Bit confused as to which users and groups are actually used by Opsview and what parts of Opsview should be owned by which..
Can someone clarify please?

Thanks very much.

Andy.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Opsview-users mailing list
Opsview-users@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to