Xymon Mailing List Archive search

How does the vmstat.rrd file get populated?

list Greg Shea
Thu, 30 Jun 2011 09:40:49 -0400
Message-Id: <user-a5fd8e75fe2d@xymon.invalid>

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