Re: [Hampshire] Simple way to monitor network uptime?

Top Page
Author: Tony Whitmore
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Simple way to monitor network uptime?

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57fcc100.hantslug.org.uk.29638': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Nov 23 13:34:14 2006 GMT
gpg: using DSA key 7920DB2171B98B64
gpg: Can't check signature: No public key
On Thu, Nov 23, 2006 at 09:08:44AM +0000, Alex Phillips wrote:
> That's fabulous, I did spot on minor flaw, you need to create
> /var/log/isp.log if it doesn't already exist, with the correct string
> in it,
>
> E.g.
> echo `date`" Serivce Up" > /var/log/isp.log
>
> Other wise you get an error "./chk_isp.sh: line 40: [: !=: unary
> operator expected"


Hmm, thanks for that. The "touch $LOG_FILE" should take care of creating the
logfile if it doesn't exist. It's because there's no content that the
evaulation doesn't work and returns an error on the first run. I must admit
that if I knew about the bug, I couldn't be borthered to fix it. :)

Cheers,

Tony