On Tue, Nov 4, 2008 at 12:47 PM, tarbeite <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I have most of the NUT system up and running. I'm in the process of writing
> the script to send email notifications for certain events. This is my
> upsshed-cmd file so far:
>
> # EC130 Commands
>
>         ec130onbatt)
>                 echo "EC130 UPS has been on Battery for more then 10
> seconds" \
>                 | mailx -r "[EMAIL PROTECTED]" -s"EC130 on battery"
> [EMAIL PROTECTED]
>                 ;;
>         ec130combad)
>                 echo "Communications to EC130 UPS have degraded." \
>                 | mailx -r "[EMAIL PROTECTED]" -s"EC130 bad Communications"
> [EMAIL PROTECTED]

As an aside, you can use wildcards in case statements. I think the
variables that Arjen pointed out should help, though.

-- 
- Charles Lepple

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to