Duncan Ferguson wrote:

nagcmd group is used by apache user/process to read/write files that nagios owns; nagios group is everything else (to ensure access is reasonably limited to apache user).  No idea what nagiocmd is (if its ours, its a bug somewhere).

nagcmd should be a suplimentaary group for nagios and apache, i.e. does 

  groups nagios

show group membership of nagios and nagcmd?  And does the same for your apache user show nagcmd too?

What happens if you run the command by hand as nagios?  i.e.

  chgrp nagcmd /usr/local/nagios/etc/htpasswd.user /usr/local/nagios/etc/htpasswd.admin

  Duncs
 
-- 
Duncan Ferguson
Senior Developer



Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

Phone:   
+44 (0) 845 057 7887
Mobile
:   +44 (0) 7968 148 748
Skype:   duncan_j_ferguson     Email:   
[email protected]
www.opsera.com

Opsera Limited is registered in the UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, SurreyGU21 4RB.
Hi Duncan,

Thanks for the quick reply.

OK, that makes sense:

# id nagios
uid=499(nagios) gid=499(nagios) groups=499(nagios),498(nagcmd)

# groups nagios
nagios : nagios nagcmd

# groups apache
apache : apache nagios

Hmm, after enabling debugging and restaring opsview (not opsview-web), it works again!
Seems I had the right config but I could swear I restarted the opsview daemon a couple of times too..

Thanks for your help and the explanation. Much appreciated.

Regards,
Andy.






--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to