Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Sendmail & Mailscanner version 2
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
taylor



Joined: 03 Mar 2008
Posts: 1

PostPosted: Tue Mar 04, 2008 6:16 pm    Post subject: sendmail stats xml graph fix Reply with quote

after playing with the graph template - think i've managed to sort the unment
dependancy issues
i've exported the graph and data templates
from original posts includes messages rejected
running cacti 0.8.7b on opensuse 10.2

nice work on the scripts warnesj



mail.jpg
 Description:
 Filesize:  42.03 KB
 Viewed:  943 Time(s)

mail.jpg



sendmailstats.zip
 Description:

Download
 Filename:  sendmailstats.zip
 Filesize:  12.64 KB
 Downloaded:  127 Time(s)

Back to top
jimbo



Joined: 11 Apr 2008
Posts: 1

PostPosted: Fri Apr 11, 2008 2:29 am    Post subject: Re: sendmail stats xml graph fix Reply with quote

Hi,

i am trying to get these templates to work. I was using 0.8.6i, but the last graph template (sendmail_mailscanner_stats.xml) had dependency issues as seen in a lot of other posts, and none of the fixes worked.

So i upgraded to cacti -0.8.7b-2 (debian), and now i get this if i enable debugging

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="host - E-Mail Statistics" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="# of Messages" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/host_mess_recv_96.rrd":mess_recv:AVERAGE \
DEF:b="/var/lib/cacti/rra/host_mess_recv_96.rrd":mess_recv:LAST \
DEF:c="/var/lib/cacti/rra/host_mess_recv_96.rrd":mess_recv:MIN \
DEF:d="/var/lib/cacti/rra/host_mess_recv_96.rrd":mess_recv:MAX \
DEF:e="/var/lib/cacti/rra/host_viruses_95.rrd":viruses:AVERAGE \
DEF:f="/var/lib/cacti/rra/host_viruses_95.rrd":viruses:LAST \
DEF:g="/var/lib/cacti/rra/host_viruses_95.rrd":viruses:MIN \
DEF:h="/var/lib/cacti/rra/host_viruses_95.rrd":viruses:MAX \
DEF:i="/var/lib/cacti/rra/host_mess_relay_98.rrd":mess_relay:AVERAGE \
DEF:j="/var/lib/cacti/rra/host_spam_94.rrd":spam:AVERAGE \
DEF:ba="/var/lib/cacti/rra/host_spam_94.rrd":spam:LAST \
DEF:bb="/var/lib/cacti/rra/host_spam_94.rrd":spam:MIN \
DEF:bc="/var/lib/cacti/rra/host_spam_94.rrd":spam:MAX \
DEF:bd="/var/lib/cacti/rra/host_mess_sent_99.rrd":mess_sent:AVERAGE \
DEF:be="/var/lib/cacti/rra/host_mess_sent_99.rrd":mess_sent:LAST \
DEF:bf="/var/lib/cacti/rra/host_mess_sent_99.rrd":mess_sent:MIN \
DEF:bg="/var/lib/cacti/rra/host_mess_sent_99.rrd":mess_sent:MAX \
DEF:bh="/var/lib/cacti/rra/host_mess_relay_98.rrd":mess_relay:LAST \
DEF:bi="/var/lib/cacti/rra/host_mess_relay_98.rrd":mess_relay:MIN \
DEF:bj="/var/lib/cacti/rra/host_mess_relay_98.rrd":mess_relay:MAX \
DEF:ca="/var/lib/cacti/rra/host_mess_rejected_97.rrd":mess_rejected:AVERAGE \
DEF:cb="/var/lib/cacti/rra/host_mess_rejected_97.rrd":mess_rejected:LAST \
DEF:cc="/var/lib/cacti/rra/host_mess_rejected_97.rrd":mess_rejected:MIN \
DEF:cd="/var/lib/cacti/rra/host_mess_rejected_97.rrd":mess_rejected:MAX \
CDEF:cdefc=a,-1,* \
CDEF:cdefdd=bd,-1,* \
COMMENT:"Sendmail Statistics\n" \
AREA:a#FFF200FF:"Messages Recieved" \
AREA:cdefc#7CB3F1FF:"Messages Sent" \
AREA:cdefc#7CB3F1FF:"Messages Sent" \
GPRINT:b:LAST:" Current\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
AREA:e#FF0000FF:"Viruses" \
GPRINT::MAX:" Maximum\:%8.0lf\n" \
AREA:#FFFFFFFF:"" \
GPRINT:f:LAST:" Current\:%8.0lf" \
GPRINT:e:AVERAGE:"Average\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
AREA:#FFFFFFFF:"":STACK \
GPRINT:h:MAX:" Maximum\:%8.0lf\n" \
AREA:#FFFFFFFF:"":STACK \
GPRINT::AVERAGE:" Average\:%8.0lf" \
AREA:i#00CF00FF:"Messages Accepted":STACK \
GPRINT::MAX:"Maximum\:%8.0lf\n" \
AREA:j#FF00FFFF:"SPAM" \
GPRINT:ba:LAST:" Current\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:bc:MAX:"Maximum\:%8.0lf\n" \
GPRINT::MAX:"Maximum\:%8.0lf\n" \
AREA:#837C04FF:"Messages Rejected" \
COMMENT:"\n" \
GPRINT::LAST:"Current\:%8.0lf" \
AREA:cdefdd#4444FFFF:"Messages Sent" \
GPRINT:be:LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT::MAX:"Maximum\:%8.0lf\n" \
GPRINT:bd:AVERAGE:"Average\:%8.0lf" \
AREA:#FF0000FF:"Viruses" \
COMMENT:"\n" \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT:bg:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Mailscanner Statistics\n" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
AREA:i#35962BFF:"Relayed" \
AREA:#FF0000FF:"Viruses":STACK \
COMMENT:"\n" \
GPRINT:bh:LAST:" Current\:%8.0lf" \
AREA:#EA8F00FF:"SPAM":STACK \
COMMENT:"\n" \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT:i:AVERAGE:"Average\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
COMMENT:" Last Updated on Fri 11 Apr 17\:20\:01 EST 2008 by SiteHosting bvba" \
GPRINT:bj:MAX:"Maximum\:%8.0lf\n" \
AREA:ca#8D00BAFF:"Rejected" \
COMMENT:" http\://www.sitehosting.be - info@sitehosting.be" \
GPRINT::AVERAGE:" Average\:%8.0lf" \
GPRINT::MAX:"Maximum\:%8.0lf\n" \
AREA:#EA8F00FF:"SPAM":STACK \
GPRINT::MAX:" Maximum\:%8.0lf\n" \
GPRINT:cb:LAST:"Current\:%8.0lf" \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT:ca:AVERAGE:"Average\:%8.0lf" \
GPRINT:cd:MAX:"Maximum\:%8.0lf\n" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT::MAX:"Maximum\:%8.0lf\n"

RRDTool Says:

ERROR: Could not parse line 'GPRINT::LAST:Current\:%8.0lf'

Any help greatly appreciated.
Back to top
east_cost



Joined: 22 Jan 2008
Posts: 27

PostPosted: Mon Jun 02, 2008 12:00 pm    Post subject: Reply with quote

hello

i am getting problem in snmp step.. where we add custom snmp oids for the script.


when i snmpwalk on the machine on which i am running mailserver it returns nothing.

like if run it for messege relay oid it returns nothing

[root@-i ~]# snmpwalk -v 1 -c public [IP address] .1.3.6.1.4.100.7
End of MIB


but if i manually run the script it shows me data ..

[root@viper ~]# /opt/watchmaillog/readcounters.sh mess_relay
.1.3.6.1.4.100.7
gauge
536

only because of this problem my graph is empty and showing 0 0 statistics.
what may be the problem and wht will be solution?

any help will highly be obliged.

thnkz
Back to top
ariesow



Joined: 19 Aug 2007
Posts: 2
Location: Malaysia

PostPosted: Thu Aug 14, 2008 5:08 am    Post subject: SNMP.CONF misconfigured ? Reply with quote

Hi,

I have followed the instructions and i am very close to get everything work but the SNMP part make me very unsure.

From the CACTI server, i 'snmpwalk' to my mail server and get this
Code:
[root@mum-its-netmon2 var]# snmpwalk -v1 -cpublickey xxx.xxx.xxx.xxx .1.3.6.1.4.100
SNMPv2-SMI::private.100.2 = Gauge32: 0
SNMPv2-SMI::private.100.2 = Gauge32: 0
Error: OID not increasing: SNMPv2-SMI::private.100.2
 >= SNMPv2-SMI::private.100.2


And the i couldn't get the graph show up. Seem like the RRDs are not created.

Help please
Back to top
phalen00



Joined: 14 Aug 2008
Posts: 1

PostPosted: Thu Aug 14, 2008 1:52 pm    Post subject: SNMP.CONF misconfigured ? Reply with quote

I am having the same issue:

SNMPv2-SMI::private.100.2 = Gauge32: 0
SNMPv2-SMI::private.100.2 = Gauge32: 0
Error: OID not increasing: SNMPv2-SMI::private.100.2
>= SNMPv2-SMI::private.100.2

I believe I have SNMP configured correctly but no graph for sendmail stats is showing up. Any ideas?
Back to top
waeltec



Joined: 14 Aug 2008
Posts: 5

PostPosted: Mon Aug 18, 2008 1:21 am    Post subject: Reply with quote

Dear,

Many thanks for your great efforts, but who should be the owner for the mentioned scripts


Thank You,
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Page 8 of 8

 



Powered by phpBB © 2001, 2005 phpBB Group