Page 1 of 1

Custom Logo module, logo on reports

Posted: Mon Feb 22, 2016 9:39 am
by derekb
Hi there,
We've had the Custom Logo module installed on XI for a while now, and I'm just noticing that the same file in 'custom logo' is used on Reports as well.

If you DISABLE the custom logo module, you can see the logo in the top left corner and the logo on reports are different -- You have white "NAGIOS" text in the top left, with black "NAGIOS" text on the report.

The problem I'm having is that when using custom logo, we made things white to show up against the black top-bar. But when the logo is displayed on any reports, it's white-on-white and looks... bad.

Is there a way to rectify this? Perhaps have a logo path that's defined strictly for reports?

Re: Custom Logo module, logo on reports

Posted: Mon Feb 22, 2016 11:13 am
by lmiltchev
You are welcome on post a new feature request on our public tracker if you wish to use a different custom logo in reports.

I can also post an internal feature request for adding this functionality to XI if you want me to. Thank you!

Re: Custom Logo module, logo on reports

Posted: Mon Feb 22, 2016 12:58 pm
by derekb
lmiltchev wrote:You are welcome on post a new feature request on our public tracker if you wish to use a different custom logo in reports.

I can also post an internal feature request for adding this functionality to XI if you want me to. Thank you!

So.... What you're saying is that this is expected behaviour when using the Custom Logo module? I'm going to post in the tracker, but an internal feature request would be awesome as well if you're willing to post that.

Re: Custom Logo module, logo on reports

Posted: Mon Feb 22, 2016 3:30 pm
by ssax
Until it's been officially implemented by the devs, here is a solution for you:

*** Note: This will get reverted if you upgrade and will need to be reimplemented.
*** Make sure that you have known-good backups/vm snapshots before making any modifications

Download the attached component.
customlogo.zip
Go to Admin > Manage Components
- Click the Browse button and select the zip file.
- Click the Upload & Install button.

Run this command on the XI server:

Code: Select all

sed -i 's/logosettings, "logo", \$logo/logosettings, "reportlogo", \$logo/g' /usr/local/nagiosxi/html/reports/*
Then go back in and set the Report Logo Image in the Custom Logo component and click the Apply Settings button.

It should now show your alternate image in the reports.

Let me know if that works for you.