Page 1 of 6

Nagios Map

Posted: Tue Dec 10, 2013 2:00 pm
by diverseft
Hi Guys

I am running Nagios Core Version 4.0.2. I upgraded because I had issue 0000470 here: http://tracker.nagios.org/view.php?id=470
But since the upgrade to 4.0.2 I still have the same issue where there is no map and I get "You have not supplied any host drawing coordinates, so you cannot use this layout method."

On my map view in the top left corner I get:

Network Map For All Hosts
Last Updated: Tue Dec 10 18:58:22 GMT 2013
Updated every 90 seconds
Nagios® Core™ 4.0.0 - http://www.nagios.org
Logged in as nagiosadmin

On the home view I get

Nagios® Core™
Version 4.0.2
November 25, 2013
Check for updates

Does anyone have any suggestions so I can get the much loved map view back?

Many thanks

Re: Nagios Map

Posted: Tue Dec 10, 2013 4:54 pm
by sreinhardt
Did you make install each independent part? It would seem that you did just the daemon and not the cgi's, but I could be incorrect. Do you have a list of the steps you followed?

Re: Nagios Map

Posted: Tue Dec 10, 2013 5:01 pm
by diverseft

Re: Nagios Map

Posted: Tue Dec 10, 2013 5:10 pm
by IvanAK
I also made an update ... following the instalation tutorial on the nagios page i do the following ...

Im using CentOS
1) Download the new nagios-tar.gz
2) tar zxvf nagios.tar.gz
3) ./configure --with-command-group=nagcmd
4) make all
5) make install
6) that is all :)
I didnt remove anything ... i just stop the nagios to work, download the new version and the steps that i wrote

After that you should be able to see your hosts. And the error you get is that you do not have specified any coordinates on hosts, try change the map mode (im guessing you are using user-supplied coord) from the right upper corner there is a many and choose "Circular" or something different from user-supplied coords. And if you like to use the coords follow this as i write yesterday and still testing :) and tell us what you done. Or do we help you in some way ;)

Re: Nagios Map

Posted: Tue Dec 10, 2013 5:52 pm
by slansing
Thanks for the help Ivan.

Re: Nagios Map

Posted: Wed Dec 11, 2013 4:00 am
by diverseft
Thanks IvanAK

I followed your steps exactly but still nothing in the maps. I have tried different views such as Depth Layers: I get here a map of Nagios Process connected to my Nagios server and then nothing else. The Nagios Server is a parent to a switch which lots of other devices hang off. All my parent/child relationships worked fine before I updated to 4.0.0

Re: Nagios Map

Posted: Wed Dec 11, 2013 4:52 am
by diverseft
Additionally, If use the Circular view I get the the "You have not supplied any host drawing coordinates..."

Re: Nagios Map

Posted: Wed Dec 11, 2013 1:01 pm
by IvanAK
Lest thing that is coming up on mind is this ....

Download the latest nagios-core file 4.0.2 and in the files of it try finding the "cgiutils.c" file ( /tmp/nagios-4.0.2/cgi in my situation ) and the other file "objects.c" in common directory (/tmp/nagios-4.0.2/common) open it, and try to compare if it is the same as here. On the link it is shown the files that have problem in early versions like 4.0.1. and you can press on "Switch to side-by-side view" just to be easy for you to see the changes. And i think that should be the same, but i rely dont have nothing in my mine what could be wrong. If they are the same see what is going on with the privileges on nagios. If you using CentOS or Fedora or similar try:
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
or look something here if it can help you.

Before i update i have the same problem with 4.0.1 and i change the files (cgiutils.c and objects.c) and then i do the "./configure --with-command-group=nagcmd" ,"make all", "make install" and it works. And still i was on 4.0.1 then i update to 4.0.2. and its still working ok.

Any way tell us what you see and we gonna figure out some how what is going on there. tell us what you will do. For now i dont have any idea just to check the files you v downloaded and see if there is changes. And if you delete some files see if they are still there.

Re: Nagios Map

Posted: Wed Dec 11, 2013 5:52 pm
by tmcdonald
Let us know if Ivan's suggestion works.

Re: Nagios Map

Posted: Thu Dec 12, 2013 11:43 am
by diverseft
Thanks IvanAK

I downloaded latest nagios-core file 4.0.2 and extracted to tmp folder on nagios server.I then checked the cgiutils.c and objects.c files and compared with http://sourceforge.net/p/nagios/nagiosc ... 112d4b936/. All looks fine. I am not too sure how to check the permissions. I am using Ubuntu Server.