[Xymon] extract one disk graph

Bakkies Gatvol bakgat8 at hotmail.com
Wed Sep 10 21:32:58 CEST 2014


This is ugly as sin ... but it works for me! 

Since I asked on the list I will post my way of doing it ... 

in a perl script I return 

<img src=\"${GRPH}\">  

as part of the test text . It puts the last 48 hours graph into the page for me.

where 

$HHH=hostname 

and

$GRPH="/xymondev1-cgi/showgraph.sh?host=${HHH}\\&service=disk\\&graph_width=576\\&graph_height=120
\\&first=23\\&count=1\\&action=view\\&graph=hourly";


 first=23  is the actual mount point I want  (/tmp)  - found this way

 df -Ph |grep mapper |  sort -k6 | nl

     1  /dev/mapper/VolGroup00-LogVol00  3.9G  611M  3.1G  17% /
     2  /dev/mapper/mpath0p1  494M   32M  437M   7% /boot
     3  /dev/mapper/VolGroup01-LogVol01   99G  6.4G   88G   7% /d001
     4  /dev/mapper/VolGroup02-LogVol01   99G   32G   63G  34% /dc001
     5  /dev/mapper/VolGroup02-LogVol02   99G   34G   60G  37% /dd001
     6  /dev/mapper/VolGroup02-LogVol03   99G   32G   63G  34% /dp001
     7  /dev/mapper/VolGroup02-LogVol04   99G   31G   63G  33% /dq001
     8  /dev/mapper/VolGroup02-LogVol05   99G   34G   60G  37% /dt001
     9  /dev/mapper/VolGroup02-LogVol06   99G   32G   63G  34% /du001
    10  /dev/mapper/VolGroup00-LogVol07  9.9G  151M  9.2G   2% /ftpstage
    11  /dev/mapper/VolGroup01-LogVol03   99G   86G  8.2G  92% /hd001
    12  /dev/mapper/VolGroup00-LogVol01  3.9G  1.5G  2.3G  39% /home
    13  /dev/mapper/VolGroup01-LogVol04   99G   79G   16G  84% /hp001
    14  /dev/mapper/VolGroup02-LogVol07   99G   82G   13G  87% /hq001
    15  /dev/mapper/VolGroup01-LogVol06   99G   81G   14G  86% /ht001
    16  /dev/mapper/VolGroup01-LogVol07   99G   80G   14G  86% /id001
    17  /dev/mapper/VolGroup01-LogVol08   99G   78G   16G  84% /ip001
    18  /dev/mapper/VolGroup01-LogVol09   99G   84G  9.9G  90% /iq001
    19  /dev/mapper/VolGroup01-LogVol10   99G   82G   13G  87% /it001
    20  /dev/mapper/VolGroup00-LogVol05  3.9G  522M  3.2G  14% /opt
    21  /dev/mapper/VolGroup01-LogVol02   50G  6.1G   41G  13% /ora_tmp
    22  /dev/mapper/VolGroup02-LogVol08   50G   29G   19G  61% /ppmd100
    23  /dev/mapper/VolGroup00-LogVol02  3.9G  145M  3.6G   4% /tmp
    24  /dev/mapper/VolGroup00-LogVol03  7.8G  2.7G  4.7G  37% /usr
    25  /dev/mapper/VolGroup00-LogVol04  7.8G  3.0G  4.5G  40% /var
    26  /dev/mapper/VolGroup01-LogVol05   99G   78G   16G  84% /vd001


or counting through the disk lines on the trends page



From: bakgat8 at hotmail.com
To: alan.ford at stanwell.com
Date: Wed, 10 Sep 2014 10:15:18 -0400
CC: xymon at xymon.com
Subject: Re: [Xymon] extract one disk graph




The new test I am doing returns it's own values.  But this value is not interesting for a graph. The new value is a reflection on the steepness of the mountpoint graph. So it would be very cool to have the actual mountpoint graph right there on the same page.

B

> From: Alan.FORD at stanwell.com
> To: bakgat8 at hotmail.com
> CC: xymon at xymon.com
> Subject: Re: [Xymon] extract one disk graph
> Date: Wed, 10 Sep 2014 13:44:39 +0000
> 
> You could create a new graph entry and use the exact file name for the graph data :)
> 
> Sent from my iPhone
> 
> On 10 Sep 2014, at 10:49 pm, "Bakkies Gatvol" <bakgat8 at hotmail.com<mailto:bakgat8 at hotmail.com>> wrote:
> 
> On the trends & disk page I have all the disk ( mount point ) graphs.  I have written another test and on that test page I would like to also display just one mount point's graph.  I am hoping that since the data is already there, it is easy.
> 
> How to do ?  Where to start?
> 
> 
> Thanks
> 
> bakkies
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com<mailto:Xymon at xymon.com>
> http://lists.xymon.com/mailman/listinfo/xymon
> 
> This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
 		 	   		  

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140910/be64bbf9/attachment.html>


More information about the Xymon mailing list