[Xymon] integration of foreign graphs

David Baldwin david.baldwin at ausport.gov.au
Wed Jun 20 03:00:39 CEST 2012


Martin,
> Is there any "easy" method to integrate foreign graphs
> into xymon or rather into of an existing page of a host ?
>
> The background is, i've got an script from my colleagues,
> which gathers data from ibm-Scale-Out-network-storage (SONAS),
> generats rrd's and corresponding png's which i want integrated in one page 
> of xymon .....
>
> Any hint is welcome ...

If the RRDs are already being generated, you can put symlinks from the
respective host directory to the RRDs wherever they are as long as you
have read access. Then add a section to graphs.cfg (you may need to use
'rrdtool info' to look at the variables and data) and make sure the
graph name is added to GRAPHS variable in server.cfg so they will appear
in the trends. A small gotcha is that the start of the file name of the
RRD file has to match the graph name.

For example, I just created a bunch of symlinks under various SAN
devices to point to the RRDs being generated for the interface they were
connected to on the switch:

$ ls -l /var/lib/hobbit/rrd/fc01-1.fc.ausport.gov.au/
total 40
lrwxrwxrwx 1 root   root      44 Jun  8 16:49 if_load.c0pA.rrd ->
../fcsw01.fc.ausport.gov.au/if_load.10_1.rrd
lrwxrwxrwx 1 root   root      43 Jun  8 16:50 if_load.c0pB.rrd ->
../fcsw01.fc.ausport.gov.au/if_load.9_1.rrd
lrwxrwxrwx 1 root   root      44 Jun  8 16:49 if_load.c1pA.rrd ->
../fcsw01.fc.ausport.gov.au/if_load.10_2.rrd
lrwxrwxrwx 1 root   root      43 Jun  8 16:50 if_load.c1pB.rrd ->
../fcsw01.fc.ausport.gov.au/if_load.9_2.rrd

$ rrdtool info
/var/lib/hobbit/rrd/fc01-1.fc.ausport.gov.au/if_load.c0pA.rrd
filename = "/var/lib/hobbit/rrd/fc01-1.fc.ausport.gov.au/if_load.c0pA.rrd"
rrd_version = "0003"
step = 300
last_update = 1340153686
ds[ds0].type = "COUNTER"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = NaN
ds[ds0].last_ds = "3927680624"
ds[ds0].value = 0.0000000000e+00
ds[ds0].unknown_sec = 0
ds[ds1].type = "COUNTER"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = NaN
ds[ds1].last_ds = "2279001344"
ds[ds1].value = 0.0000000000e+00
ds[ds1].unknown_sec = 0
...


graphs.cfg section

[if_load]
        FNPATTERN ^if_load\.(.+).rrd
        TITLE Network Traffic (MRTG-style)
        YAXIS Bits/second
        DEF:inbytes at RRDIDX@=@RRDFN@:ds0:AVERAGE
        CDEF:in at RRDIDX@=inbytes at RRDIDX@,8,*
        DEF:outbytes at RRDIDX@=@RRDFN@:ds1:AVERAGE
        CDEF:out at RRDIDX@=outbytes at RRDIDX@,8,*
        LINE2:in at RRDIDX@#@COLOR@:@RRDPARAM@  inbound
        GPRINT:in at RRDIDX@:LAST: \: %10.1lf (cur)
        GPRINT:in at RRDIDX@:MAX: \: %10.1lf (max)
        GPRINT:in at RRDIDX@:MIN: \: %10.1lf (min)
        GPRINT:in at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n
        LINE2:out at RRDIDX@#@COLOR@:@RRDPARAM@ outbound
        GPRINT:out at RRDIDX@:LAST: \: %10.1lf (cur)
        GPRINT:out at RRDIDX@:MAX: \: %10.1lf (max)
        GPRINT:out at RRDIDX@:MIN: \: %10.1lf (min)
        GPRINT:out at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n

David.

-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
david.baldwin at ausport.gov.au          Leverrier Street Bruce ACT 2617


-------------------------------------------------------------------------------------
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
-------------------------------------------------------------------------------------



More information about the Xymon mailing list