missing logos graphics for hosts
missing logos graphics for hosts
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
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
Re: missing logos graphics for hosts
Are you on CentOS? In Nagios 4 the path to the logos is
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
Code: Select all
/usr/local/nagios/share/images/logos
https://exchange.nagios.org/directory/G ... -and-Logos
Re: missing logos graphics for hosts
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?
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?
Re: missing logos graphics for hosts
Not Found
The requested URL /nagios/images/logos/base/ubuntu.png was not found on this server.
The requested URL /nagios/images/logos/base/ubuntu.png was not found on this server.
- Attachments
-
- here's a screenshot of what im seeing
- brokenlinks.PNG (3.38 KiB) Viewed 6723 times
Re: missing logos graphics for hosts
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,
It could be a path issue, but let us know!
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
Re: missing logos graphics for hosts
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>
~
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>
~
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: missing logos graphics for hosts
It looks like somehow your server is looking for them in a subdirectory called base under the normal pathdanyol5 wrote:Not Found
The requested URL /nagios/images/logos/base/ubuntu.png was not found on this server.
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
Re: missing logos graphics for hosts
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...
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...
Re: missing logos graphics for hosts
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.
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: missing logos graphics for hosts
Glad to hear it is sorted