root/trunk/tool/renetcol_graph_mib.php @ 149

Revision 126, 1.8 KB (checked in by andreu, 12 years ago)

New PHP script used in crontab to generate graphics posted on the self-monitoring web site

Line 
1<?php
2
3$res = `rrdtool graph /var/www/img_monitoring/RENETCOL_RealflowNb_day.png -s -1D --title "Flow number analysed by the collector" -W "Data from renetcol - (c) GIP RENATER" DEF:RFN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:realFlowNb:AVERAGE DEF:MAXRFN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:realFlowNb:MAX CDEF:RNFWS=RFN,5,/,60,/ CDEF:MAXRNFWS=MAXRFN,5,/,60,/ VDEF:MAXI=MAXRNFWS,MAXIMUM AREA:RNFWS\#8FA3AD:"Decoded Flow number per second" LINE1:MAXRNFWS\#FF5B2B:"MAX" GPRINT:MAXI:"MAX %1.1lf %s"`;
4
5$res = `rrdtool graph /var/www/img_monitoring/RENETCOL_DropFlow_day.png -s -1D --title "Flow number dropped by the collector" -W "Data from renetcol - (c) GIP RENATER" DEF:FN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:flowNb:AVERAGE DEF:RFN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:realFlowNb:AVERAGE CDEF:dropFl=FN,RFN,-,5,/,60,/ LINE1:dropFl\#FF5B2B:"Flow loss per second"`;
6
7$res = `rrdtool graph /var/www/img_monitoring/RENETCOL_v9PacketNb_day.png -s -1D --title "NetFlow v9 packets number received by the collector" -W "Data from renetcol - (c) GIP RENATER" DEF:FN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:v9PacketNb:AVERAGE CDEF:NFWS=FN,5,/,60,/ AREA:NFWS\#8FA3AD:"v9PacketNb per second"`;
8
9$res = `rrdtool graph /var/www/img_monitoring/RENETCOL_v9UnSeqNb_day.png -s -1D --title "Out-of-sequence packets number" -W "Data from renetcol - (c) GIP RENATER" DEF:FN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:v9UnSeqNb:AVERAGE CDEF:NFWS=FN,5,/,60,/ AREA:NFWS\#8FA3AD:"v9UnSeqNb per second"`;
10
11$res = `rrdtool graph /var/www/img_monitoring/RENETCOL_ipPacketNb_day.png -s -1D --title "IP Packets received by collector" DEF:FN=/mnt/data/RRD/RENETCOL_MIB/RENETCOL_GLOBAL_COUNTERS.rrd:ipPacketNb:AVERAGE CDEF:NFWS=FN,5,/,60,/ AREA:NFWS\#8FA3AD:"ipPacketNb per second"`;
12
13
14?>
Note: See TracBrowser for help on using the browser.