Xymon Mailing List Archive search

netapp.pl and uptime

list Hezki Englander
Wed, 14 Nov 2007 10:23:06 +0200
Message-Id: <user-9779460b7eb7@xymon.invalid>

Thanks alot !

Hezki

On Nov 14, 2007 10:03 AM, Dirk Kastens <user-e4253f8fc63b@xymon.invalid>
wrote:
Hi,

Martin Flemming schrieb:
Hi, Francesco et all !

Any hints or methods to debug ?

... we're now in pairs with this failure ...
This error occured to me one year ago. I found a solution and reported
it to the developer. Don't know if he fixed it meanwhile:

Your script works if the uptime is 10 days or more. If it's less than 10
days there is a blank in the number of days, for example " 3 days".
I just added the following line to your get_version procedure (line 706
of netapp.pl) to strip off the leading blank:

foreach my $line (@val) {
    $line =~ s/^ //;
    if (index($line,":") != -1) {

Now the uptime procedure works.

--
Regards,

Dirk Kastens
Universitaet Osnabrueck, Rechenzentrum (Computer Center)
Albrechtstr. 28, 49069 Osnabrueck, Germany
Tel.: +XX-XXX-XXX-XXXX, FAX: -2470