Page 1 of 2
statusmap doesn't work well
Posted: Mon Sep 30, 2013 1:45 pm
by edsontadeu
Hi.
I know that there is another topic called "statusmap doesn't display info" in this forum, but it´s closed.
Everythig was working with 3.2 version. Now im using 4.0.
I did what they told to do there, and i tried to apply the patch that there is in:
http://tracker.nagios.org/view.php?id=470 but without success.
When i try to see the statusmap graph with my hosts and services, what shows up is:
"You have not supplied any host drawing coordinates, so you cannot use this layout method."
Thanks for help and sorry for this new topic.
Re: statusmap doesn't work well
Posted: Mon Sep 30, 2013 3:22 pm
by sreinhardt
There is a tracker bug posted for it already. The developers will have to get it patched in an update. If you have any different or additional notes please add them to the tracker here:
http://tracker.nagios.org/view.php?id=470
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 10:00 am
by diverseft
Status map broken for me also. I had a look at applying the patch but my lack Linux skills got the better of me. Can someone point me in the right direction of applying nagios patches please?
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 10:31 am
by slansing
You are applying the patch to the source, there is a post near the bottom of the tracker page that explains how to do this.
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 10:50 am
by diverseft
Im not sure what the source is referring to
I looked at that post and attempted the following:
1. Copied patch to tmp location /tmp
2. cd to \usr\local\nagios\sbin
3. ran the command: patch -p1 </tmp/nagios-4-statusmap.patch
this just gave me an error message. Im clearly way off.....
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 11:03 am
by tmcdonald
Source is referring to the actual code of the program. When you apply a patch, you are making specific changes to the source code.
Just to clarify, did you actually type "cd \usr\local\nagios\sbin"? In Linux, we use forward slashes for directories. At any rate, care to post the error message?
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 11:40 am
by diverseft
Apologies. /usr/local/nagios/sbin was what i typed.
This is what i get
root@ubuntu:/usr/local/nagios/sbin# patch -p1 </tmp/nagios-4-statusmap.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur nagios-4.0.0-orig/cgi/statusmap.c nagios-4.0.0/cgi/statusmap.c
|--- nagios-4.0.0-orig/cgi/statusmap.c 2013-09-20 14:01:20.000000000 -0500
|+++ nagios-4.0.0/cgi/statusmap.c 2013-09-26 18:01:06.000000000 -0500
--------------------------
File to patch:
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 1:10 pm
by tmcdonald
Did you install nagios from a package using apt-get install, or did you compile from source? If source, follow these instructions:
A couple issues here:
Do you have the patch downloaded from the tracker?
Do you have the Nagios Core 4 source code tar.gz file?
Looks like you were trying to run the patch command on the binary nagios files, which is sort of like trying to put a bandaid on your DNA.
You will need to get the core 4 source code, "unzip" it, then move the patch to that directory and apply it. Then you will just need to run "./configure", "make", then "make install"
Re: statusmap doesn't work well
Posted: Fri Oct 04, 2013 3:32 pm
by altidude
Thanks for the help on this tmcdonald!
Re: statusmap doesn't work well
Posted: Mon Oct 07, 2013 1:53 am
by diverseft
I installed Nagios by compiling it using Build-Essential. I used this guide to set everything up -
http://www.telnetport25.com/2012/01/ins ... gios-core/