Log not logging, trends.cgi and check_udp and check_ntp error

Subhendu Ghosh sghosh at sghosh.org
Fri Apr 25 11:12:47 CEST 2003


On Thu, 24 Apr 2003, Troutman wrote:
> 
> from checkcommands.cfg :
> $USER1$/check_ntp -H $HOSTADDRESS$ -w 60 -c 120 -j 5000 -k 10000
> 
> /usr/lib/nagios/plugins/check_ntp x.x.x.x -w 60 -c 120 -j 5000 -k 10000
> NTP WARNING: Offset -99.122618 msec > +/- 60 sec, jitter 1.641 msec
> 
> If I change -w to 120, I get an OK.  The --help file reads :
> -w ( --warning)
>       Clock offset in seconds at which a warning message will be generated.
>          Defaults to 60.
> 
> Perhaps that should read msec instead of seconds.
> 
> >check_ntp - does 2 tests: ntpdate against a server (localtime vs server
> >time) and ntpdc (server is in sync with its peers).
> >


I hate bugs ;) 

The logic is correct and the help statement is correct. The output 
statement is not correct.

All offset numbers should be "sec" not "msec"
All jitter numbers are "msec" 

So it looks like you have a 99 sec offset from the ntp server an hence 
the warning.

(patched version in CVS)

> >check_udp does require -H
> 
> /usr/lib/nagios/plugins/check_udp -H x.x.x.x
> Host name was not supplied
> Usage: check_udp -H <host_address> [-p port] [-w warn_time] [-c crit_time]
>           [-e expect] [-s send] [-t to_sec] [-v]
> 
> /usr/lib/nagios/plugins/check_udp x.x.x.x
> No data was recieved from host!
> No response from host on port 0

Can you try the check_udp from CVS 
(it is now a link to check_tcp and the 
option handling has been updated).


> 
> Perhaps there was a bug in the rpm for the 1.3-1 plugins.  This version of 
> check_udp requires you not to use '-H' and check_ntp doesn't seem to be 
> accepting the assigned values (unless I am reading the --help instructions 
> incorrectly).
> 
> 

-- 

-sg



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list