NCV Graphing
list Adam Goryachev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to follow the Help -> Custom Graphs instructions as follows:
I've written a script to collect data, asked hobbitclient to run it
regularly.
Checked that the data is arriving on the xymon server
backup.notme.org.au|temp|green||1237445672|1237515673|1237517473|0|0|xxx.xxx.xxx.xxx|-1|||Y
green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees)
sda : 38
sdb : 36
hobbitserver.cfg:TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,mysql=ncv,dnsnum=ncv,astnet=ncv,ups=ncv,temp=ncv"
Added this line to indicate that the numbers are absolute values, not
always increasing values (default of DERIVE)...
hobbitserver.cfg:NCV_temp="*:GAUGE"
Re-started the hobbit rrd processes, and eventually also re-started
xymon completely.
rrdtool dump shows this:
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 1237515898 </lastupdate> <!-- 2009-03-20 13:24:58
EST -->
<ds>
<name> sda </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> sdb </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
So, for some reason the values are not getting into the rrd files....
Note, I found that I previously had an entry in TEST2RRD for
temp=devmon, so I have removed that and deleted all the rrd files (for
temp) so that they would be re-created.
Could anyone advise what I might have done wrong/missed here?
Thanks,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknDADAACgkQGyoxogrTyiXesACgjm5OMDHyUVWEZL6G/dk33I+1
uDMAn3wHeDkD8r3ySgcnl45v++0Y8+5F
=8zMD
-----END PGP SIGNATURE-----
list Adam Goryachev
▸
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to follow the Help -> Custom Graphs instructions as follows:
I've written a script to collect data, asked hobbitclient to run it
regularly.
Checked that the data is arriving on the xymon server
backup.notme.org.au|temp|green||1237445672|1237515673|1237517473|0|0|xxx.xxx.xxx.xxx|-1|||Y
green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees)
sda : 38
sdb : 36
hobbitserver.cfg:TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,mysql=ncv,dnsnum=ncv,astnet=ncv,ups=ncv,temp=ncv"
Added this line to indicate that the numbers are absolute values, not
always increasing values (default of DERIVE)...
hobbitserver.cfg:NCV_temp="*:GAUGE"
Re-started the hobbit rrd processes, and eventually also re-started
xymon completely.
rrdtool dump shows this:
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 1237515898 </lastupdate> <!-- 2009-03-20 13:24:58
EST -->
<ds>
<name> sda </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> sdb </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
So, for some reason the values are not getting into the rrd files....
Note, I found that I previously had an entry in TEST2RRD for
temp=devmon, so I have removed that and deleted all the rrd files (for
temp) so that they would be re-created.
Could anyone advise what I might have done wrong/missed here?
Thanks,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknDEZcACgkQGyoxogrTyiXetACgvOuJSZgRouv/1e3bXt+gffpz
lYUAn2bprtUtN5wi3xUsJbI3incEMtlQ
=Dmfr
-----END PGP SIGNATURE-----
list Adam Goryachev
▸
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adam Goryachev wrote:
Hi,
I'm trying to follow the Help -> Custom Graphs instructions as follows:
I've written a script to collect data, asked hobbitclient to run it
regularly.
Checked that the data is arriving on the xymon server
backup.notme.org.au|temp|green||1237445672|1237515673|1237517473|0|0|xxx.xxx.xxx.xxx|-1|||Y
green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees)
sda : 38
sdb : 36
hobbitserver.cfg:TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,mysql=ncv,dnsnum=ncv,astnet=ncv,ups=ncv,temp=ncv"
Added this line to indicate that the numbers are absolute values, not
always increasing values (default of DERIVE)...
hobbitserver.cfg:NCV_temp="*:GAUGE"
Re-started the hobbit rrd processes, and eventually also re-started
xymon completely.
rrdtool dump shows this:
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 1237515898 </lastupdate> <!-- 2009-03-20 13:24:58
EST -->
<ds>
<name> sda </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> sdb </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
So, for some reason the values are not getting into the rrd files....
Note, I found that I previously had an entry in TEST2RRD for
temp=devmon, so I have removed that and deleted all the rrd files (for
temp) so that they would be re-created.
Could anyone advise what I might have done wrong/missed here?In addition to the above, after enableing --debug for the rrd I get this in the log: 2009-03-20 17:18:36 hobbitd_rrd: Got message 172312 @@status#172312|1237529916.645344|xxx.xxx.xxx.xxx||hostname.domain.com|temp|1237531716|green||green|1237424990|0||0||1237529620 2009-03-20 17:18:36 startpos 807580, fillpos 807580, endpos -1 2009-03-20 17:18:36 RRD update param 00: 'rrdupdate' 2009-03-20 17:18:36 RRD update param 01: '/var/lib/xymon/rrd/hostname.domain.com/temp.rrd' 2009-03-20 17:18:36 RRD update param 02: '-t' 2009-03-20 17:18:36 RRD update param 03: 'sda:sdb' 2009-03-20 17:18:36 RRD update param 04: '1237529916:39:39' So, to me, it looks like it should be working properly.... However, even this happens:
rrdupdate temp.rrd --template sda:sdb N:39:39 rrdtool dump temp.rrd |grep last_ds
<last_ds> UNKN </last_ds> <last_ds> UNKN </last_ds> So manually updating the RRD doesn't seem to work either.... Any suggestions would be very helpful
▸
Thanks, Adam -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknDNyYACgkQGyoxogrTyiX7qQCgmYinV+DtRRlXApKBV6x7JxnC
lX0AoMVtzNC+s1L4Nob+izm1wQAEIXNw
=UQl6
-----END PGP SIGNATURE-----
list Dominique Frise
▸
Adam Goryachev wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to follow the Help -> Custom Graphs instructions as follows:
I've written a script to collect data, asked hobbitclient to run it
regularly.
Checked that the data is arriving on the xymon server
backup.notme.org.au|temp|green||1237445672|1237515673|1237517473|0|0|xxx.xxx.xxx.xxx|-1|||Y
green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees)
sda : 38
sdb : 36
hobbitserver.cfg:TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JMS,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,snapmirr,snaplist,snapshot,if_load=devmon,mysql=ncv,dnsnum=ncv,astnet=ncv,ups=ncv,temp=ncv"
Added this line to indicate that the numbers are absolute values, not
always increasing values (default of DERIVE)...
hobbitserver.cfg:NCV_temp="*:GAUGE"
Re-started the hobbit rrd processes, and eventually also re-started
xymon completely.
rrdtool dump shows this:
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 1237515898 </lastupdate> <!-- 2009-03-20 13:24:58
EST -->
<ds>
<name> sda </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> sdb </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> UNKN </last_ds>
<value> 8.0460000000e+03 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
So, for some reason the values are not getting into the rrd files....
Note, I found that I previously had an entry in TEST2RRD for
temp=devmon, so I have removed that and deleted all the rrd files (for
temp) so that they would be re-created.
Could anyone advise what I might have done wrong/missed here?
Thanks,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknDADAACgkQGyoxogrTyiXesACgjm5OMDHyUVWEZL6G/dk33I+1
uDMAn3wHeDkD8r3ySgcnl45v++0Y8+5F
=8zMD
-----END PGP SIGNATURE-----
Have you got an EOL after the last value in your status message? $BB $BBDISP "status backup.notme.org.au.temp green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees) sda : 38 sdb : 36 " Dominique
list Buchan Milne
▸
On Friday 20 March 2009 05:46:31 Adam Goryachev wrote:
Hi, I'm trying to follow the Help -> Custom Graphs instructions as follows: I've written a script to collect data, asked hobbitclient to run it regularly. Checked that the data is arriving on the xymon server
backup.notme.org.au|temp|green||1237445672|1237515673|1237517473|0|0|xxx.xx
x.xxx.xxx|-1|||Y green Fri Mar 20 13:21:13 EST 2009 Temp GOOD (38 degrees)
sda : 38
sdb : 36
hobbitserver.cfg:TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,h
ttp=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apach
e,bind,sendmail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,b
bproxy,hobbitd,files,procs=processes,ports,clock,lines,ops,stats,cifs,JVM,JM
S,HitCache,Session,JDBCConn,ExecQueue,JTA,TblSpace,RollBack,MemReq,InvObj,sn
apmirr,snaplist,snapshot,if_load=devmon,mysql=ncv,dnsnum=ncv,astnet=ncv,ups=
ncv,temp=ncv"
▸
Added this line to indicate that the numbers are absolute values, not
always increasing values (default of DERIVE)...
hobbitserver.cfg:NCV_temp="*:GAUGE"
Re-started the hobbit rrd processes, and eventually also re-started
xymon completely.If you are getting rrd files, there is no need to restart xymon.
rrdtool dump shows this:
What does 'rrdtool fetch temp.rrd AVERAGE' give?
▸
So, for some reason the values are not getting into the rrd files.... Note, I found that I previously had an entry in TEST2RRD for temp=devmon, so I have removed that and deleted all the rrd files (for temp) so that they would be re-created.
Did you have temp.*.rrd files before you made this ncv-based test? If so, they will be broken now (and it would have been better to use a different test name). Regards, Buchan
list Adam Goryachev
▸
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Buchan Milne wrote:
On Friday 20 March 2009 05:46:31 Adam Goryachev wrote:Hi, Re-started the hobbit rrd processes, and eventually also re-started xymon completely.If you are getting rrd files, there is no need to restart xymon.
Yes, but since I wasn't getting the answer I wanted I thought I'd re-start just to be sure :)
rrdtool dump shows this:What does 'rrdtool fetch temp.rrd AVERAGE' give?
rrdtool fetch temp.rrd AVERAGE|head
sda sdb
1237461000: 3.0000000000e+01 3.0000000000e+01
1237461300: 3.0000000000e+01 3.0000000000e+01
1237461600: 3.0000000000e+01 3.0000000000e+01
1237461900: 3.0000000000e+01 3.0000000000e+01
1237462200: 3.0000000000e+01 3.0000000000e+01
1237462500: 3.0000000000e+01 3.0000000000e+01
1237462800: 3.0000000000e+01 3.0000000000e+01
1237463100: 3.0000000000e+01 3.0000000000e+01
[More the same snipped]
1237544700: 2.9000000000e+01 2.9000000000e+01
1237545000: 2.9333333333e+01 2.9000000000e+01
1237545300: 2.9676666667e+01 2.9000000000e+01
1237545600: 2.9000000000e+01 2.9000000000e+01
1237545900: 2.9000000000e+01 2.9000000000e+01
1237546200: 2.9293333333e+01 2.9293333333e+01
1237546500: 3.0000000000e+01 3.0000000000e+01
1237546800: 3.0000000000e+01 2.9723333333e+01
1237547100: 3.0000000000e+01 2.9000000000e+01
1237547400: nan nan
▸
So, for some reason the values are not getting into the rrd files.... Note, I found that I previously had an entry in TEST2RRD for temp=devmon, so I have removed that and deleted all the rrd files (for temp) so that they would be re-created.Did you have temp.*.rrd files before you made this ncv-based test? If so, they will be broken now (and it would have been better to use a different test name).
No, and I don't (never have) use devmon.... I can only assume it was there by default.... I'm still getting last_ds as NaN, but the above fetch AVERAGE looks like some sort of valid data ??
▸
Thanks, Adam -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknDebQACgkQGyoxogrTyiWqzgCdHDviafHVSKOlQFd45/38Pqjy
MM4AoNGvK8TvGRzIU9AJg1b5Wrk/Ve6v
=9g3l
-----END PGP SIGNATURE-----