Page 1 of 2

Left Hand Pane

Posted: Tue Nov 18, 2014 12:06 pm
by emartine
Is there a way to modify the left hand pane that has Quick View, Details, Performance Graphs... etc. My guess is that I may have to modify the html

I am looking to hide the Monitoring Process section since I don't want folks to start/stop or disable/enable, etc globally.

Re: Left Hand Pane

Posted: Tue Nov 18, 2014 2:27 pm
by abrist
emartine wrote:I don't want folks to start/stop or disable/enable, etc globally.
What permissions do you give those folks?

Re: Left Hand Pane

Posted: Tue Nov 18, 2014 3:39 pm
by emartine
I've given them user with some evelated privs. I don't want them to even see it even if they can click with a permission denied.

Re: Left Hand Pane

Posted: Tue Nov 18, 2014 5:31 pm
by abrist
Well, you may be able to remove them from the list, but this will not be multi-tenet as it will be missing for *all* users. Is that ok?

Re: Left Hand Pane

Posted: Wed Nov 19, 2014 2:48 pm
by emartine
That should be fine as admins have access to the command line.

Re: Left Hand Pane

Posted: Wed Nov 19, 2014 5:41 pm
by abrist
Well you could hide the link, but add the link to a dashboard/view for the admins so that they can still see it.
Edit the file:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-menu.inc.php
Comment out the lines #1945 - #1995:

Code: Select all

    /*add_menu_item(MENU_HOME, array(
        "type" => "menusection",
        "title" => gettext("Monitoring Process"),
        "id" => "menu-home-section-monitoringprocess",
        "order" => 600,
        "opts" => array(
            "id" => "system",
            "expanded" => true,
            //"url" => $nagioscoreui_path."extinfo.php?type=0"
            "url" => $xistatus_path . "?show=process"
        ),
        "function" => "is_authorized_for_monitoring_system",
    ));
    add_menu_item(MENU_HOME, array(
        "type" => "link",
        "title" => gettext("Process Info"),
        "id" => "menu-home-processinfo",
        "order" => 601,
        "opts" => array(
            //"href" => $nagioscoreui_path."extinfo.php?type=0"
            "href" => $xistatus_path . "?show=process"
        ),
        "function" => "is_authorized_for_monitoring_system",

    ));
    add_menu_item(MENU_HOME, array(
        "type" => "link",
        "title" => gettext("Performance"),
        "id" => "menu-home-performance",
        "order" => 602,
        "opts" => array(
            //"href" => $nagioscoreui_path."extinfo.php?type=4"
            "href" => $xistatus_path . "?show=performance"

        ),
        "function" => "is_authorized_for_monitoring_system",

    ));

    add_menu_item(MENU_HOME, array(
        "type" => "link",
        "title" => gettext("Event Log"),
        "id" => "menu-home-eventlog",
        "order" => 603,
        "opts" => array(
            //"href" => $nagioscoreui_path."showlog.php"
            "href" => $xireports_path . "eventlog.php"
        ),
        "function" => "is_authorized_for_monitoring_system",

    ));*/
Browse away from the page and browse back. The links should now be missing. If the user knows the GET request for it, they could still bring it up. But this will stop vagrants.

Re: Left Hand Pane

Posted: Thu Nov 20, 2014 5:13 pm
by emartine
Excellent. I am assuming I can do the same for the Auto-Discovery Wizard? I removed the wizard but the link remains and it is dead.

Click on the link results in the page:
########################################
Installation Problem

An installation errror was detected. The following steps must be completed before using this component:

Run the setup script. To do this, login to the Nagios XI server as the root user and issue the following commands:

chmod +x /usr/local/nagiosxi/html/includes/components/autodiscovery/setup.sh
/usr/local/nagiosxi/html/includes/components/autodiscovery/setup.sh
########################################

Re: Left Hand Pane

Posted: Thu Nov 20, 2014 5:47 pm
by sreinhardt
Yes, you can alter that as well. Since I have not seen it mentioned. I want you to be aware, all of this will be overwritten on update. We always force a complete overwrite of the html directories, so these changes will have to be made again if you wish to keep it this way.

Re: Left Hand Pane

Posted: Wed Dec 03, 2014 2:51 pm
by emartine
I can't seem to find the section for removal of the auto-discovery wizard link.

Re: Left Hand Pane

Posted: Wed Dec 03, 2014 3:12 pm
by abrist
Did you remove the auto-discovery component and wizard?