Xymon Mailing List Archive search

How does the vmstat.rrd file get populated?

5 messages in this thread

list Greg Shea · Wed, 29 Jun 2011 14:38:10 -0400 ·
Hi all,

I have added 2 channel processes to my Xymon 4.3.3 instance, that reads data from the status and data channels
and writes that data to a file for integration with another product.  I have a Solaris 10 client running a standard build
no bottom-feeders and I have a vmstat.rrd file, but I'm not seeing the vmstat data off my 2 channel processors.

How does the standard Xymon client send the file $XYMONHOME/tmp/xymon_vmstat.hostname.12558 to the
server?  I'm using Henrik's simple shell script and the --processor option on the rrd channels

xymon     8312  8291  0 Jun14 ?        00:00:31 xymond_channel --channel=data --log=/var/log/xymon/rrd-data.log xymond_rrd --rrddir=/apps/xymon/data/rrd --processor=/apps/xymon/server/ext/rrdfeeder.sh
xymon     8566  8312  0 Jun14 ?        00:02:50 xymond_rrd --rrddir=/apps/xymon/data/rrd --processor=/apps/xymon/server/ext/rrdfeeder.sh
xymon    10987  5997  0 14:36 pts/2    00:00:00 grep rrd
xymon    28358  8291  0 Jun17 ?        00:03:20 xymond_channel --channel=status --log=/var/log/xymon/rrd-status.log xymond_rrd --rrddir=/apps/xymon/data/rrd --processor=/apps/xymon/server/ext/rrdfeeder.sh
xymon    28359 28358  0 Jun17 ?        00:11:16 xymond_rrd --rrddir=/apps/xymon/data/rrd --processor=/apps/xymon/server/ext/rrdfeeder.sh

If I use the bottom feeder scripts, vmstat gets written to my output file.

Thanks and regards
Greg Shea
EMC Corporation
list Henrik Størner · Wed, 29 Jun 2011 21:29:41 +0200 ·
quoted from Greg Shea
How does the standard Xymon client send the file
$XYMONHOME/tmp/xymon_vmstat.hostname.12558 to the
server?
It is pasted into the normal client-message file. See the end of the 
OS-specific "xymonclient-OS.sh" script.

Regards,
Henrik
list Greg Shea · Wed, 29 Jun 2011 15:58:30 -0400 ·
Ok, I guess I presented the question wrong.
So if it's a standard client message shouldn't I see the RRD data if I'm listening in on both status and data channels on the server?  

I'm using the data from the rrd channels to feed into another product, but I'm not seeing vmstat from the standard client.
There's an RRD file and a graph on the trends page showing vmstat CPU utilization but I'm not capturing that data in my file.

I have a number of older clients that still use the bottom feeder script and I'm capturing that data.

Thanks
Greg Shea
EMC Corporation
list Buchan Milne · Thu, 30 Jun 2011 11:46:02 +0200 ·
quoted from Greg Shea
On Wednesday, 29 June 2011 21:58:30 user-028bf2df2227@xymon.invalid wrote:
Ok, I guess I presented the question wrong.
So if it's a standard client message shouldn't I see the RRD data if I'm
listening in on both status and data channels on the server?
You should.
quoted from Greg Shea
I'm using the data from the rrd channels to feed into another product, but
I'm not seeing vmstat from the standard client. There's an RRD file and a
graph on the trends page showing vmstat CPU utilization but I'm not
capturing that data in my file.
hobbitd_client will get the client data, hobbitd_client.c's 
unix_vmstat_report() function pushes the vmstat data to the data channel as 
$host.vmstat.

If I run 'hobbitd_client --channel=data cat' I see:

@@data#12492|1309426824.189933|127.0.0.1||tiger.ranger.dnsalias.com|vmstat
data tiger,ranger,dnsalias,com.vmstat
linux
 2  0 208308 139604  75568 694120    0    0    39    93 8291 10748 25 15 59  1
@@

Regards,
Buchan
list Greg Shea · Thu, 30 Jun 2011 09:40:49 -0400 ·
quoted from Buchan Milne
On Wednesday, 29 June 2011 21:58:30 user-028bf2df2227@xymon.invalid wrote:
Ok, I guess I presented the question wrong.
So if it's a standard client message shouldn't I see the RRD data if I'm
listening in on both status and data channels on the server?
You should.
I'm using the data from the rrd channels to feed into another product, but
I'm not seeing vmstat from the standard client. There's an RRD file and a
graph on the trends page showing vmstat CPU utilization but I'm not
capturing that data in my file.
hobbitd_client will get the client data, hobbitd_client.c's 
unix_vmstat_report() function pushes the vmstat data to the data channel as 
$host.vmstat.

If I run 'hobbitd_client --channel=data cat' I see:

@@data#12492|1309426824.189933|127.0.0.1||tiger.ranger.dnsalias.com|vmstat
data tiger,ranger,dnsalias,com.vmstat
linux
2  0 208308 139604  75568 694120    0    0    39    93 8291 10748 25 15 59  1
@@
Yes I understand, but that's the plain data I'm looking at the RRD data, but now I'm wondering if I can't
have the 2 channels trying to write to the same file.  My test yields this as I had to adjust to get the
RRD data.  The script rf.sh just does exec cat
..//bin/xymond_channel --channel=data  xymond_rrd --processor=./rf.sh | egrep -I hostname

148944:3553690822:24878087:12250601:334432899:287987297:43734:236762 hostname netstat
bytesSent:bytesReceived 1309440785:0:0 hostname ifstat fjgi0
bytesSent:bytesReceived 1309440785:47813262:6315189681 hostname ifstat fjgi1
bytesSent:bytesReceived 1309440785:241739617836:177888219396 hostname ifstat fjgi2
cpu_r:cpu_b:cpu_w:mem_swap:mem_free:mem_re:mem_mf:mem_pi:mem_po:sr:cpu_int:cpu_syc:cpu_csw:cpu_usr:cpu_sys:cpu_idl 1309440785:0:0:0:7760928:6395480:7:44:0:0:0:241:3773:2452:3:1:96 hostname vmstat

So I can verify I'm getting the RRD data, but again I don't think I can write the data from 2 channels into 1 file,
At least that's what it's looking like.  I don't remember seeing ifstat data in the other application I'm sending
this data to.

I will post back with my results
Thanks all for being a sounding board

Greg Shea
EMC Corporation