Xymon Mailing List Archive search

XYMWEBHIKEY question redux

10 messages in this thread

list James Louis · Thu, 14 Jun 2012 13:20:24 -0500 ·
Not having received one reply on this question I am resending:

Hi Everyone,

In trying to resolve a trends graph issue it was stated to "set the
XYMWEBHIKEY" variable. I haven't been able to find documentation on what
and where this is set at. I tried to set it to TRUE in xymonserver.cfg but
that doesn't seem to do anything. If anyone could expand on what was meant
by setting this value that would be great.

Thanks,

Jim

If anyone can help it would be greatly appreciated!!


-- 
To be is to do = Immanuel Kant
To do is to be = Descartes.
Do be do be do = Frank Sinatra
list Wilfrid Beauchaine · Thu, 14 Jun 2012 21:43:11 +0200 ·
Hi,

could you describe your "trends graph issue" ...

Regards,
Wilfrid
quoted from James Louis


Le 2012-06-14 20:20, James Louis a écrit :
Not having received one reply on this question I am resending:

Hi Everyone,

In trying to resolve a trends graph issue it was stated to "set the
XYMWEBHIKEY" variable. I havent been able to find documentation on
what
 and where this is set at. I tried to set it to TRUE in
xymonserver.cfg but
that doesnt seem to do anything. If anyone could expand on what was
meant
by setting this value that would be great.

Thanks,

Jim

If anyone can help it would be greatly appreciated!!
list Tim McCloskey · Thu, 14 Jun 2012 13:05:24 -0700 ·
Yes -- please provide some more detail.  I think that var is intended to be used in the url query string but more detail may help....
quoted from Wilfrid Beauchaine

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of wbeauchaine [user-ee69b0db7015@xymon.invalid]
Sent: Thursday, June 14, 2012 12:43 PM
To: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

Hi,

could you describe your "trends graph issue" ...

Regards,
Wilfrid


Le 2012-06-14 20:20, James Louis a écrit :
Not having received one reply on this question I am resending:

Hi Everyone,

In trying to resolve a trends graph issue it was stated to "set the
XYMWEBHIKEY" variable. I havent been able to find documentation on
what
 and where this is set at. I tried to set it to TRUE in
xymonserver.cfg but
that doesnt seem to do anything. If anyone could expand on what was
meant
by setting this value that would be great.

Thanks,

Jim

If anyone can help it would be greatly appreciated!!
list Jim Louis · Thu, 14 Jun 2012 15:43:01 -0500 ·
Thanks for getting back...

Basically I had no graphs available in the trends column. But now I have them. Doing some research on the no graphs in showing in trends (actually got a blank page) I found the suggestion to set the XYMWEBHIKEY to TRUE.

No, I don't know why they are showing up now. Maybe because I just moved my xymon installation to a new server?!?

Jim
quoted from Tim McCloskey

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of wbeauchaine
Sent: Thursday, June 14, 2012 2:43 PM
To: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

Hi,

could you describe your "trends graph issue" ...

Regards,
Wilfrid


Le 2012-06-14 20:20, James Louis a écrit :
Not having received one reply on this question I am resending:

Hi Everyone,

In trying to resolve a trends graph issue it was stated to "set the
XYMWEBHIKEY" variable. I havent been able to find documentation on
what  and where this is set at. I tried to set it to TRUE in
xymonserver.cfg but that doesnt seem to do anything. If anyone could
expand on what was meant by setting this value that would be great.

Thanks,

Jim

If anyone can help it would be greatly appreciated!!
list Henrik Størner · Fri, 15 Jun 2012 07:32:48 +0200 ·
quoted from Jim Louis
On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a few of the web template files, where it ends up being replaced with the hostname of the host being shown on e.g. a history status page.
quoted from Jim Louis
No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't know you had by installing a new server.


Regards,
Henrik
list James Louis · Fri, 15 Jun 2012 08:32:15 -0500 ·
Ok. The problem appears when I try to change the time frame in Trends. For
instance selecting "Show Iast 2 days" I then get a blank screen with just
the words "no such host".

I know I'm getting this because I use "NAME=blah.blah" in hosts.cfg. What
can I do besides not using the NAME parameter to get these trend graphs to
show?

Thanks,

Jim
quoted from Henrik Størner

On Fri, Jun 15, 2012 at 12:32 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a
few of the web template files, where it ends up being replaced with the
hostname of the host being shown on e.g. a history status page.

 No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't
know you had by installing a new server.


Regards,
Henrik
______________________________**

Xymon at xymon.com<
quoted from James Louis
-- 
To be is to do = Immanuel Kant
To do is to be = Descartes.
Do be do be do = Frank Sinatra
list Tim McCloskey · Fri, 15 Jun 2012 09:30:24 -0700 ·
Jim,

Are you using NAME=blah, or NAME:blah?  Forgive me, I'm still on vers 4.2 (yeah, I know...) - for me it's NAME:blah which works fine.  I don't know if the syntax changed in more recent versions or if NAME= was always valid in adition to NAME:.


I use "NAME:some-hostname-other-than-the-one-reported-by-`hostname`-on-the-client" for some of the hosts I monitor.  For example:

1.2.3.4        foo.foo.foo     # NAME:foo 

If I look at the trends column of one of these hosts:

http://xymonserver/cgi-bin/bb-hostsvc.sh?HOST=foo.foo.foo&SERVICE=trends

I will see the URL includes the hostname as provided by the output of `hostname` on the client.  Actually, it is from the runclient.sh script MACHINEDOTS= var.
The display name on the normal page will show up as foo, do you have similar results?

Without seing the setup I can't say for sure what is wrong.  Have you changed any of the MACHINEDOTS vars manually, what is showing up in ghost clients, if anything?  Do you have the raw RRD data files from the client, if so, what is the directory name they are stored in?  hostname or what you set as NAME.

Afraid I can't offer too much but If it where me I would isolate one client and see what setting that client up in hosts with the actual name as reported by MACHINEDOTS.

Tim
quoted from Henrik Størner


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Henrik Størner [user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, June 14, 2012 10:32 PM
To: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a
few of the web template files, where it ends up being replaced with the
hostname of the host being shown on e.g. a history status page.
No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't
know you had by installing a new server.


Regards,
Henrik
list James Louis · Fri, 15 Jun 2012 11:52:29 -0500 ·
My mistake. I'm using NAME:blah.blah

10.200.0.75   xymon.peoplenetonline.com      # NAME:xymon bbd
http://xymon.peoplenetonline.com/

So my trends page when I ask for a change in Trends period returns this URL:

http://xymon.peoplenetonline.com/xymon-cgi/svcstatus.sh?HOST=xymon&SERVICE=trends&backdays=2&backhours=&backmins=&backsecs=&FROMTIME=&TOTIME=

I can manually change HOST=xymon.peoplenetonline.com in the URL and it
returns correctly.

My understanding from previous searching is that HOST is using the short
name of the server because I'm using the NAME option in hosts.cfg. I'm
asking if there is a setting to ignore the NAME option when changing the
Trends period.

Hope that helps.
quoted from Tim McCloskey

Thanks,

Jim

On Fri, Jun 15, 2012 at 11:30 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Jim,

Are you using NAME=blah, or NAME:blah?  Forgive me, I'm still on vers 4.2
(yeah, I know...) - for me it's NAME:blah which works fine.  I don't know
if the syntax changed in more recent versions or if NAME= was always valid
in adition to NAME:.


I use
"NAME:some-hostname-other-than-the-one-reported-by-`hostname`-on-the-client"
for some of the hosts I monitor.  For example:

1.2.3.4        foo.foo.foo     # NAME:foo

If I look at the trends column of one of these hosts:

http://xymonserver/cgi-bin/bb-hostsvc.sh?HOST=foo.foo.foo&SERVICE=trends

I will see the URL includes the hostname as provided by the output of
`hostname` on the client.  Actually, it is from the runclient.sh script
MACHINEDOTS= var.
The display name on the normal page will show up as foo, do you have
similar results?

Without seing the setup I can't say for sure what is wrong.  Have you
changed any of the MACHINEDOTS vars manually, what is showing up in ghost
clients, if anything?  Do you have the raw RRD data files from the client,
if so, what is the directory name they are stored in?  hostname or what you
set as NAME.

Afraid I can't offer too much but If it where me I would isolate one
client and see what setting that client up in hosts with the actual name as
reported by MACHINEDOTS.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of
Henrik Størner [user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, June 14, 2012 10:32 PM
To: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a
few of the web template files, where it ends up being replaced with the
hostname of the host being shown on e.g. a history status page.
No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't
know you had by installing a new server.


Regards,
Henrik

-- 
To be is to do = Immanuel Kant
To do is to be = Descartes.
Do be do be do = Frank Sinatra
list Tim McCloskey · Fri, 15 Jun 2012 10:30:56 -0700 ·
I don't have the proper version to test this.... (svcstatus).  Someone else will likely have the answer.  

Good Luck.
quoted from James Louis

From: James Louis [user-518fefde45bd@xymon.invalid]
Sent: Friday, June 15, 2012 9:52 AM
To: Tim McCloskey
Cc: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

My mistake. I'm using NAME:blah.blah

10.200.0.75   xymon.peoplenetonline.com<http://xymon.peoplenetonline.com>;      # NAME:xymon bbd http://xymon.peoplenetonline.com/
quoted from James Louis

So my trends page when I ask for a change in Trends period returns this URL:

http://xymon.peoplenetonline.com/xymon-cgi/svcstatus.sh?HOST=xymon&SERVICE=trends&backdays=2&backhours=&backmins=&backsecs=&FROMTIME=&TOTIME=

I can manually change HOST=xymon.peoplenetonline.com<http://xymon.peoplenetonline.com>; in the URL and it returns correctly.
quoted from James Louis

My understanding from previous searching is that HOST is using the short name of the server because I'm using the NAME option in hosts.cfg. I'm asking if there is a setting to ignore the NAME option when changing the Trends period.

Hope that helps.

Thanks,

Jim

On Fri, Jun 15, 2012 at 11:30 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid<mailto:user-440820cc07d6@xymon.invalid>> wrote:
Jim,

Are you using NAME=blah, or NAME:blah?  Forgive me, I'm still on vers 4.2 (yeah, I know...) - for me it's NAME:blah which works fine.  I don't know if the syntax changed in more recent versions or if NAME= was always valid in adition to NAME:.


I use "NAME:some-hostname-other-than-the-one-reported-by-`hostname`-on-the-client" for some of the hosts I monitor.  For example:

1.2.3.4        foo.foo.foo     # NAME:foo

If I look at the trends column of one of these hosts:

http://xymonserver/cgi-bin/bb-hostsvc.sh?HOST=foo.foo.foo&SERVICE=trends

I will see the URL includes the hostname as provided by the output of `hostname` on the client.  Actually, it is from the runclient.sh script MACHINEDOTS= var.
The display name on the normal page will show up as foo, do you have similar results?

Without seing the setup I can't say for sure what is wrong.  Have you changed any of the MACHINEDOTS vars manually, what is showing up in ghost clients, if anything?  Do you have the raw RRD data files from the client, if so, what is the directory name they are stored in?  hostname or what you set as NAME.

Afraid I can't offer too much but If it where me I would isolate one client and see what setting that client up in hosts with the actual name as reported by MACHINEDOTS.

Tim


From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Henrik Størner [user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>]
Sent: Thursday, June 14, 2012 10:32 PM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] XYMWEBHIKEY question redux

On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a
few of the web template files, where it ends up being replaced with the
hostname of the host being shown on e.g. a history status page.
No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't
know you had by installing a new server.


Regards,
Henrik


--
To be is to do = Immanuel Kant
To do is to be = Descartes.
Do be do be do = Frank Sinatra
list Tim McCloskey · Fri, 15 Jun 2012 13:49:31 -0700 ·
Well, I now have a test box with 4.3.7 :)  I guess it was about time....  Did not get to spend too much time today but was able to replicate the issue reported by Jim.  

Jim, you have the source code and the environment, you should be able to fully test the following.  The cookie value of host contains the (fqdn in this case).  

By using the token you asked about you should be able to get your trends to pass the correct host name to the trends/time selection gizmo. 

Just edit the live trends_form and replace the value as follows.

server/web/trends_form

     11        <FORM METHOD="GET" ACTION="&SCRIPT_NAME">
     12           <!--<INPUT TYPE="HIDDEN" NAME="HOST" VALUE="&XYMWEBHOST">-->
     13           <INPUT TYPE="HIDDEN" NAME="HOST" VALUE="&XYMWEBHIKEY">
     14           <INPUT TYPE="HIDDEN" NAME="SERVICE" VALUE="&XYMWEBSVC">


Good Luck, 

Tim
quoted from Tim McCloskey


From: Tim McCloskey
Sent: Friday, June 15, 2012 10:30 AM
To: xymon at xymon.com
Subject: RE: [Xymon] XYMWEBHIKEY question redux

I don't have the proper version to test this.... (svcstatus).  Someone else will likely have the answer.

Good Luck.

From: James Louis [user-518fefde45bd@xymon.invalid]
Sent: Friday, June 15, 2012 9:52 AM
To: Tim McCloskey
Cc: xymon at xymon.com
Subject: Re: [Xymon] XYMWEBHIKEY question redux

My mistake. I'm using NAME:blah.blah

10.200.0.75   xymon.peoplenetonline.com<http://xymon.peoplenetonline.com>;      # NAME:xymon bbd http://xymon.peoplenetonline.com/

So my trends page when I ask for a change in Trends period returns this URL:

http://xymon.peoplenetonline.com/xymon-cgi/svcstatus.sh?HOST=xymon&SERVICE=trends&backdays=2&backhours=&backmins=&backsecs=&FROMTIME=&TOTIME=

I can manually change HOST=xymon.peoplenetonline.com<http://xymon.peoplenetonline.com>; in the URL and it returns correctly.

My understanding from previous searching is that HOST is using the short name of the server because I'm using the NAME option in hosts.cfg. I'm asking if there is a setting to ignore the NAME option when changing the Trends period.

Hope that helps.

Thanks,

Jim

On Fri, Jun 15, 2012 at 11:30 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid<mailto:user-440820cc07d6@xymon.invalid>> wrote:
Jim,

Are you using NAME=blah, or NAME:blah?  Forgive me, I'm still on vers 4.2 (yeah, I know...) - for me it's NAME:blah which works fine.  I don't know if the syntax changed in more recent versions or if NAME= was always valid in adition to NAME:.


I use "NAME:some-hostname-other-than-the-one-reported-by-`hostname`-on-the-client" for some of the hosts I monitor.  For example:

1.2.3.4        foo.foo.foo     # NAME:foo

If I look at the trends column of one of these hosts:

http://xymonserver/cgi-bin/bb-hostsvc.sh?HOST=foo.foo.foo&SERVICE=trends

I will see the URL includes the hostname as provided by the output of `hostname` on the client.  Actually, it is from the runclient.sh script MACHINEDOTS= var.
The display name on the normal page will show up as foo, do you have similar results?

Without seing the setup I can't say for sure what is wrong.  Have you changed any of the MACHINEDOTS vars manually, what is showing up in ghost clients, if anything?  Do you have the raw RRD data files from the client, if so, what is the directory name they are stored in?  hostname or what you set as NAME.

Afraid I can't offer too much but If it where me I would isolate one client and see what setting that client up in hosts with the actual name as reported by MACHINEDOTS.

Tim


From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Henrik Størner [user-ce4a2c883f75@xymon.invalid<mailto:user-ce4a2c883f75@xymon.invalid>]
Sent: Thursday, June 14, 2012 10:32 PM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] XYMWEBHIKEY question redux

On 14-06-2012 22:43, Jim Louis wrote:
Basically I had no graphs available in the trends column. But now I
have them. Doing some research on the no graphs in showing in trends
(actually got a blank page) I found the suggestion to set the
XYMWEBHIKEY to TRUE.
Sorry, but that doesn't make sense. XYMWEBHIKEY is a token used inside a
few of the web template files, where it ends up being replaced with the
hostname of the host being shown on e.g. a history status page.
No, I don't know why they are showing up now. Maybe because I just
moved my xymon installation to a new server?!?
Much more likely, you probably fixed the configuration issue you didn't
know you had by installing a new server.


Regards,
Henrik


--
To be is to do = Immanuel Kant
To do is to be = Descartes.
Do be do be do = Frank Sinatra