System and Server Status Email

7 posts / 0 new
Last post
#1 Thu, 03/26/2009 - 23:34
opaque

System and Server Status Email

Hi all

I think the best way to monitor a web and mailserver is the using of "System and Server Status" modul.

I´v seen it is possible to run the command e.g. every 5 minutes and set the "Commands to run / If monitor goes down, run command: /etc/init.d/httpd restart"

So if a problem occured the service will be restarted. This works fine but i dont get any emails on the adress i have entered in the field "Scheduled Monitoring / Email status report to". In the Wiki if read that webmin will use sendmail but i use dovecot and postfix.

Did anybody have an idea who i can solve this problem.

thx in advance opaque

Fri, 03/27/2009 - 17:11
ronald
ronald's picture

is the email actually send?
It doesnt matter if you use postfix or something else.
You can configure when an email is send.

Sat, 03/28/2009 - 15:21 (Reply to #2)
ronald
ronald's picture

have you tried an emailaddress not on your server? some gmail account may be?

Sat, 03/28/2009 - 11:50
opaque

This is my maillog if I restart apache:

[code:1]Mar 28 21:47:08 server1 postfix/local[22789]: D98C0543800D: to=<walter@server1.domain.at>, orig_to=<walter@domain.at>, relay=local, delay=21, delays=0.17/0.01/0/21, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Mar 28 21:47:08 server1 postfix/qmgr[2796]: D98C0543800D: removed
Mar 28 21:47:30 server1 postfix/local[22831]: 9101C5438082: to=<walter@server1.domain.at>, orig_to=<walter@domain.at>, relay=local, delay=24, delays=0.89/0.01/0/23, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Mar 28 21:47:30 server1 postfix/qmgr[2796]: 9101C5438082: removed
[/code:1]

opaque

Thu, 04/16/2009 - 05:28
opaque

yes, it also won´t work with a gmail email adress.
It looks like the emailadress i entered in the field will not be used.

opaque

Thu, 04/16/2009 - 05:43
opaque

Update

.forward in the root directory send me the messages to the root.

Content:

[code:1]Error: No mail program was found on your system!
Fehler
-----
No mail program was found on your system!
-----[/code:1]

Any ideas?
opaque

Thu, 04/16/2009 - 10:01
opaque

I found the solution:

I added these lines
<div class='quote'>/usr/local/sbin
/bin
/usr/bin
/usr/sbin</div>

in Webmin &gt; Webminconfig &gt; Operating System and Environment

now it works

opaque

Topic locked