Re: Creating a Script to see if amavis is alive

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
To: plug-discuss
Subject: Re: Creating a Script to see if amavis is alive
> This is what I have now but it is not working I thik the problem is
> where I am trying to tell the script if it is greater than 15 send an
> email saying amavis down
>
>
> #!/bin/bash
> # Start script
> if /utilities/checkque > "0" then cat /amavis.not.alive | mail
> [email][/email]
> #fi
> # End script
>
>
> cat /amavis.not.alive
> Amavis is not accepting connections
>
> cat /checkque
> postqueue -p |grep ^[0-9] |wc -l


Advanced Bash-Scripting Guide
http://www.tldp.org/LDP/abs/html/index.html
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss