I have changed the owner of that file to "nagios:nagios" and now it works
great.
Thanks a lot for your help in the right direction.


Jelle

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Ton Voon
Sent: vrijdag 4 september 2009 12:22
To: Opsview Users
Subject: Re: [opsview-users] Bad file descriptor at
/usr/local/nagios/bin/nagconfgen.pl line 1072

 

 

On 4 Sep 2009, at 10:22, Jelle Maes wrote:





Permissions:

-rw-rw---- 1 www-data www-data 7707 Sep  1 20:40 nagvis.ini.php

 

The permissions on that file should be user nagios, group nagcmd.

 



nagios:/usr/local/nagios/nagvis/etc# id nagios

uid=108(nagios) gid=110(nagios) groups=110(nagios),111(nagcmd)

 

What does id www-data give you? This should include nagcmd.

 

http://docs.opsview.org/doku.php?id=opsview3.3:nagvis:debian#users

 

 

My guess is that www-data does not include nagcmd. There was a problem with
nagvis, so the permissions were changed to www-data:www-data. Then the
reload stopped working (because nagios user no longer has write access).

 

I've added a faq entry:
http://docs.opsview.org/doku.php?id=opsview3:faq#reloading_gives_me_an_error
_about_nagvis.ini.php

 

Ton

 

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to