MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: Way to monitor if minivend is hung



There are two scripts: check and checkstat.sh that come with Minivend. I
don't believe these scripts can detect a hung Minivend server. There is a
script that I believe Kyle Hayes wrote to check if Minivend is hung. I
modified the script a little to make it sort of generic and call it
"mvcheck". It is written a Unix shell and the lynx text web browser, but
could easily be modified for other systems. They can be put in you crontab
to check if Minivend is up. Crontab will email any output to you.

Christopher Thompson


#/bin/sh
#
# mvcheck
#

MVNAME='MiniVend'
MVURL='www.domain.com/cgi-bin/catalog
MVDIR='/home/domain/minivend'

lynx -source $MVURL > mvcheck.out
if cat mvcheck.out | grep "Internal Server Error" > /dev/null
then
        echo "Minivend Server Down: Internal Server Error"
        $MVDIR/bin/restart
        cat mvcheck.out
elif cat mvcheck.out | grep "server not running" > /dev/null
then
        echo "Minivend Server Down: server not running"
        $MVDIR/bin/restart
        cat mvcheck.out
elif cat mvcheck.out | grep "We're sorry, the $MVNAME server is
unavailable" > /dev/null
then
        echo "Minivend Server Down: We're Sorry..."
        $MVDIR/bin/restart
        cat mvcheck.out
fi


> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Angelica Olins
> Sent: Friday, August 27, 1999 11:25 AM
> To: minivend-users@minivend.com
> Subject: Way to monitor if minivend is hung
>
>
> ******    message to minivend-users from "Angelica Olins"
> <angelica@loadup.com>     ******
>
> Hello Everyone,
>
> When Minvend hangs I get
> >We're sorry, the MiniVend server is unavailable...
> >We are out of service or may be experiencing high system
> demand, please try
> again soon.
> After I restart it works fine.
>
> The WebTrends monitor software only checks whether a page is
> accessible, it
> doesn't check what's being displayed on that
> Page. So its hard to know when MiniVend is hung.
>
> Question: Is there anyway to see if MiniVend is serving the
> 'unavailable'
> error page instead of catalog pages and notify by email.
> --
> Angelica Olins <angelica@LOADUP.COM>
> Loadup Outdoor - "Ahead of the Rest."
> http://www.loadup.com
>
> "I am easily satisfied by the very best"
> - Winston Churchill
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message.
> Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>



Search for: Match: Format: Sort by: