[Nagiosplug-devel] Setting the check_ntp error codes

Adams, Gavin gadams at promisant.com
Fri May 24 14:03:05 CEST 2002


> From: Adams, Gavin
> 
> Hi all,
> 
> while (<NTPDATE>) {
>         print if ($verbose);
>         $msg = $_ unless ($msg);
>         if (/(offset|adjust)\s+([-.\d]+)/i) {
>                 $offset = $2;
> 		    $ntpdate_error = $offset ? $ERRORS{"OK"} : \
> $ERRORS{"UNKNOWN"};    # add this line in
           ^^^^^^^
actually, I meant CRITICAL here.

Regards,

--- Gavin




More information about the Devel mailing list