Hello ! I saw "DNS Querie ( NEWBIE )"example and I want to make my own script for monitoring some TCP connections . I created a database : ++++++++ /rrd_path/bin/rrdtool create /db_path/webdb.rrd DS:query:COUNTER:600:U:U RRA:AVERAGE:0.5:1:60 0 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 +++++++++ I updated it with the following script : #less /script_path/script +++++++++ #!/bin/sh tmp=$(snmpnetstat -n -P tcp 192.168.1.111 -c public |grep .9000|grep ES|wc -l) /rrd_path/rrdtool update /db_path/webdb.rrd N:"$tmp" +++++++++ In crontab I put : +++++++++ */5 * * * * root /script_path/path +++++++++ I'm making a "gif" with this script : #less /gif_script_path/giff +++++++++ /rrd_path/rrdtool graph namedlog.gif --start -86400 DEF:rquery=/db_path/webdb.rrd:query:A VERAGE AREA:rquery#00FF00"Oracle Forms" COMMENT:"\n" COMMENT:"Max:" GPRINT:rquery:MAX:"%lf " COMMENT:" Min:" GPRINT:rquer y:MIN:"%lf " COMMENT:" Average:" GPRINT:rquery:AVERAGE:"%lf " COMMENT:" GIF Generated at : $(date)" +++++++++ $tmp's values are in range 0-15 , but my chart indicates 0-20M !!???!!! Did I missed something ? If you can tell me what I'm doing wrong ... Thank you !
-- +++++++++++++++++++++++++ NetRaptores.com ++++++++++++++++++++++++ Laurentiu Negrisan * Linux Registered User #191866 ++++++++++++++++++++++++ Cellular:+4094847063 ++++++++++++++++++++ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
