3D World
Jamie
jamie at bclnz.net
Wed Oct 16 23:00:39 CEST 2002
Hi,
3. How to convert a PNG to GD2 correctly?? Noone seems to explain
this...When using pngtogd2 its required to specify the chunk size.. what
value should i use? I just want to use a normal image as background...
-> I just use (for example) png2gd2 router.png router.gd2 0 2 (i.e 0 chunk
size uncompressed)
jamie
----- Original Message ----- From: "Sergio Freire"
<sergio-s-freire at ptinovacao.pt>
To: "Ethan Galstad" <nagios at nagios.org>
Cc: "nagios-users" <nagios-users at lists.sourceforge.net>
Sent: Wednesday, October 16, 2002 11:09 PM
Subject: RE: [Nagios-users] 3D World
> Ethan, all,
>
> Im having problems with user-defined layout in statusmap so some
> questions arise:
>
> 1. The background image doesn't appear in full size - its cropped! in
> fact the statusmap always generates an image of 100 pixels wide. Why
> does the statusmap keep generating an image of that size, even if the
> background is not defined?
> 2. Why has the background to be in GD2 format?? Could'nt it be a
> GIF,JPEG or other?
> 3 How to convert a PNG to GD2 correctly?? Noone seems to explain
> this...When using pngtogd2 its required to specify the chunk size.. what
> value should i use? I just want to use a normal image as background...
>
> PS: I have already tried the updated statusmap from CVS but the errir
> described in point number 1 keeps existing...
>
> Regards,
> Sergio Freire
>
>
> On Tue, 2002-10-15 at 23:54, Ethan Galstad wrote:
> > There are some definite bugs in the CGI, which I must have created
> > recently. These include:
> >
> > 1) User-defined layout always failed, regardless of whether coords
> > were specified or not
> > 2) Z-coordinate in auto-layout modes was incorrectly taken from user-
> > supplied coords (if available)
> >
> > Fixes for both of these issues are now in CVS, so you might want to
> > give that a try.
> >
> >
> >
> > On 15 Oct 2002 at 9:29, Carroll, Jim P [Contractor] wrote:
> >
> > > >From the docs describing the 3d_coords directive:
> > >
> > > "This variable is used to define coordinates to use when drawing the
host in
> > > the statuswrl CGI. Coordinates can be positive or negative real
numbers. The
> > > origin for drawing is (0.0,0.0,0.0). For reference, the size of the
host
> > > cubes drawn is 0.5 units on each side (text takes a little more
space). The
> > > coordinates you specify here are used as the center of the host cube."
> > >
> > > Unless I missed something, this means that this specifies the X,Y,Z
> > > coordinates of the image, and that the size of the image is a
constant.
> > >
> > > jc
> > >
> > > > -----Original Message-----
> > > > From: Louie Cagasan [mailto:fireant at zpdee.net]
> > > > Sent: Monday, October 14, 2002 10:29 PM
> > > > To: Carroll, Jim P [Contractor]
> > > > Cc: 'Jon Lyons'; chris_lockwood at ckeurope.com;
> > > > nagios-users at lists.sourceforge.net
> > > > Subject: RE: [Nagios-users] 3D World
> > > >
> > > >
> > > > Well, from what I understand about it in the docs, the coords you
> > > > specify for a node there don't exactly mean its position on
> > > > the map, but
> > > > something like the size of the icon you'll use for that node. And
the
> > > > layout there means how the nodes are "laid out" onscreen.
> > > >
> > > > Using user-defined layout in the status map doesn't work for
> > > > me: I don't
> > > > see all the nodes I specified. Oh well, as long as I see the whole
map
> > > > of my whole network, that's just fine with me. =)
> > > >
> > > >
> > > > On Tue, 2002-10-15 at 07:26, Carroll, Jim P [Contractor] wrote:
> > > > > Verrrry interesting. Mine was set to "0", so I went
> > > > through the ranks...
> > > > > 4... 3... 2... all of those work, no problem. This is where I
say,
> > > > > "Hooray!" I'm puzzling why it doesn't work for
> > > > user-defined co-ordinates,
> > > > > but this will likely make my job simpler.
> > > > >
> > > > > Thanks for the tip!
> > > > >
> > > > > jc
> > > > >
> > > > > -----Original Message-----
> > > > > From: Jon Lyons [mailto:jlyons30 at yahoo.com]
> > > > > Sent: Monday, October 14, 2002 5:27 PM
> > > > > To: Louie Cagasan; Carroll, Jim P [Contractor]
> > > > > Cc: chris_lockwood at ckeurope.com;
nagios-users at lists.sourceforge.net
> > > > > Subject: RE: [Nagios-users] 3D World
> > > > >
> > > > >
> > > > >
> > > > > Are you sure it's working?? Did you change
> > > > "default-statuswrl_layout=0" ?I
> > > > > bet you're still on auto(4).. :) My 2d maps work fine with
> > > > my coords, but
> > > > > the 3d maps just give the error...
> > > > >
> > > > >
> > > > > Louie Cagasan <fireant at zpdee.net> wrote:
> > > > >
> > > > >
> > > > > Hi Jim/Chris,
> > > > >
> > > > > Try this one. I have this in my hostextinfo.cfg:
> > > > > Just make sure you declared this in your cgi.cfg, like:
> > > > >
> > > > > xed_template_configfile=/usr/local/nagios/etc/hostextinfo.cfg
> > > > >
> > > > > or something like that, then below is the entries for your
> > > > > hostextinfo.cfg.
> > > > >
> > > > > define hostextinfo{
> > > > > host_name NOCswitch
> > > > > vrml_image ng-switch40.png
> > > > > icon_image ng-switch40.gif
> > > > > vrml_image ng-switch40.jpg
> > > > > statusmap_image ng-switch40.gd2
> > > > > 2d_coords 200,400
> > > > > 3d_coords 50.0,100.0,50.0
> > > > > }
> > > > >
> > > > > This works for me. And the "no dots" rule is,
> > > > > well, a rule. You can vary the values in the coords as well.
> > > > >
> > > > > hth.
> > > >
> --------------------------------------------------------------------
> > > > >
> > > > > I never did get this working. The common response is "make
> > > > sure you =
> > > > > don't
> > > > > have dots in your hostnames", which I don't.
> > > > >
> > > > > VRML works, but Cortona does start; it comes! up with "You
> > > > have not =
> > > > > supplied
> > > > > any 3-D drawing coordinates. Read the FAQs for more information on
=
> > > > > doing
> > > > > this."
> > > > >
> > > > > Not to say this can't be done, but I've largely given up on
> > > > making it =
> > > > > work
> > > > > (for now).
> > > > >
> > > > > I'll be migrating Nagios to another server, so maybe when I have a
=
> > > > > 'bare
> > > > > bones' config set up, I'll try the 3-D Status Map again,
> > > > just to see =
> > > > > whether
> > > > > it works at all. If I have an 'aha!' moment, I'll share it with =
> > > > > everyone.
> > > > > ;)
> > > > >
> > > > > jc
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Chris at lockwood.fsnet.co.uk
> > > > [mailto:Chris at lockwood.fsnet.co.uk]
> > > > > > Sent: Monday, October 14, 2002 2:53 AM
> > > > > > To: nagios-users at lists.sourceforge.net
> > > > > > Cc: chris.lockwood at ckeurope.com
> > > > > > Subject: [Nagios-users] 3D World
> > > > > >=20
> > > > > >=20
> > > > > > I'm having problems with the 3D world configuration,
> > > > everything else
> > > > > > seems to work (excellent program). The 2D status map
> > > > seems to take =
> > > > > the
> > > > > > coordinate! s I have inputted, but the 3D version is
> > > > having non of it.
> > > > > >=20
> > > > > > At this point it may be worth mentioning that I did not use the:
> > > > > >=20
> > > > > > --with-template-objects
> > > > > >=20
> > > > > > argument when I compiled, however having said that the 2D Map=20
> > > > > > works ok.
> > > > > > I realize its not the end of the world but I'd really like to=20
> > > > > > have full
> > > > > > functionality, so I can show of to my manager :-)
> > > > > >=20
> > > > > > Thanks all
> > > > > >=20
> > > > > > Chris L
> > > > > >=20
> > > > > >=20
> > > > > >=20
> > > > > > ____________________________________________
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This sf.net email is sponsored by:ThinkGeek
> > > > > Welcome to geek heaven.
> > > > > http://thinkgeek.com/sf
> > > > > _______________________________________________
> > > > > Nagios-users mailing list
> > > > > Nagios-users at lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _____
> > > > >
> > > > > Do you Yahoo!?
> > > > > Faith Hill <http://faith.yahoo.com> - Exclusive
> > > > Performances, Videos, &
> > > > > more
> > > > > faith.yahoo.com <http://faith.yahoo.com>
> > > > >
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > >
> >
> >
> >
> > Ethan Galstad,
> > Nagios Developer
> > ---
> > Email: nagios at nagios.org
> > Website: http://www.nagios.org
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: viaVerio will pay you up to
> > $1,000 for every account that you consolidate with us.
> > http://ad.doubleclick.net/clk;4749864;7604308;v?
> > http://www.viaverio.com/consolidator/osdn.cfm
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay you up to
> $1,000 for every account that you consolidate with us.
> http://ad.doubleclick.net/clk;4749864;7604308;v?
> http://www.viaverio.com/consolidator/osdn.cfm
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
More information about the Users
mailing list