Nagios 3.0 alpha upgrade help!


#1

Hi there,

I’m trying to follow the guide here for the upgrade process:

nagios.sourceforge.net/docs/3_0/ … l#nagios3x

when I run:

./configure --with-command-group=nagcmd

it’s telling me that it will be installing the files to /usr/local/nagios but the guy who setup the installation have it installed at:

cd /usr/local/web/nagios

can someone please tell me where to change the config so that it will upgrade to the correct path? Am I doing this correctly by following the guide? Thanks!


#2

Hi!

add this option to your ./configure command:
–prefix=/usr/local/web/nagios

this should work :slight_smile:

btw:
the command “./configure --help” may be useful too :wink:


#3

that worked!! you’re awesome, thanks so much!


#4

I have another quick question if you don’t mind! I have previously setup audio alerts for server and service down, however ever since the upgrade the audio alert has been missing. Can anyone tell me what config file I need to look into or how to get audio alert back up and running? Thanks!


#5

Assuming you’re not talking about voice synth, find this in cgi.cgi…

[code]# Note: All audio files must be placed in the /media subdirectory

under the HTML path (i.e. /usr/local/nagios/share/media/).

#host_unreachable_sound=hostdown.wav
#host_down_sound=hostdown.wav
#service_critical_sound=critical.wav
#service_warning_sound=warning.wav
#service_unknown_sound=warning.wav
#normal_sound=noproblem.wav
[/code]
HTH

/S


#6

Strides,

I have the same cgi.cfg from the same installation and I have verified that it’s already setup correctly with the proper notification. The HTML path is setup correctly as well and I’ve verified that the WAV file exists. Is there any other reason why it won’t be playing the audio? Thanks again!


#7

er… are the speakers plugged in? :cry:

Seriously though… that’s about the size of it. If you view source from your browser on your status.cgi page you should see

<object type="application/wav" data="/nagios/media/noproblem.wav" height="-" width="0"><param name="filename" value="/nagios/media/noproblem.wav"><param name="autostart" value="1"><param name="playcount" value="1"></object><P>

or whatever wav file you have set to play under the current condition…

You getting that (or similar)?

HTH

/S


#8

Wouldn’t the path be /nagios/share/media? That’s the path where I have the files at. Thanks again!


#9

depends how you’ve set up your URL configuration…

# 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
# URL HTML PATH
# This is the path portion of the URL that corresponds to the
# physical location of the Nagios HTML files (as defined above).
# This value is used by the CGIs to locate the online documentation
# and graphics.  If you access the Nagios pages with an URL like
# http://www.myhost.com/nagios, this value should be '/nagios'
# (without the quotes).
url_html_path=/nagios

So your physical_html_path is replaced by your url_html_path when web pages are “written”. Thus, if your phys path is /foo/bar and your url path is /nagios, you’d put the files in /foo/bar/media/ and it’d still appear as /nagios/media on the web page. Hope that clears things up for you

/S