Xymon Mailing List Archive search

Provide restricted view to default users

16 messages in this thread

list L.M.J · Tue, 28 Apr 2009 13:38:00 +0200 ·
Hi,

  I would like to know if it's possible to provide a restricted view to my
colleagues : for example only a couple of subpages. Is it possible ? Where
I have to look ?

  Thanks by advance,
list Buchan Milne · Tue, 28 Apr 2009 14:35:32 +0200 ·
quoted from L.M.J
On Tuesday 28 April 2009 13:38:00 L.M.J wrote:
Hi,

  I would like to know if it's possible to provide a restricted view to my
colleagues : for example only a couple of subpages. Is it possible ?
Sure.
Where
I have to look ?
Documentation for your web server.

However, you asked about subpages, to which this does apply, but if users can 
guess hostnames, they may be able to see data for other servers via the CGIs.
list L.M.J · Tue, 28 Apr 2009 19:21:09 +0200 ·
Le Tue, 28 Apr 2009 14:35:32 +0200,
Buchan Milne <user-9b139aff4dec@xymon.invalid> a écrit :
Documentation for your web server.
Wow, that's a nice useless answer! Well done Buchan but thanks anyway.
My Hobbit runs with Kerberos restricted access, I know how to deal with web server restriction, this is
clearly not the subject of my post. If Hobbit does not have a limited view option, then, just say it, I will
deal with that and I will still use it...

 Any smart help is still welcome! Thank you
list Greg L Hubbard · Tue, 28 Apr 2009 13:16:03 -0500 ·
Don't throw rocks at a valuable contributor if they do not lead you by the hand to the specific answer that you seek.  This is not the Jedi way.

At present Hobbit/Xymon has no concept of "users" or "user restrictions".  I guess you can take it from here?

GLH
quoted from L.M.J

-----Original Message-----
From: L.M.J [mailto:user-78bb6d5d9024@xymon.invalid] 
Sent: Tuesday, April 28, 2009 12:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Provide restricted view to default users

Le Tue, 28 Apr 2009 14:35:32 +0200,
Buchan Milne <user-9b139aff4dec@xymon.invalid> a écrit :
Documentation for your web server.
Wow, that's a nice useless answer! Well done Buchan but thanks anyway.
My Hobbit runs with Kerberos restricted access, I know how to deal with web server restriction, this is clearly not the subject of my post. If Hobbit does not have a limited view option, then, just say it, I will deal with that and I will still use it...

 Any smart help is still welcome! Thank you
list Malcolm Hunter · Tue, 28 Apr 2009 20:25:31 +0200 ·
quoted from Greg L Hubbard
Don't throw rocks at a valuable contributor if they do not lead you by the
hand to the specific answer that you seek.  This is not the Jedi way.

At present Hobbit/Xymon has no concept of "users" or "user restrictions". 
I guess you can take it from here?
My response to such a rude individual as LMJ would be a big fat /dev/null. If he wants help then he should at least be civil!

Malcolm


-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
list Jim Smith · Tue, 28 Apr 2009 12:33:37 -0600 ·
Ditto for me!

Jim Smith
quoted from Malcolm Hunter


-----Original Message-----
From: Malcolm Hunter [mailto:user-b3e590ffeb6d@xymon.invalid] 
Sent: Tuesday, April 28, 2009 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: RE: [hobbit] Provide restricted view to default users
Don't throw rocks at a valuable contributor if they do not lead you by the
hand to the specific answer that you seek.  This is not the Jedi way.

At present Hobbit/Xymon has no concept of "users" or "user restrictions". 
I guess you can take it from here?
My response to such a rude individual as LMJ would be a big fat /dev/null. If he wants help then he should at least be civil!

Malcolm


-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
list L.M.J · Tue, 28 Apr 2009 21:49:12 +0200 ·
Le Tue, 28 Apr 2009 13:16:03 -0500,
quoted from Jim Smith
"Hubbard, Greg L" <user-d970b5e56ec9@xymon.invalid> a écrit :
At present Hobbit/Xymon has no concept of "users" or "user restrictions".  I guess you can take it from
here?
Well, thanks for this answer. Gonna forward the info to the concerned person.

  Best regards,

   LMJ
list L.M.J · Tue, 28 Apr 2009 21:58:30 +0200 ·
Le Tue, 28 Apr 2009 20:25:31 +0200,
quoted from Malcolm Hunter
"Malcolm Hunter" <user-b3e590ffeb6d@xymon.invalid> a écrit :
My response to such a rude individual as LMJ would be a big fat /dev/null. If he wants help then he should
at least be civil!
I guess I've been misunderstood (maybe my rusty English skills) but I don't see the
yet-another-useless-answer interested, it's a waste of time and disk space for all of us. The Greg Hubbard
answer looks perfect for me, don't you think?

Anyway, sorry for the `rude` attitude.

  Best regards,

    LMJ
list Ron Peters · Tue, 28 Apr 2009 15:12:27 -0700 ·
I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...
list Joost Deheer · Wed, 29 Apr 2009 09:33:38 +0200 ·
quoted from Buchan Milne
  I would like to know if it's possible to provide a 
restricted view to my colleagues : for example only a couple 
of subpages. Is it possible ? Where I have to look ?
If you want true user separation: Since most of the things (e.g. the info column) are done with shared cgi's, this is hard to implement. You'd have to hack the CGI script to implement this kind of functionality.

If a predefined summary page of only a subset of hosts is what you want (so you don't mind that people could view information on hosts not on that page if they know the name), then you could take a look at 'BUILDING ALTERNATE PAGESETS' subsection of the bbgen manpage.

Joost
list L.M.J · Wed, 29 Apr 2009 12:46:32 +0200 ·
quoted from Joost Deheer

On Wed, 29 Apr 2009 09:33:38 +0200, <user-2f9e177ba6f2@xymon.invalid> wrote:
  I would like to know if it's possible to provide a 
restricted view to my colleagues : for example only a couple 
of subpages. Is it possible ? Where I have to look ?
If you want true user separation: Since most of the things (e.g. the info
column) are done with shared cgi's, this is hard to implement. You'd have
to hack the CGI script to implement this kind of functionality.

If a predefined summary page of only a subset of hosts is what you want
(so you don't mind that people could view information on hosts not on
that
page if they know the name), then you could take a look at 'BUILDING
ALTERNATE PAGESETS' subsection of the bbgen manpage.
Thanks, I will definitely check on the Alternate pagesets if it could do
the trick. 

  Best regards,

     LMJ
list Ron Peters · Thu, 30 Apr 2009 09:31:36 -0700 ·
No answer so far so here's another question then.  How would I debug the server processing the 'client data'.  Really just looking at the 'df' data.  I've enabled both 'verbose' and 'debug' switches when starting the server and haven't found any issues.  I do see the correct entries in the hobbit.chk file.

Any thoughts on why this data isn't be graphed/displayed on the web page?
quoted from Ron Peters

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid] 
Sent: Tuesday, April 28, 2009 3:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Disk monitor issues

I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...
list Raymond Storer · Thu, 30 Apr 2009 13:58:49 -0400 ·
Ron, if your volume names have spaces or other "special" characters in them you may need to modify the code to account for them. I am no Linux or regex guru, but here is what I did in the 'hobbitclient-linux.sh' file (located in your hobbit client bin directory):

echo "[df]"
/usr/sbin/vdf | sed -e '/^[^    ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
s/SAN VM Storage 2/SAN_VM_Storage_2/g
s/SAN VM Storage 3/SAN_VM_Storage_3/g
s/SAN VM Storage 4/SAN_VM_Storage_4/g
s/Poseidon Local Storage/Poseidon_Local_Storage/g
s/SAN VM Storage/SAN_VM_Storage/g
s/SAN Storage 3/SAN_Storage_3/g
s/SAN Storage 2/SAN_Storage_2/g
s/SAN Storage 1/SAN_Storage_1/g
}'


Ray
quoted from Ron Peters

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Thursday, April 30, 2009 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Disk monitor issues

No answer so far so here's another question then.  How would I debug the server processing the 'client data'.  Really just looking at the 'df' data.  I've enabled both 'verbose' and 'debug' switches when starting the server and haven't found any issues.  I do see the correct entries in the hobbit.chk file.

Any thoughts on why this data isn't be graphed/displayed on the web page?

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Tuesday, April 28, 2009 3:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Disk monitor issues

I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...


CONFIDENTIALITY NOTICE:  This email and any attachments are for the
exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.
list Ron Peters · Thu, 30 Apr 2009 11:27:34 -0700 ·
Thanks.  Aside from local storage, the datastores are shared between all the servers involved and are exactly the same.  The odd part is that some clients display only local disk and others display all the disk.  I have compared the 'client data' text output from one client to the next and there is no difference.  All the disk is included in the text being sent to the hobbit server.  I just don't understand why the hobbit server would display/process some and not others.

Ron.
quoted from Raymond Storer

-----Original Message-----
From: Storer, Raymond [mailto:user-bbaa567d59bb@xymon.invalid] 
Sent: Thursday, April 30, 2009 10:59 AM
To: user-ae9b8668bcde@xymon.invalid
Cc: Peters, Ron
Subject: RE: Disk monitor issues

Ron, if your volume names have spaces or other "special" characters in them you may need to modify the code to account for them. I am no Linux or regex guru, but here is what I did in the 'hobbitclient-linux.sh' file (located in your hobbit client bin directory):

echo "[df]"
/usr/sbin/vdf | sed -e '/^[^    ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
s/SAN VM Storage 2/SAN_VM_Storage_2/g
s/SAN VM Storage 3/SAN_VM_Storage_3/g
s/SAN VM Storage 4/SAN_VM_Storage_4/g
s/Poseidon Local Storage/Poseidon_Local_Storage/g
s/SAN VM Storage/SAN_VM_Storage/g
s/SAN Storage 3/SAN_Storage_3/g
s/SAN Storage 2/SAN_Storage_2/g
s/SAN Storage 1/SAN_Storage_1/g
}'


Ray

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Thursday, April 30, 2009 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Disk monitor issues

No answer so far so here's another question then.  How would I debug the server processing the 'client data'.  Really just looking at the 'df' data.  I've enabled both 'verbose' and 'debug' switches when starting the server and haven't found any issues.  I do see the correct entries in the hobbit.chk file.

Any thoughts on why this data isn't be graphed/displayed on the web page?

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Tuesday, April 28, 2009 3:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Disk monitor issues

I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...


CONFIDENTIALITY NOTICE:  This email and any attachments are for the
exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.
list Dominique Frise · Fri, 01 May 2009 08:15:44 +0200 ·
quoted from Ron Peters
Storer, Raymond wrote:
Ron, if your volume names have spaces or other "special" characters in them you may need to modify the code to account for them. I am no Linux or regex guru, but here is what I did in the 'hobbitclient-linux.sh' file (located in your hobbit client bin directory):

echo "[df]"
/usr/sbin/vdf | sed -e '/^[^    ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
s/SAN VM Storage 2/SAN_VM_Storage_2/g
s/SAN VM Storage 3/SAN_VM_Storage_3/g
s/SAN VM Storage 4/SAN_VM_Storage_4/g
s/Poseidon Local Storage/Poseidon_Local_Storage/g
s/SAN VM Storage/SAN_VM_Storage/g
s/SAN Storage 3/SAN_Storage_3/g
s/SAN Storage 2/SAN_Storage_2/g
s/SAN Storage 1/SAN_Storage_1/g
}'


Ray

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Thursday, April 30, 2009 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Disk monitor issues

No answer so far so here's another question then.  How would I debug the server processing the 'client data'.  Really just looking at the 'df' data.  I've enabled both 'verbose' and 'debug' switches when starting the server and haven't found any issues.  I do see the correct entries in the hobbit.chk file.

Any thoughts on why this data isn't be graphed/displayed on the web page?

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Tuesday, April 28, 2009 3:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Disk monitor issues

I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...
Looking at your disk values, the df command you use is probably not
correct. Xymon need values in Kbytes in order to graph them correctly.
Second point is that you need to tell vdf to unsplit its output.

We use this vdf command(through sudo) on our ESX3-servers:

echo "[df]"
    sudo /usr/sbin/vdf -P | egrep -v 
"\/vmfs\/devices|none|tmpfs|shmfs|unknown|iso9660"

Dominique
list Ron Peters · Mon, 11 May 2009 12:26:25 -0700 ·
quoted from Dominique Frise
-----Original Message-----
From: Dominique Frise [mailto:user-78ab6673b600@xymon.invalid] 
Sent: Thursday, April 30, 2009 11:16 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] RE: Disk monitor issues

Storer, Raymond wrote:
Ron, if your volume names have spaces or other "special" characters in them you may need to modify the code to account for them. I am no Linux or regex guru, but here is what I did in the 'hobbitclient-linux.sh' file (located in your hobbit client bin directory):

echo "[df]"
/usr/sbin/vdf | sed -e '/^[^    ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
s/SAN VM Storage 2/SAN_VM_Storage_2/g
s/SAN VM Storage 3/SAN_VM_Storage_3/g
s/SAN VM Storage 4/SAN_VM_Storage_4/g
s/Poseidon Local Storage/Poseidon_Local_Storage/g
s/SAN VM Storage/SAN_VM_Storage/g
s/SAN Storage 3/SAN_Storage_3/g
s/SAN Storage 2/SAN_Storage_2/g
s/SAN Storage 1/SAN_Storage_1/g
}'


Ray

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Thursday, April 30, 2009 12:32 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] RE: Disk monitor issues

No answer so far so here's another question then.  How would I debug the server processing the 'client data'.  Really just looking at the 'df' data.  I've enabled both 'verbose' and 'debug' switches when starting the server and haven't found any issues.  I do see the correct entries in the hobbit.chk file.

Any thoughts on why this data isn't be graphed/displayed on the web page?

-----Original Message-----
From: Peters, Ron [mailto:user-30d0254dcc64@xymon.invalid]
Sent: Tuesday, April 28, 2009 3:12 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Disk monitor issues

I've been making some updates to the monitoring of our vmware ESX servers and wanted to monitor the disk usage of the datastores attached to the servers.  So, I modified the hobbitclient-linux.sh file and changed the [df] section from using df to using the vmware command vdf.

Now, the 'client data' link for that host on the hobbit/xymon server displays the correct output:

[df]
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log
/vmfs/devices         4.8T     0  4.8T   0% /vmfs/devices
/vmfs/volumes/044c399a-7d915ca5 403G  223G  179G  55% /vmfs/volumes/Templates-NFS
/vmfs/volumes/491c687d-e3ad8cc1-fd39-00188b4010b4 127G  561M  126G   0% /vmfs/volumes/esxhost.local
/vmfs/volumes/49b9b542-21c7ce88-f87f-00188b4010b2 491G  354G  137G  72% /vmfs/volumes/DMZ-01-SAN8-128
/vmfs/volumes/49bebc3c-29931b02-3380-00188b4010b2 491G  353G  138G  71% /vmfs/volumes/DMZ-02-SAN8-97
/vmfs/volumes/49bfe3b7-3c37dcbc-65a2-00188b4010b2 491G  563M  491G   0% /vmfs/volumes/DMZ-03-SAN8-77

However, the actual page displaying the filesystem usage and rrd graph only displays local disk:

Tue Apr 28 14:56:51 PDT 2009 - Filesystems OK

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             4.9G  1.7G  3.0G  36% /
/dev/sda1              99M   28M   67M  30% /boot
/dev/sda5             2.0G  364M  1.5G  20% /var/log


What's also very odd is that I have roughly a dozen of these types of boxes and some of them report the full output on the web page but most don't.

Why would the text data be correct, but the web data be different or a sub-set?  All the clients are getting their full data to the server.  I haven't seen any errors on the server logs relating to specific clients.

Thoughts?

Thanks again...
Looking at your disk values, the df command you use is probably not
correct. Xymon need values in Kbytes in order to graph them correctly.
Second point is that you need to tell vdf to unsplit its output.

We use this vdf command(through sudo) on our ESX3-servers:

echo "[df]"
    sudo /usr/sbin/vdf -P | egrep -v 
"\/vmfs\/devices|none|tmpfs|shmfs|unknown|iso9660"

Dominique


The client isn't the problem here.  The script is gathering the data correctly on all of my ESX hosts.  The problem is that the server isn't displaying the datastore graphs for all the hosts, only some of them.  This is odd since all of them are running the same script and are reporting the data the same.

Why would the server only process data for some hosts and not others?