Solved

Nagios 3.2 patch installation

Posted on 2011-02-15
3
862 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

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

This article is in response to a question (http://www.experts-exchange.com/Networking/Network_Management/Network_Analysis/Q_28230497.html) here at Experts Exchange. The Original Poster (OP) requires a utility that will accept a list of IP addresses …
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

687 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