Sendmail & Mailscanner version 2
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 83
- Joined: Fri Aug 22, 2003 4:33 am
anything on the import error
Hi, is there any update on the import error for stats.xml....
Chetan
Chetan
perl script stops afther 3 days
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?
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?
-
- Posts: 7
- Joined: Fri Aug 24, 2007 9:30 am
Failed to load template?
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)
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)
Maillog problem
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 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
Re: Maillog problem Solved
I solved the problem.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
The /etc/logrotate.d/syslog was corrupted and I rewrite the file (see page 1)
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..aloee wrote:What should i change to use templates on cacti 0.8.7?
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)
error on import of stats template
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" \
GPRINTMAX:"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" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"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?
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" \
GPRINTMAX:"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" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"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?
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??
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??
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]
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
-
- Posts: 2
- Joined: Mon Jul 16, 2007 12:58 pm
add one more with this issue...
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$
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$
Who is online
Users browsing this forum: No registered users and 1 guest