Nagios Map
Nagios Map
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
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios Map
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?
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: Nagios Map
I also made an update ... following the instalation tutorial on the nagios page i do the following ...
Im using CentOS
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 
Im using CentOS
I didnt remove anything ... i just stop the nagios to work, download the new version and the steps that i wrote1) 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![]()
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Map
Thanks for the help Ivan.
Re: Nagios Map
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
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
Additionally, If use the Circular view I get the the "You have not supplied any host drawing coordinates..."
Re: Nagios Map
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:
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.
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:
or look something here if it can help you.chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
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
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.
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.