Several map views of Nagios

naim abu darwish naim.abu.darwish at gmail.com
Thu Jan 25 00:13:03 CET 2007


using  something like  graphiz like  Sébastien Barbereau suggested, or
 nagviz  i could easily manage the locations of hosts on the map, its
a bit of a hassle since every time a host is added you have to move
around some 10 other hosts, but its better than nothing.

Algorithms that automatically draw maps and do proper spacing  would
be great, something like graphiz, but the more immediate problem is
getting only selected hostgroups to appear in the map, because even
when i hide certain hostgroups, lines still point to their hosts.

Really it should be a simple patch, just include some config below
default_statusmap_layout in cgi.cfg , say included_hostgroups=
routers,wireless... whatever.
But i dont know C,
any volunteers ? you get a big thankyou :D

On 1/25/07, Chris Moody <cmoody at qualcomm.com> wrote:
> The statusmap.cgi does not re-draw the map in regards to screen
> coordinates when hiding groups.  Your maps will remain "cluttered" even
> though you can filter what's even displayed.  This is a known limitation
> of the statusmap.cgi map.
>
> I've had (very minor) success is setting the scale larger.
> ##############
> fittipaldi cgi # diff statusmap.c statusmap.c-ORIG
> 72,73c72,73
> < #define DEFAULT_NODE_VSPACING           45
> < #define DEFAULT_NODE_HSPACING           85
> ---
>  > #define DEFAULT_NODE_VSPACING           15
>  > #define DEFAULT_NODE_HSPACING           45
> 84c84
> < #define CIRCULAR_DRAWING_RADIUS         200
> ---
>  > #define CIRCULAR_DRAWING_RADIUS         100
> 1745c1745
> <                               /*else if(host_services_ratio>=1.5)
> ---
>  >                               else if(host_services_ratio>=1.5)
> 1750c1750
> <
> outer_radius=DEFAULT_NODE_WIDTH*0.4;*/
> ---
>  >
> outer_radius=DEFAULT_NODE_WIDTH*0.4;
> 1752,1754c1752
> <
> /*outer_radius=DEFAULT_NODE_WIDTH*0.2;*/
> <                                       /* MODIFIED BY CMOODY - 11.29.05 */
> <                                       outer_radius=DEFAULT_NODE_WIDTH;
> ---
>  >
> outer_radius=DEFAULT_NODE_WIDTH*0.2;
> 2690c2688
> <       int parent_drawing_width=1;
> ---
>  >       int parent_drawing_width=0;
> ##############
>
> I have yet to find a perfect solution.  I'm in a situation where I have
> several thousand "nodes" to watch.
>
> My interim solution has been to create multiple nagios instances with
> apache vhosts.  This way I can group systems logically and represent
> them in a cleaner fashion.  I have 0.1-rev code available via
> nagios-exchange to build the different vhosts. (I'm hoping to have a
> newer build available soon (with support for 2.x train of Nagios).)
>
> Were my C skillz better, I'd try to take on a building a more adaptive
> drawing algo...
>
> Cheers,
> -Chris
>
> naim abu darwish wrote:
> > Well, i have similar problem,
> > I have 530 hosts, so having all those on one map would be meaningless.
> > I just need the routers and the wireless machines on there. If i chose
> > what to exclude from the status map, it will still keep links pointing
> > to hidden devices and thus the map will still be cluttered. I found a
> > patch on  the Pkg-nagios-devel debian mailing list, a post dating back
> > to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
> > nagios-1.x ?? anyway, link to original post ::
> >
> > http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html
> >
> > this is supposed to make the map only show certain selective
> > hostgroups on the statusmap. i tried the patch on statusmap.c , I am
> > using nagios 2.5. the patch failed. Im not very good at reading C
> > code, could someone help out here ? maybe fix the patch for the
> > current nagios version, also seems a good idea to include in future
> > nagios versions
> >
> > Help appreciated
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
> >
> >
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list