FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-06-2008, 11:20 AM
Johann Spies
 
Default mailping setup

I am trying to get mailping to work. When finished, I want it to be
able to produce graphs in Munin for our three mail servers. At the
moment, I am trying out the new-to-be-put-in-production-soon server:
mail2a

I am monitoring it from a server (archive.sun.ac.za) which is not part
of the mail gateway.

I have the following in /etc/mailping:

/etc/mailping/mail2a
/etc/mailping/mail2a/admin
/etc/mailping/mail2a/failtime
/etc/mailping/mail2a/interval
/etc/mailping/mail2a/to
/etc/mailping/mail2a/from

and 'to' contains mailping@mail2a.sun.ac.za with
'from': mailping@archive.sun.ac.za

In /etc/aliases on mail2a I have:

mailping: mailping@archive.sun.ac.za

The following exists in /var/lib/mailping

|-- Maildir [error opening dir]
`-- state
`-- mail2a
|-- failtime
|-- incoming
|-- pending
|-- success
`-- warntime

5 directories, 3 files
14:15:00 js@ftp:/var/lib/mailping$ sudo tree .
.
|-- Maildir
| |-- cur
| |-- new
| `-- tmp
`-- state
`-- mail2a
|-- failtime
|-- incoming
|-- pending
|-- success
`-- warntime

8 directories, 3 files

When /var/lib/mailping/state/mail2a/success is a normal file, the
error message is:

$ sudo munin-run mailping-success fetch
Traceback (most recent call last):
File "/etc/munin/plugins/mailping-success", line 69, in ?
dump()
File "/etc/munin/plugins/mailping-success", line 61, in dump
success = fileutil.getTime(os.path.join(statedir, 'state', dirname, 'success'))
File "/usr/lib/python2.3/site-packages/MailPing/fileutil.py", line 16, in getTime
return float(l)
ValueError: empty string for float()


When it is a directory the error message is:

Traceback (most recent call last):
File "/etc/munin/plugins/mailping-success", line 69, in ?
dump()
File "/etc/munin/plugins/mailping-success", line 61, in dump
success = fileutil.getTime(os.path.join(statedir, 'state', dirname, 'success'))
File "/usr/lib/python2.3/site-packages/MailPing/fileutil.py", line 8, in getTime
f=open(path)
IOError: [Errno 21] Is a directory


The documentation is not very clear to me. I will appreciate some
help.

Regards
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

"He hath not dealt with us after our sins; nor rewarded
us according to our iniquities. For as the heaven is
high above the earth, so great is his mercy toward
them that fear him. As far as the east is from the
west, so far hath he removed our transgressions from
us." Psalms 103:10-12


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org