Question about the data message format and rrd
Dear All,
What format must a data message have to get rrd data from a test into a graphic ? I have been testing this functionality but have not been succesfull so far.
The test i have made counts the total number of users on the system according to there first three characters of there username.
Like:
abc : 20 def : 15 ghi : 0
So far i've used the ncv option to generate a statistical graphic over time but now i would like to use the data message format.
I've constructed the following data message:
[statistics.rrd] DS:abc:GAUGE:600:0:U 20 DS:def:GAUGE:600:0:U 15 DS:ghi:GAUGE:600:0:U 0
From the client the message will be send with:
"data application.vmware.local.trends cat /tmp/message"
Result: Sometimes the file statistics.rrd in ~/data/rrd/application.vmware.local gets an update sometimes not. And if it gets filled or created the value will be empty. This is determent by using 'rrdtool dump statistics.rrd'
The version is xymon 4.3.12.
What do i do wrong ?
Met vriendelijke groet,
Klaas D. Eenkhoorn
------------------------- Disclaimer ---------------------------- De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming kregen dit bericht te lezen. Kennisneming door anderen is niet toegestaan. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en binnen het bereik van een geheimhoudingsplicht en/of een verschoningsrecht vallen. Indien dit e-mailbericht niet voor u bestemd is, wordt u verzocht de afzender daarover onmiddellijk te informeren en het e-mailbericht (en bijlagen) te vernietigen. -----------------------------------------------------------------
On 3 April 2014 17:10, Eenkhoorn, (Klaas) <klaas.eenkhoorn at vtspn.nl> wrote:
I've constructed the following data message:
[statistics.rrd] DS:abc:GAUGE:600:0:U 20 DS:def:GAUGE:600:0:U 15 DS:ghi:GAUGE:600:0:U 0
Looks OK to me.
From the client the message will be send with:
"data application.vmware.local.trends
cat /tmp/message"
I think the contents of /tmp/message needs to start on a newline.
Result: Sometimes the file statistics.rrd in ~/data/rrd/application.vmware.local gets an update sometimes not.
The man page for xymond_rrd states that it caches updates to RRD files for up to 30 minutes. I've found that refreshing a graph in the web interface seems to cause xymond_rrd to flush its cache and update the RRD files. You can run xymond_rrd with a "--no-cache" parameter to disable the cache.
And if it gets filled or created the value will be empty. This is determent by using 'rrdtool dump statistics.rrd'
RRD needs a few samples without intervals that are too large, otherwise it will throw away such untrustworthy data.
J
participants (2)
-
jlaidman@rebel-it.com.au
-
klaas.eenkhoorn@vtspn.nl