Page 1 of 1

logo image permissions

Posted: Sun Sep 08, 2013 8:09 pm
by jsmurphy
It's all about the big issues over here today. Certain logo's in the nagios/share/images/logos dir are unable to be displayed but I can't for the life of me work out why, as far as I can tell the file permissions are identical. I'll be using cisco.png (working) and workstation.png (not working) as examples:

cisco.png
/usr/local/nagios/share/images/logos # ls -l cisco.png
-rwxr-xr-x. 1 root root 5211 Aug 29 2011 cisco.png

/usr/local/nagios/share/images/logos # ls -l workstation.png
-rwxr-xr-x 1 root root 2508 Jul 6 10:12 workstation.png

So the only difference is the selinux dot after the perms. But selinux is disabled:
/usr/local/nagios/share/images/logos # sestatus
SELinux status: disabled

And even so the efacls are the same anyway (as you would expect as the dot means nothing set):
/usr/local/nagios/share/images/logos # getfacl cisco.png
# file: cisco.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

/usr/local/nagios/share/images/logos # getfacl workstation.png
# file: workstation.png
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

And the apache log info:
172.31.121.59 - - [08/Sep/2013:12:07:29 +1000] "GET /nagiosxi/includes/components/nagioscore/ui/images/logos/cisco.png HTTP/1.1" 200 5211
[Mon Sep 09 10:40:26 2013] [error] [client 172.31.121.248] File does not exist: /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/workstation.png

Ideas?

Re: logo image permissions

Posted: Mon Sep 09, 2013 9:28 am
by slansing
Is this for an XI system or a core system? Have you tried calling the non working images in the UI after placing them in this directory?:

Code: Select all

/usr/local/nagiosxi/html/images/

Re: logo image permissions

Posted: Mon Sep 09, 2013 5:29 pm
by jsmurphy
XI system, cheers Sam I'll give that a go when I'm back in the office tomorrow.

Re: logo image permissions

Posted: Tue Sep 10, 2013 8:17 am
by scottwilkerson
In both
/usr/local/nagiosxi/html/images/
and
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos
my permissions are all

Code: Select all

-rw-r----- 1 nagios nagios
And the apache user should be part of the nagios group

Re: logo image permissions

Posted: Tue Sep 10, 2013 7:19 pm
by jsmurphy
*slaps forehead* So I made the stupid assumption that "/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos" was a symlink to "/usr/local/nagios/share/images/logos". Well you know what they say about assumptions. Problem solved.

@Scott
The permissions/groups were all set as you would expect, except for (both of) the logos directories for some wacky reason.