Personal tools
HylaFAX The world's most advanced open source fax server

Difference between revisions of "Graph your fax queue"

 
m (Reverted edits by 203.87.7.13 (talk) to last revision by Paul)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
Add to MRTG configuration file:
 
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>
  
Target[faxq]: `/usr/local/mrtg-2/bin/faxcounter`
+
faxcounter script:
YLegend[faxq]: Faxes
+
<pre>
ShortLegend[faxq]: Fax
+
#!/bin/sh
MaxBytes[faxq]: 1000
+
cnt=`/usr/local/bin/faxstat -s -a | grep -v "Modem tty" | wc -l` cnt=$[$cnt - 1]
Options[faxq]: gauge, noinfo, nopercent, growright
+
 
Title[faxq]: Fax Queue Size
+
echo $cnt
PageTop[faxq]: <H1>Fax Queue Size</H1>
+
echo $cnt
 +
echo " "
 +
echo "Fax queue"
 +
</pre>

Latest revision as of 22:58, 9 October 2016

You can graph your fax queue with MRTG (http://people.ee.ethz.ch/~oetiker/webtools/mrtg).

Add to MRTG configuration file:

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]: <H1>Fax Queue Size</H1>

faxcounter script:

#!/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"

This page was last edited on 9 October 2016, at 22:58.

Powered by MediaWiki
Attribution-ShareAlike 2.5

Project hosted by iFAX Solutions