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?
logo image permissions
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: logo image permissions
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
XI system, cheers Sam I'll give that a go when I'm back in the office tomorrow.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: logo image permissions
In both
/usr/local/nagiosxi/html/images/
and
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos
my permissions are all
And the apache user should be part of the nagios group
/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 nagiosRe: logo image permissions
*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.
@Scott
The permissions/groups were all set as you would expect, except for (both of) the logos directories for some wacky reason.