PDA

View Full Version : StatusMAP from nagios in oreon, almost done. (oreon1.3)


BZ
6th June 2006, 20:58
In frist place, oreon authenthication is phpsession, and nagios is .htaccess, so, we need to remove the .htaccess securety from nagios.

I know, this is a security fail, but u can remove the Virtual folder of nagios from httpd, and let just the CGI´s virtual folder.

Frist step is:

in /usr/local/oreon/www/lang/en.php (and fr.php =]), after the # Monitoring menu paste: $lang["m_nagios_map"] = "Nagios Status Map";


Now, lets do some mysql.


We need execute this:

INSERT INTO `topology` ( `topology_id` , `topology_name` , `topology_icone` , `topology_parent` , `topology_page` , `topology_order` , `topology_group` , `topology_url` , `topology_url_opt` , `topology_popup` , `topology_modules` , `topology_show` )
VALUES ('', 'm_nagios_map', NULL , '2', '204', '42', 1, 'http://URL FROM STAUS MAPl', NULL , '0', '0', '1');


where:

m_nagios_map = your traduction
NULL = icones (for third level)
2 = page parent (monitoring)
204 = id of the new page
42 = order
1 = group menu on left side
URL = your url
NULL = any options you need for the url
0 = not popup *( if u change it to 1, everthing swork fine)
0 = not a module
1 = viewable



http://img429.imageshack.us/img429/4960/oreon12hs.jpg



After that, go in /usr/local/oreon/www/header.php

and coment or remove the 157º line. the line is:
<SCRIPT language='javascript' src='./include/common/javascript/functions.js'></SCRIPT>
it is about a old release.

Ok, everthing done.

Now, when i try to acess the link i get:

[Tue Jun 06 14:53:18 2006] [error] [client 10.0.0.71] File does not exist: /usr/local/oreon/www/Themes/Basic/color204, referer: http://host/oreon/oreon.php?p=204?host=all [Tue Jun 06 14:56:07 2006] [error] [client 10.0.0.71] File does not exist: /usr/local/oreon/www/Themes/Basic/color, referer: http://host/oreon/oreon.php?p=?host=all

this erro is in /etc/httpd/log/error_log

evertytimi i click on lik, it pop in log.

And in browser i get:

http://img429.imageshack.us/img429/6779/oreon23gt.jpg





Any ideas?


if u just want to put map in a popup window, ok, everthyng done, just change the topology_popup to 1.

Any help?


Tks everyone and Tks to DonkiShoot, Romain and Wistof.

Tks guys;)
*remember, i remove the securit from cgis, i can access direct the statusmap link from anyplace of world, whitout authentication =)

julio
6th June 2006, 21:38
Hi

Juste put topology_popup = 1 in your topology entry. A new window will be open...

best regards

BZ
6th June 2006, 22:02
Hi

Juste put topology_popup = 1 in your topology entry. A new window will be open...

best regards

Yes i know ;)

it work fine.

But i tring to open it in the main frame of oreon!!!

In the popup work great ;)

rom
18th July 2006, 21:02
I add the field "topology_group" in your first post request (Till RC2 & RC3)