Sendmail & Mailscanner version 2

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
r_chetanjain
Cacti User
Posts: 83
Joined: Fri Aug 22, 2003 4:33 am

anything on the import error

Post by r_chetanjain »

Hi, is there any update on the import error for stats.xml....

Chetan
rbl
Posts: 20
Joined: Sat Oct 07, 2006 12:35 pm

perl script stops afther 3 days

Post by rbl »

Hi,
I have update the script for watchmaill.sh (/opt/watchmailloh/watchmaillog.sh) so that it wil not longer take memory to start the script over and over again.
Now i have solved this, the script only runs for 3 days.
It is still in the memory (running) but is das not see any mail comming by.
What dit i do wrong?
JohnneyBoy
Posts: 7
Joined: Fri Aug 24, 2007 9:30 am

Failed to load template?

Post by JohnneyBoy »

Hello,

I believe that this template mailscanner_stats has failed to load, the Unnet Dependency lines are highlighted in red when I import the template.

Am I correct? and does any one have any ideas on how to solve it please.

John

CDEF
[success] Make Stack Negative [update]

GPRINT Preset
[success] Normal [update]
[success] Exact Numbers [update]

Graph Template
[success] watchmaillog - Sendmail & MailScanner Stats [update]
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Make Stack Negative
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (GPRINT Preset) Exact Numbers
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
rbl
Posts: 20
Joined: Sat Oct 07, 2006 12:35 pm

Maillog problem

Post by rbl »

Hi,
I have taken a good look what is going on.
I have updated the files of the scripts (watchmaillog.sh end the all the other .sh)
When my server do a log rotation this program can not read the maillog file any more.
I do the rotation every day.
Before I update the script it was working goed anly the program started over and over again.
Now is run only one time en stays in memory but the file is not read anymore. Can you help my correct this problem?

kind regards,
rbl
rbl
Posts: 20
Joined: Sat Oct 07, 2006 12:35 pm

Re: Maillog problem Solved

Post by rbl »

rbl wrote:Hi,
I have taken a good look what is going on.
I have updated the files of the scripts (watchmaillog.sh end the all the other .sh)
When my server do a log rotation this program can not read the maillog file any more.
I do the rotation every day.
Before I update the script it was working goed anly the program started over and over again.
Now is run only one time en stays in memory but the file is not read anymore. Can you help my correct this problem?

kind regards,
rbl
I solved the problem.
The /etc/logrotate.d/syslog was corrupted and I rewrite the file (see page 1) :D :D
aloee
Posts: 1
Joined: Thu Oct 25, 2007 9:40 am

Post by aloee »

What should i change to use templates on cacti 0.8.7?
kuteninja
Posts: 2
Joined: Fri Nov 02, 2007 9:46 am

Post by kuteninja »

aloee wrote:What should i change to use templates on cacti 0.8.7?
I've the same issue, i'm running cacti 0.8.7 and everything works ok except for the last xml which gives me dependence errors..

Code: Select all

[success] Make Stack Negative [update]

GPRINT Preset
[success] Normal [update]
[success] Exact Numbers [update]

Graph Template
[success] watchmaillog - Sendmail & MailScanner Stats [update]
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Make Stack Negative
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (GPRINT Preset) Exact Numbers
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

When I get back into the office tomorrow I'll export the versions I have that I'm using in 0.8.7.
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

Hi all, I've exported the data and graph templates again out of my Cacti 0.8.7. For some reason many people have had problems with my exports but give them a try and get back to me with the results. I'll dig into the XML files if any problems arise.
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

got this error when importing xml 0.8.7 version template to cacti-0.8.7a. any help would be great. Thanks.
Attachments
sendmail.jpg
sendmail.jpg (88.24 KiB) Viewed 9380 times
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

That's the same error that some have been getting for a while. :( I'll dig into it and see what's failing.
roliver
Posts: 1
Joined: Thu Jan 10, 2008 11:13 am

error on import of stats template

Post by roliver »

H all,

Justed wanted to add to the previous post. I too am having the import problem with mailscanner_stats.xml file and below is the error I get with graph debug on:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-30 \
--title="Apache-1 - MailScanner Stats" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="# of Messages" \
--slope-mode \
--font TITLE:9: \
--font AXIS:8: \
--font LEGEND:9: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/apache-1_mess_sent_178.rrd":mess_sent:MAX \
DEF:b="/var/www/html/cacti/rra/apache-1_mess_rejected_176.rrd":mess_rejected:AVERAGE \
DEF:c="/var/www/html/cacti/rra/apache-1_viruses_174.rrd":viruses:AVERAGE \
DEF:d="/var/www/html/cacti/rra/apache-1_spam_173.rrd":spam:AVERAGE \
DEF:e="/var/www/html/cacti/rra/apache-1_mess_relay_177.rrd":mess_relay:AVERAGE \
DEF:f="/var/www/html/cacti/rra/apache-1_mess_rejected_176.rrd":mess_rejected:MAX \
DEF:g="/var/www/html/cacti/rra/apache-1_viruses_174.rrd":viruses:MAX \
CDEF:cdefb=a,-1,* \
COMMENT:"Sendmail Statistics\n" \
AREA:cdefb#7CB3F1FF:"Messages Sent" \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n" \
AREA:b#FFFFFFFF:"" \
AREA:c#FFFFFFFF:"":STACK \
AREA:d#FFFFFFFF:"":STACK \
AREA:e#00CF00FF:"Messages Accepted":STACK \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT::MAX:"Maximum\:%8.0lf\n" \
AREA:b#837C04FF:"Messages Rejected" \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:f:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"\n" \
COMMENT:"Mailscanner Statistics\n" \
AREA:c#FF0000FF:"Viruses":STACK \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
AREA:#EA8F00FF:"SPAM":STACK \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.0lf" \
GPRINT::MAX:"Maximum\:%8.0lf\n"

RRDTool Says:

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

thought it might be useful....anyone getting the same problem?
neo76
Posts: 1
Joined: Wed Jan 23, 2008 1:10 pm

Post by neo76 »

Hello,

I have the same problem with roliver.


Today i tried to install the sendmail & mailscanner on my version 0.8.6j cacti installation, but i had the same problem that roliver noticed.

Then i upgraded my cacti installation tο version 0.8.7a. I reinstalled the templates(both data and graph) from the scratch, but the same problem occured again.

Has anyone find any solution to that problem??
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Post by wwwdrich »

Is anyone else seeing problems with watchmaillog.pl not restarting on a SIGHUP? I have found several cases of it hanging in wait(), apparently waiting for the log tail process to die.
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
gm0neyl0ve
Posts: 2
Joined: Mon Jul 16, 2007 12:58 pm

add one more with this issue...

Post by gm0neyl0ve »

Hi All,

I'm having the same problem

RRDTool Says:

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

Version 0.8.7b
thanks for your help.

g$
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest