adding new level 0 items

Keio Oyama oyama at impress.co.jp
Fri Oct 7 11:54:05 CEST 2005


Hi,

I'm going to add a new "level 0" item to the menu bar, but can't.
I added some lines to the ~/server/www/menu/menu_items.js file, like this,

--------------------------
var MENU_ITEMS = [
        ['Views', null, null,
                ['Main view', '/hobbit/bb.html'],
                ['All non-green view', '/hobbit/bb2.html'],
                ['NK view', '/hobbit/bbnk.html'],
        ],
        ['Reports', null, null,
                ['Event log Report', '/cgi-bin/hobbit/bb-eventlog.sh'],
                ['Availability Report', '/cgi-bin/hobbit/bb-rep.sh'],
                ['Snapshot Report', '/cgi-bin/hobbit/bb-snapshot.sh'],
        ],
        ['Administration', null, null,
                ['Find host', '/cgi-bin/hobbit/bb-findhost.sh'],
                ['Acknowledge alert', '/cgi-bin/hobbit/bb-ack.sh'],
                ['Enable/disable', '/cgi-bin/hobbit/hobbit-enadis.sh'],
        ],
        ['Help', null, null,
                ['About Hobbit', '/hobbit/help/about.html'],
                ['Installing Hobbit', '/hobbit/help/install.html'],
                ['Configuring Monitoring', '/hobbit/help/hobbit-config.html'],
                ['Configuring Alerts', '/hobbit/help/hobbit-alerts.html'],
                ['Known problems', '/hobbit/help/known-issues.html'],
                ['Tips and Tricks', '/hobbit/help/hobbit-tips.html'],
                ['Hobbit man-pages', '/hobbit/help/manpages/'],
        ],
/* added */
        ['Link', null, null,
                ['test', 'http://hoge.com/test.html'],
        ],
/* added end */
];
--------------------------

After that, the menu var became not to be displayed. If there are up to
four "level 0" items, I can see the menu var.
When I comment out one of the items, ex. 'Views', the menu var goes like
bellow,

[Reports   ][Administration ][Help      ][Link      ]

How can I add the new item to the defaults.

Thanks in advance.

Keio




More information about the Xymon mailing list