statusmap doesn't work well
-
edsontadeu
- Posts: 1
- Joined: Mon Sep 30, 2013 1:36 pm
statusmap doesn't work well
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: statusmap doesn't work well
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
http://tracker.nagios.org/view.php?id=470
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: statusmap doesn't work well
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?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: statusmap doesn't work well
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
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.....
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
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?
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?
Former Nagios employee
Re: statusmap doesn't work well
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:
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
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"
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"
Former Nagios employee
Re: statusmap doesn't work well
Thanks for the help on this tmcdonald!
Re: statusmap doesn't work well
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/