missing logos graphics for hosts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

missing logos graphics for hosts

Post by danyol5 »

Hello all,
im new to nagios - decided to upgrade from 3.5.1 to the latest 4.x release.
in doing so, i copied alot of the nagios 3 configurations because they worked fine, and everything works great.

except, im missing the host logo graphics? im having trouble locating this particular file or what line i should edit. i've been at it off and on for several hours and having no luck.

can anyone point me in the right direction?
thanks
kyang

Re: missing logos graphics for hosts

Post by kyang »

Are you on CentOS? In Nagios 4 the path to the logos is

Code: Select all

/usr/local/nagios/share/images/logos
There are images and logos available on the Nagios Exchange if you somehow don't have any.
https://exchange.nagios.org/directory/G ... -and-Logos
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

Re: missing logos graphics for hosts

Post by danyol5 »

im on ubuntu 16.04 LTS

the path is the same - i built from source.
that directory is correct, i can navigate to it on the command line, but apache is missing this little piece of information somehow. is it the cgi.cfg? or in the apache sites-enabled or .. even apache/conf-enabled directory?
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

Re: missing logos graphics for hosts

Post by danyol5 »

Not Found

The requested URL /nagios/images/logos/base/ubuntu.png was not found on this server.
Attachments
here's a screenshot of what im seeing
here's a screenshot of what im seeing
brokenlinks.PNG (3.38 KiB) Viewed 6714 times
kyang

Re: missing logos graphics for hosts

Post by kyang »

If you go into your cgi.cfg, or if you wanted to post your whole cgi.cfg that's fine too.

What path does it show for #PHYSICAL HTML PATH

Mine looks something like this,

Code: Select all

# PHYSICAL HTML PATH
# This is the path where the HTML files for Nagios reside.  This
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.

physical_html_path=/usr/local/nagios/share
It could be a path issue, but let us know!
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

Re: missing logos graphics for hosts

Post by danyol5 »

that was the first line i checked.
the cgi.cfg line is basically default minus some user authorization lines.

but for the /etc/apache2/conf-enabled/nagios4.conf file - its a link to 'apache2.conf' in /usr/local/nagios/etc/
i need this for active directory authentication.
i removed my domain portion, but here is where i'm wondering where i'm screwed up.

i borrowed this from nagios 3 but matched up what knew would need to be changed for my new better nagios 4 installation.
-----------------------------------------------------------------------------------------------------
#Apache configuration for nagios 4.x
# note to users of nagios 1.x and 2.x:
# throughout this file are commented out sections which preserve
# backwards compatibility with bookmarks/config for older nagios versios.
# simply look for lines following "nagios 1.x:" and "nagios 2.x" comments.

#ScriptAlias /cgi-bin/nagios /usr/local/nagios/sbin
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"


# Where the stylesheets (config files) reside
Alias /nagios/share/stylesheets /usr/local/nagios/share/stylesheets

# Where the HTML pages live
Alias /nagios /usr/local/nagios/share/


<DirectoryMatch (/usr/local/nagios/share|/usr/local/nagios/sbin|/usr/local/nagios/share/stylesheets)>
Options FollowSymLinks

DirectoryIndex index.php index.html

AllowOverride AuthConfig
Order Allow,Deny
Allow From All

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
# nagios 1.x:
#AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
AuthBasicProvider ldap
# AuthzLDAPAuthoritative off
AuthLDAPUrl ldap://localhost/DC=xxxxxxxxx,DC=xxxxx?SAMAccountName
require user xxxxxx

</DirectoryMatch>

<Directory /usr/local/nagios/share>
#<Directory /usr/share/nagios/htdocs>
Options +ExecCGI
</Directory>

~
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: missing logos graphics for hosts

Post by scottwilkerson »

danyol5 wrote:Not Found

The requested URL /nagios/images/logos/base/ubuntu.png was not found on this server.
It looks like somehow your server is looking for them in a subdirectory called base under the normal path

Just to test a theory can you do the following:

Code: Select all

cd /usr/local/nagios/share/images/logos
mkdir base -p
cp *.* base
Then load the page to see if they appear
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

Re: missing logos graphics for hosts

Post by danyol5 »

the actual directory for the/usr/share/nagios/htdocs/images/logos/base

this directory does not actually have the ubuntu logo.
/usr/local/nagios/share/images/logos/

i'd make a link to the other directory, but i dont think that would be prefered...
danyol5
Posts: 6
Joined: Mon Sep 25, 2017 1:06 pm

Re: missing logos graphics for hosts

Post by danyol5 »

i think i made sense of it, one directory was from nagios 3 installation.
i moved the 'base' directory into the correct directory.

i'm all good now :) - slight confusing on my end since i installed nagios 4 in parallel to nagios 3 running.

thanks for your help however.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: missing logos graphics for hosts

Post by scottwilkerson »

Glad to hear it is sorted ;)
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked