[hobbit] NCV Graphing

Adam Goryachev adam at websitemanagers.com.au
Fri Mar 20 07:26:46 CET 2009


-----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-----



More information about the Xymon mailing list