?
Solved

Nagios 3.2 patch installation

Posted on 2011-02-15
3
Medium Priority
?
867 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 2000 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

Cyber Threats to Small Businesses (Part 1)

This past May, Webroot surveyed more than 600 IT decision-makers at medium-sized companies to see how these small businesses perceived new threats facing their organizations.  Read what Webroot CISO, Gary Hayslip, has to say about the survey in part 1 of this 2-part blog series.

Question has a verified solution.

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

So, you're experiencing issues on your network and you've decided that you need to perform some tests to determine whether your cabling is good.  You're likely thinking that you may need to spend money which you probably don't have on hiring/purchas…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

764 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