chtla Guest
|
Posted: Tue Apr 08, 2003 5:03 am Post subject: sendmail no graph... |
|
|
i am sorry, i have poor english
installed cacti-0.6.8a, and rrdtool-1.0.41 in linux redhat 8.0
(not install ucd-snmp..)
and add sendmail script..(/home/sts/html/cacti/scripts)
----------------------------------------------------
#!/usr/bin/perl
#sendmailq.pl
#
# Autor : Jeremy Garcia <jeremy@linuxquestions.org>
# Date : 05/03/02
# Version : 0.2
# : - Added support for both single and multiple queues
# : - Tried to accomodate for as many different forms of output as possible.
# If I missed yours let me know and I will include it.
# Description : Script to output the number of messages in a sendmail queue.
# Output is <messages in queue>
# If you run sendmail with mupltiple queues uncomment this line
#$MULTIPLE_QUEUE = 1;
if ($MULTIPLE_QUEUE) {
$mailq = `mailq | grep "Total Requests:" | cut -d' ' -f3`;
chomp $mailq;
}else {
$mailq = `mailq | head -1 | cut -d'(' -f2 | cut -d' ' -f01`;
chomp $mailq;
if ($mailq eq "is" || $mailq =~ "queue" || $mailq eq "Mail") { $mailq = 0 }
}
print $mailq;
----------------------------------------------------------------------
Data Input add sendmail..
and etc config..
.. sendmail no graph..
i don't know how sendmail config..
--------------------------------------------------------------------
/usr/local/rrdtool-1.0.41/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="sendmail" \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--vertical-label="cnt" \
DEF:a="/home/sts/html/cacti/rra/sendmail.rrd":sendmail:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#EAAF00:"count"
---------------------------------------------------------------------
help me..  |
|