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, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
r_chetanjain
Cacti User


Joined: 22 Aug 2003
Posts: 70

PostPosted: Thu Jul 19, 2007 12:29 am    Post subject: anything on the import error Reply with quote

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

Chetan
Back to top
rbl



Joined: 07 Oct 2006
Posts: 7

PostPosted: Sat Aug 11, 2007 11:56 am    Post subject: perl script stops afther 3 days Reply with quote

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?
Back to top
JohnneyBoy



Joined: 24 Aug 2007
Posts: 7

PostPosted: Fri Sep 07, 2007 5:39 am    Post subject: Failed to load template? Reply with quote

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)
Back to top
rbl



Joined: 07 Oct 2006
Posts: 7

PostPosted: Tue Sep 18, 2007 7:56 am    Post subject: Maillog problem Reply with quote

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
Back to top
rbl



Joined: 07 Oct 2006
Posts: 7

PostPosted: Fri Oct 19, 2007 11:59 am    Post subject: Re: Maillog problem Solved Reply with quote

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)
Back to top
aloee



Joined: 25 Oct 2007
Posts: 1

PostPosted: Thu Oct 25, 2007 9:42 am    Post subject: Reply with quote

What should i change to use templates on cacti 0.8.7?
Back to top
kuteninja



Joined: 02 Nov 2007
Posts: 1

PostPosted: Fri Nov 02, 2007 9:47 am    Post subject: Reply with quote

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:
[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)
Back to top
warnesj
Cacti User


Joined: 29 May 2005
Posts: 163

PostPosted: Tue Nov 06, 2007 11:08 pm    Post subject: Reply with quote

When I get back into the office tomorrow I'll export the versions I have that I'm using in 0.8.7.
Back to top
warnesj
Cacti User


Joined: 29 May 2005
Posts: 163

PostPosted: Wed Nov 07, 2007 9:41 pm    Post subject: Reply with quote

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.
Back to top
sizulku
Cacti User


Joined: 04 Nov 2002
Posts: 102
Location: ACEH

PostPosted: Tue Nov 20, 2007 11:58 am    Post subject: Reply with quote

got this error when importing xml 0.8.7 version template to cacti-0.8.7a. any help would be great. Thanks.


sendmail.jpg
 Description:
 Filesize:  88.24 KB
 Viewed:  3104 Time(s)

sendmail.jpg


Back to top
warnesj
Cacti User


Joined: 29 May 2005
Posts: 163

PostPosted: Tue Nov 20, 2007 12:39 pm    Post subject: Reply with quote

That's the same error that some have been getting for a while. I'll dig into it and see what's failing.
Back to top
roliver



Joined: 10 Jan 2008
Posts: 1

PostPosted: Thu Jan 10, 2008 11:16 am    Post subject: error on import of stats template Reply with quote

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?
Back to top
neo76



Joined: 23 Jan 2008
Posts: 1

PostPosted: Wed Jan 23, 2008 1:16 pm    Post subject: Reply with quote

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??
Back to top
wwwdrich
Cacti User


Joined: 03 Feb 2005
Posts: 59
Location: San Jose, CA

PostPosted: Tue Feb 26, 2008 10:55 am    Post subject: Reply with quote

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.
Back to top
gm0neyl0ve



Joined: 16 Jul 2007
Posts: 2

PostPosted: Mon Mar 03, 2008 7:37 pm    Post subject: add one more with this issue... Reply with quote

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$
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, 9  Next
Page 7 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group