Patch to locate hosts on status map in a fast way (complete)

Ethan Galstad nagios at nagios.org
Fri Sep 26 00:53:34 CEST 2003


I'll add this patch with a few minor mods to CVS tonight.  Mainly, 
I'll be removing the hardcoded layout type in the link.  That way the 
statusmap method used will be whatever the user has configured in the 
CGI config file.

Not sure if this patch will stay in or not.  This feature used to be 
in the code in the NetSaint days (I don't recall which version), but 
people complained about too many items on the screen in the overview 
window.


On 25 Sep 2003 at 0:07, Creator wrote:

> Hi Chosson,
> 
> you are right. I forgot to include the extinfo.c patch :)
> 
> Here it is along with the old patch and the updated instructions.
> 
> ------------------------
> 
> Here is the patch to locate any host in the status map by single
> clicking the detailed host page.
> 
> Look at the attached screenshots to see a little demo:
> 
> shot1: The red circle shows the new command (Host information page)
> shot2: After clicking the icon you'll be forwarded on the statusmap
> using "Depth Layers" method. shot3: Another point (Status Overview for
> example) from where you can use this function.
> 
> Before applying to Nagios v1.1 code you may want to change a variable
> to reflect your preferred Status Map default display mode.
> 
> Here it is the list as defined in cgi/statusmap.c:
> 
> #define LAYOUT_USER_SUPPLIED            0
> #define LAYOUT_SUBLAYERS                1
> #define LAYOUT_COLLAPSED_TREE           2
> #define LAYOUT_BALANCED_TREE            3
> #define LAYOUT_CIRCULAR                 4
> #define LAYOUT_CIRCULAR_MARKUP          5
> #define LAYOUT_CIRCULAR_BALLOON         6
> 
> Look at the diff files and substitute the "layout=1" string with
> "layout=?" where ? is a number from 0 to 6 to be chosen from the above
> list or just skip this step if you are comfortable with the default
> setting.
> 
> Apply the patch by typing:
> 
> cd <your nagios source dir>/cgi
> patch status.c <your patch path>/locate-on-map.diff
> patch extinfo.c <your patch path>/locate-on-map-extinfo.diff
> make;strip status.cgi extinfo.cgi;cp status.cgi extinfo.cgi <your
> nagios installed dir>/sbin
> 
> Now set <your nagios installed dir>/sbin/status.cgi and extinfo.cgi
> permissions as those of the other files in that dir and you have
> finished.
> 
> Enjoy!
> 
> 
> 
> 
> > -----Messaggio originale-----
> > Da: CHOSSON [mailto:divers.chosson at wanadoo.fr] 
> > Inviato: mercoledì 24 settembre 2003 21.22
> > A: Creator
> > Oggetto: Re: [Nagios-users] Patch to locate hosts on status 
> > map in a fastway
> > 
> > 
> > Hello,
> > 
> > i successfully patch status.c
> > 
> > But, where is the patch to obtain the result show in 
> > shot1.jpg, because i'm very interested about it.
> > 
> > PS: sorry for my poor english.
> > 
> > bye,
> > 
> > Le jeu 18/09/2003 à 00:05, Creator a écrit :
> > > Hi there,
> > > 
> > > here is the patch as promised to locate any host in the 
> > status map by 
> > > single clicking the detailed host page.
> > > 
> > > Look at the attached screenshots to see a little demo:
> > > 
> > > shot1: The red circle shows the new command (Host information
> > > page) shot2: After clicking the icon you'll be forwarded on the
> > > statusmap using "Depth Layers" method. shot3: Another point
> > > (Status Overview for example) from 
> > where you can 
> > > use this function.
> > > 
> > > Before applying to Nagios v1.1 code you may want to change 
> > a variable 
> > > to reflect your preferred Status Map default display mode.
> > > 
> > > Here it is the list as defined in cgi/statusmap.c:
> > > 
> > > #define LAYOUT_USER_SUPPLIED            0
> > > #define LAYOUT_SUBLAYERS                1
> > > #define LAYOUT_COLLAPSED_TREE           2
> > > #define LAYOUT_BALANCED_TREE            3
> > > #define LAYOUT_CIRCULAR                 4
> > > #define LAYOUT_CIRCULAR_MARKUP          5
> > > #define LAYOUT_CIRCULAR_BALLOON         6
> > > 
> > > Look at the diff file and substitute the "layout=1" string with
> > > "layout=?" where ? is a number from 0 to 6 to be chosen 
> > from the above 
> > > list or just skip this step if you are comfortable with the
> > > default setting.
> > > 
> > > Apply the patch by typing:
> > > 
> > > cd <your nagios source dir>/cgi
> > > patch status.c <your patch path>/locate-on-map.diff make;strip
> > > status.cgi;cp status.cgi <your nagios installed dir>/sbin
> > > 
> > > Now set <your nagios installed dir>/sbin/status.cgi permissions as
> > > those of the other files in that dir and you have finished.
> > > 
> > > Enjoy!
> > > 
> > > 
> > > ------------
> > > 
> > > Stefano Coletta
> > > http://www.mindcreations.com
> > 
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Developers mailing list