------=_NextPart_000_0022_01C382F9.0CA6EE40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Chosson,
you are right. I forgot to include the extinfo.c patch
Here it is along with the old patch and the updated instructions.
------------------------
Here is the patch to locate any host in the status map by single =
clicking
the detailed host page.
Look at the attached screenshots to see a little demo:
shot1: The red circle shows the new command (Host information page)
shot2: After clicking the icon you'll be forwarded on the statusmap =
using
"Depth Layers" method.
shot3: Another point (Status Overview for example) from where you can =
use
this function.
Before applying to Nagios v1.1 code you may want to change a variable to
reflect your preferred Status Map default display mode.
Here it is the list as defined in cgi/statusmap.c:
#define LAYOUT_USER_SUPPLIED 0
#define LAYOUT_SUBLAYERS 1
#define LAYOUT_COLLAPSED_TREE 2
#define LAYOUT_BALANCED_TREE 3
#define LAYOUT_CIRCULAR 4
#define LAYOUT_CIRCULAR_MARKUP 5
#define LAYOUT_CIRCULAR_BALLOON 6
Look at the diff files and substitute the "layout=3D1" string with =
"layout=3D?"
where ? is a number from 0 to 6 to be chosen from the above list or just
skip this step if you are comfortable with the default setting.
Apply the patch by typing:
cd /cgi
patch status.c /locate-on-map.diff
patch extinfo.c /locate-on-map-extinfo.diff
make;strip status.cgi extinfo.cgi;cp status.cgi extinfo.cgi /sbin
Now set /sbin/status.cgi and extinfo.cgi
permissions as those of the other files in that dir and you have =
finished.
Enjoy!
> -----Messaggio originale-----
> Da: CHOSSON [mailto:[email protected]]=20
> Inviato: mercoled=EC 24 settembre 2003 21.22
> A: Creator
> Oggetto: Re: [Nagios-users] Patch to locate hosts on status=20
> map in a fastway
>=20
>=20
> Hello,
>=20
> i successfully patch status.c
>=20
> But, where is the patch to obtain the result show in=20
> shot1.jpg, because i'm very interested about it.
>=20
> PS: sorry for my poor english.
>=20
> bye,
>=20
> Le jeu 18/09/2003 =E0 00:05, Creator a =E9crit :
> > Hi there,
> >=20
> > here is the patch as promised to locate any host in the=20
> status map by=20
> > single clicking the detailed host page.
> >=20
> > Look at the attached screenshots to see a little demo:
> >=20
> > shot1: The red circle shows the new command (Host information page)
> > shot2: After clicking the icon you'll be forwarded on the statusmap=20
> > using "Depth Layers" method.
> > shot3: Another point (Status Overview for example) from=20
> where you can=20
> > use this function.
> >=20
> > Before applying to Nagios v1.1 code you may want to change=20
> a variable=20
> > to reflect your preferred Status Map default display mode.
> >=20
> > Here it is the list as defined in cgi/statusmap.c:
> >=20
> > #define LAYOUT_USER_SUPPLIED 0
> > #define LAYOUT_SUBLAYERS 1
> > #define LAYOUT_COLLAPSED_TREE 2
> > #define LAYOUT_BALANCED_TREE 3
> > #define LAYOUT_CIRCULAR 4
> > #define LAYOUT_CIRCULAR_MARKUP 5
> > #define LAYOUT_CIRCULAR_BALLOON 6
> >=20
> > Look at the diff file and substitute the "layout=3D1" string with=20
> > "layout=3D?" where ? is a number from 0 to 6 to be chosen=20
> from the above=20
> > list or just skip this step if you are comfortable with the default=20
> > setting.
> >=20
> > Apply the patch by typing:
> >=20
> > cd /cgi
> > patch status.c /locate-on-map.diff make;strip=20
> > status.cgi;cp status.cgi /sbin
> >=20
> > Now set /sbin/status.cgi permissions as=20
> > those of the other files in that dir and you have finished.
> >=20
> > Enjoy!
> >=20
> >=20
> > ------------
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]