Solved

Nagios 3.2 patch installation

Posted on 2011-02-15
3
842 Views
Last Modified: 2012-05-11
Hello!

I use Nagios 3.2. When there is a problem Nagios won't play sound in IE and Firefox on Windows. I found this patch:
http://thread.gmane.org/gmane.network.nagios.devel/5391 (last post)

I tried patch -p1 5401-001.bin but nothing happened.
How can I install this patch?

Hope you can help me out! Thanks!
0
Comment
Question by:Netaffairs
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
stermeau earned 500 total points
ID: 34904594
Hi,

This patch is for nagios 3.0.3 but it might work for nagios 3.2.
If you are in the nagios source folder, you should use "patch -p2 <path_to_the_patch_file>"
In which folder are you when you execute the patch command?
If it is not working, you can still patch the file manually:
  Open cgi/status.c
  Around line 438, replace
     printf("<object type=\"application/wav\" data=\"%s%s\" height=\"0\" width=\"0\">",url_media_path,sound);
   by
     printf("<object type=\"application/x-mplayer2\" data=\"%s%s\" height=\"0\" width=\"0\">",url_media_path,sound);
  Open cgi/tac.c
  Around line 323,
  Replace
     printf("<object type=\"application/wav\" height=\"-\" width=\"0\">");
  by
     printf("<object type=\"application/x-mplayer2\" data=\"%s%s\" height=\"-\" width=\"0\">",url_media_path,sound);
0
 

Author Comment

by:Netaffairs
ID: 34905051
Hey!

Thanks! I have to change it manually. I'm going to recompile Nagios later.

Isn't there another way to fix this problem without reinstalling Nagios?
0
 
LVL 5

Expert Comment

by:stermeau
ID: 34905069
Well, you have to recompile nagios.
To install the new one, if you previously instaleld it from the same sources, you can stop nagios, replace the new binary/ies and start it again.
Make sure to copy the full nagios tree before doing this, just in case.
Regard
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A Wildcard Certificate means all of your sub-domains will resolve to the same location, regardless of the non-SSL Document-Root specification. A user will need to purchase a wildcard SSL from a vendor or a reseller that supplies them. Similar to ha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now