smfalert
SMFAlert version 0.20 released
—————————————
SMF Alert is a perl daemon that runs on Solaris 10 to monitor SMF services.
When a SMF service fails for some reason and automatically restarts, you don’t really know about it unless you keep a close eye on your services logs. SMF Monitor Alert runs as a daemon in the background monitoring SMF’s you specify, and e-mailing you when something goes wrong. For it to send mail you can use the Perl module Mail::Sender which is included in the package or you can use sendmail on the local system. If you already have sendmail working then you are good to go. If not then for it to run with sendmail you have to do one of the following:
1). This method you don’t have to run sendmail as a daemon.
Put:
DSmail.relay.host
in your /etc/mail/main.cf sendmail.cf subsidiary.cf
You also need it in your submit.cf if you are using sendmail >= 8.12.
2).
svcadm enable smtp:sendmail
This will have sendmail running as a daemon now so you probably want
to setup tcp wrappers or something for security. This method also
isn’t very reliable if you are using local/bogus domain names the relay
host will refuse, such as domain.local
If mail isn’t sending and you want to check what is going on, use
mailx -v recipient@blah.com and you can see where it is failing (mailx
calls sendmail).



