Solved

Nagios 3.2 patch installation

Posted on 2011-02-15
3
859 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NAS with google authentication 6 195
Configuring local auth. list 1 39
NTP configuration on Cisco switch 3 39
line utilization 4 24
Is your computer hacked? learn how to detect and delete malware in your PC
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…

737 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