|
|
| Line 1: |
Line 1: |
| − | You can graph your fax queue with MRTG (http://people.ee.ethz.ch/~oetiker/webtools/mrtg).
| |
| | | | |
| − | Add to MRTG configuration file:
| |
| − | <pre>
| |
| − | Target[faxq]: `/usr/local/mrtg-2/bin/faxcounter`
| |
| − | YLegend[faxq]: Faxes
| |
| − | ShortLegend[faxq]: Fax
| |
| − | MaxBytes[faxq]: 1000
| |
| − | Options[faxq]: gauge, noinfo, nopercent, growright
| |
| − | Title[faxq]: Fax Queue Size
| |
| − | PageTop[faxq]: <nowiki><H1>Fax Queue Size</H1></nowiki>
| |
| − | </pre>
| |
| − |
| |
| − | faxcounter script:
| |
| − | <pre>
| |
| − | #!/bin/sh
| |
| − | cnt=`/usr/local/bin/faxstat -s -a | grep -v "Modem tty" | wc -l` cnt=$[$cnt - 1]
| |
| − |
| |
| − | echo $cnt
| |
| − | echo $cnt
| |
| − | echo " "
| |
| − | echo "Fax queue"
| |
| − | </pre>
| |