These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for System and Server Status Email on the new forum.
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
is the email actually send?
It doesnt matter if you use postfix or something else.
You can configure when an email is send.
have you tried an emailaddress not on your server? some gmail account may be?
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
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
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
I found the solution:
I added these lines
<div class='quote'>/usr/local/sbin
/bin
/usr/bin
/usr/sbin</div>
in Webmin > Webminconfig > Operating System and Environment
now it works
opaque