Left Hand Pane

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Left Hand Pane

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Left Hand Pane

Post by abrist »

emartine wrote:I don't want folks to start/stop or disable/enable, etc globally.
What permissions do you give those folks?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Left Hand Pane

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Left Hand Pane

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Left Hand Pane

Post by emartine »

That should be fine as admins have access to the command line.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Left Hand Pane

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Left Hand Pane

Post 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
########################################
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Left Hand Pane

Post 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.
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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Left Hand Pane

Post by emartine »

I can't seem to find the section for removal of the auto-discovery wizard link.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Left Hand Pane

Post by abrist »

Did you remove the auto-discovery component and wizard?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked