Page 1 of 2

Network Status Map

Posted: Wed Mar 25, 2015 10:04 am
by RockerMan
Hi

In NagioXI in Maps have Network Status Map. But the image of the map not informative. Pile of circles of different radius - that's how it looks (add an image file).
Please, tell me, how to dissolve all of the devices in the right place for me on the map manually and provide them with native icons: for Cisco - cisco icons, for HP servers - hp servers icons, for Switches - their icons... In this configuration, Network Status Map would be a beautiful, clear and informative.

Thanks

Best Regards
Valery

Re: Network Status Map

Posted: Wed Mar 25, 2015 12:02 pm
by ssax
You can define the parent relationships, that will help but there is no way to customize the host status map, you're better off using NagVis to achieve that style of functionality.

Re: Network Status Map

Posted: Wed Mar 25, 2015 5:25 pm
by Box293
In you Host objects you can define 2D co-ordinates.

However this appears to have no affect in XI.

But in core, you can view a User-supplied coords map which ONLY shows objects with defined co-ordinates.
Selection_049.png

Re: Network Status Map

Posted: Thu Mar 26, 2015 4:39 am
by RockerMan
Hi

Thank you for reply.
I watched this field "2D coords". But I did not understand what values to write in this field. If you take the map screen "Map" (Core) - how to orient it along the coordinate axes X and Y?

Re: Network Status Map

Posted: Thu Mar 26, 2015 10:32 am
by jdalrymple
In the host object definition you're looking for the statusmap_image (must be a png) directive and 2d_coords directive:

http://nagios.sourceforge.net/docs/3_0/ ... tions.html

As Box293 indicated though, I don't think that the 2d_coords directive is well behaved in XI, namely there is no way to select the "user supplied coords" view - it does work properly when using the statusmap in core however.

NagVis is currently your best option. There are some changes coming into core, currently available in the unstable source that gives you some much better graph layout functionality. It hasn't yet been merged into the stable code yet however and it is unsure if and when it will be implemented in XI.

Re: Network Status Map

Posted: Fri Mar 27, 2015 1:40 am
by RockerMan
Thanks for the help guys

I realized that this thing 2d_coords, empirically, that's not what we need. In the end, the result is - will translate network map on NagVis. He, too, is not easy, but nothing to do, it is necessary to study the subject for use in practice.

Re: Network Status Map

Posted: Fri Mar 27, 2015 9:35 am
by jdalrymple
Yeah, sorry we don't have a better answer for you. I have seen the new code that's coming for maps in practice and it looks much nicer than the old code. It is certain that we haven't abandoned the mapping part of the product.

Can we lock this thread?

Re: Network Status Map

Posted: Fri Sep 11, 2015 9:40 am
by toodaly
Hi,

I'm running into this problem too. I tried the 2d_coords, but that didn't help in XI. I've been asked that since it is not very usable, if I can remove it from the XI left side menu. Is there a quick fix to comment out some PHP code to remove the link?

Thanks.

Re: Network Status Map

Posted: Fri Sep 11, 2015 12:30 pm
by ssax
toodaly, are you running 2014R2.7?

*** Note: This will get reverted if you upgrade and will need to be reimplemented.
*** Make sure that you have known-good backups/vm snapshots before making any modifications

If so, edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-menu.inc.php
Change this code (around line 1849) from:

Code: Select all

    // Maps
    add_menu_item(MENU_HOME, array(
        "type" => "menusection",
        "title" => gettext("Maps"),
        "id" => "menu-home-section-maps",
        "order" => 400,
        "opts" => array(
            "id" => "maps",
            "expanded" => true,
            //"url" => $nagioscoreui_path."statusmap.php"
            "url" => get_statusmap_link()
        )
    ));
    add_menu_item(MENU_HOME, array(
        "type" => "link",
        "title" => gettext("Network Status Map"),
        "id" => "menu-home-networkstatusmap",
        "order" => 401,
        "opts" => array(
            //"href" => $nagioscoreui_path."statusmap.php"
            "href" => get_statusmap_link()
        )
    ));
To:

Code: Select all

    // Maps
    add_menu_item(MENU_HOME, array(
        "type" => "menusection",
        "title" => gettext("Maps"),
        "id" => "menu-home-section-maps",
        "order" => 400,
        "opts" => array(
            "id" => "maps",
            "expanded" => true,
            //"url" => $nagioscoreui_path."statusmap.php"
            "url" => get_base_url() . 'includes/components/hypermap/'
        )
    ));
    add_menu_item(MENU_HOME, array(
        "type" => "link",
        "title" => '',
        "id" => "menu-home-networkstatusmap",
        "order" => 401,
        "opts" => array(
            //"href" => $nagioscoreui_path."statusmap.php"
            //"href" => get_statusmap_link()
        )
    ));
That will remove the link for you.

Re: Network Status Map

Posted: Fri Sep 11, 2015 3:59 pm
by toodaly
That worked great. Exactly what I needed. Thanks!!!