CUSTOM RRD DATA VIA SCRIPTS
Gada, Subhash
subhash.gada at logicacmg.com
Mon Mar 13 12:52:39 CET 2006
Hi,
We have few custom tests that measures printq of the print server
(windows).
How can I write a script to create a rrd file and generate graphs.
For example
P Server 1
3/13/2006 Total queued jobs: 0
PRN324:0
PRN323:0
PRN142:0
PRN141:0
PRN140:0
PRN139:0
PRN138:0
P Server 2
3/13/2006 Total queued jobs: 0
PRN314:0
PRN137:0
PRN136:0
How to count the number of columns that vary from host to host.
The column names are not common for all the hosts.
Can any one help me further ?
if [ "$TESTNAME"="printq" ]
then
p1=`grep "^PRN*:" $FNAME | awk '{print $2}'`
p2=`grep "^PRN*:" $FNAME | awk '{print $2}'`
p3=`grep "^PRN*:" $FNAME | awk '{print $2}'`
# The RRD dataset definitions
echo "DS:p1:GAUGE:600:0:U"
echo "DS:p2:GAUGE:600:0:U"
echo "DS:p3:GAUGE:600:0:U"
# The filename
echo "printq.rrd"
# The data
echo "$p1:$p2:$p3"
Regards,
Subhash Gada
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060313/947202c1/attachment.html>
More information about the Xymon
mailing list