Page 1 of 1
Custom icons
Posted: Wed Aug 28, 2013 4:26 pm
by WillemDH
Hello,
I was trying to add a custom Citrix icon to a service template, but I can't manage to make it work. Uploaded the files to /usr/local/nagios/share/images/logos
When I choose any icon that already existed it works. So maybe it's a problem with my icon format or extension. it is 40 x 40 pixels and I tried it with .png and .gif extension but didn't work for either one. I'll upload them here. I also checked the rights, but they seem ok. Also tried emptying my IE cache.
Tx fr any tips.
Willem
Re: Custom icons
Posted: Wed Aug 28, 2013 4:42 pm
by lmiltchev
What are the permissions on the file? If it's not owned by nagios, run the following command:
Code: Select all
chown nagios.nagios /usr/local/nagios/share/images/logos/citrix.png
Re: Custom icons
Posted: Thu Aug 29, 2013 2:19 am
by WillemDH
Well Nagios was not the owner, but none of the icons in the logos folder has nagios as owner. They all have root as owner in fact and it works for them. I changed the owner anyway for the icon I'm trying to use, but it's still not working.
Re: Custom icons
Posted: Thu Aug 29, 2013 11:22 am
by slansing
I believe you will have to place the image in:
Code: Select all
/usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/
I just tested this and it works fine with your png.
Re: Custom icons
Posted: Thu Aug 29, 2013 11:34 am
by lmiltchev
Can you go to the CCM->Service Templates-><your template>->Modify->Misc Settings and post a screenshot of this page?
Re: Custom icons
Posted: Thu Aug 29, 2013 12:08 pm
by WillemDH
Hello,
Maybe I placed the image in the wrong location, based on the documentation of CCM. See screenshot...
But even after copying the image to /usr/local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/ and changing the owner to nagios, it's still not loading.
Grtz
Re: Custom icons
Posted: Thu Aug 29, 2013 12:27 pm
by WillemDH
Ok, now it seems to work suddenly, did some stuff, httpd restart. Or maybe it wasn't in my cache or something. Anyway, it works! Thanks!
It's a bit confusing the documentation seems wrong, but I guess the documentation belongs to Nagios Core so it's not possible to update it somehow..
Re: Custom icons
Posted: Thu Aug 29, 2013 12:48 pm
by lmiltchev
I'm glad your issue has been resolved! Locking the post.