Solved

Nagios 3.2 patch installation

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet Speed Test 5 123
server/storage management port connect to catalyst2950 3 71
Cannot access folders 5 31
Is there a monitoring tool to see network usage per user? 5 68
Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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…
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…

776 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