OSSIM添加菜单栏

spacer.gif

cd  /usr/share/ossim/include/classes

vi  menu.inc

 

791行追加  如图

/* SKYSHELL*/

        $perm_skyshell        = $this->check_perm("environment-menu", "Sky-shell");

804添加 $perm_skyshell 如图

$perm_m_environment   = $perm_assets || $perm_vulns || $perm_profiles || $perm_netflow || $perm_traffic_capture || $perm_availability      || $perm_skyshell || $perm_detection;

 

1026行追加如图

 

                   /* SKYSHELL */

                "skyshell" => array(

                    "name"    => _("Skyshell"),

                    "enabled" => $perm_skyshell,

                    "hmenu"   => array(

                        "sky-shell" => array(

                            "name"    => _("ZABBIX"),

                            "enabled" => TRUE,

                            "url"     => "//191.158.2.1/zabbix/"

                        ),

 

                        "nagios" => array(

                            "name"    => _("NAGIOS"),

                            "enabled" => TRUE,

                            "url"     => "http://191.158.8.88/nagios"

                        ),

                            "cacti" => array(

                            "name"    => _("CACTI"),

                            "enabled" => TRUE,

                            "url"     => "http://191.158.8.88/"

                        )

                    )

                ),

你可能感兴趣的:(菜单栏,include,share)