R: Check_ntp

Marco Borsani m.borsani at it.net
Fri Mar 24 15:28:10 CET 2006


When I run "check_ntp -H xxx.xxx.xxx.xxx" (where xxx.xxx.xxx.xxx is a linux
system syncronized with the same ntp server of nagios system) I receive:
NTP CRITICAL: No suitable peer server found - Server for ntp probably down

Before this test, the plugin seemed work fine (with another target host):
# check_ntp -H zzz.zzz.zzz.zzz
# NTP OK: Offset 0.000134 secs, jitter 3.23 msec, peer is stratum 2

Any idea?
Marco


-}-----Messaggio originale-----
-}Da: nagios-users-admin at lists.sourceforge.net 
-}[mailto:nagios-users-admin at lists.sourceforge.net] Per conto 
-}di Marco Borsani
-}Inviato: giovedì 23 marzo 2006 16.23
-}A: 'Marc Powell'; 'NAGIOS'
-}Oggetto: R: [Nagios-users] Check_ntp
-}
-}My lines were:
-}
-}use lib "/usr/local/nagios/libexec" /libexec use utils 
-}qw($TIMEOUT %ERRORS &print_revision &support); 
-}
-}Now the command answers correctly !! ;-)
-}
-}The help on-line (check_ntp -h) is not so easy to understand...
-}
-}Does check_ntp compare the target host specified time with 
-}the locale time (Nagios server time) or what?
-}
-}Regards
-}Marco
-}
-}-}-----Messaggio originale-----
-}-}Da: nagios-users-admin at lists.sourceforge.net
-}-}[mailto:nagios-users-admin at lists.sourceforge.net] Per conto 
-}-}di Marc Powell
-}-}Inviato: giovedì 23 marzo 2006 16.14
-}-}A: NAGIOS
-}-}Oggetto: RE: [Nagios-users] Check_ntp
-}-}
-}-}Look around line 66 in the plugin and verify that it looks 
-}-}something like -- -} -}use lib "/usr/local/nagios/libexec" 
-}; -}use utils qw($TIMEOUT %ERRORS &print_revision &support); -}
-}-}--
-}-}Marc
-}-}
-}-}> -----Original Message-----
-}-}> From: nagios-users-admin at lists.sourceforge.net
-}-}[mailto:nagios-users-
-}-}> admin at lists.sourceforge.net] On Behalf Of Marco Borsani 
-}-}> Sent: Thursday, March 23, 2006 3:02 AM -}> To: 'Bill Jacqmein'
-}-}> Cc: 'NAGIOS'
-}-}> Subject: R: [Nagios-users] Check_ntp -}> -}> I also 
-}tested plugins 1.4.2, but I received same error message -}> 
-}-}> Marco -}> -}> -}-----Messaggio originale----- -}> -}Da: 
-}Bill Jacqmein [mailto:wrjacqmein at gmail.com] -}> -}Inviato: 
-}mercoledì 22 marzo 2006 17.34 -}> -}A: Marco Borsani -}> 
-}-}Cc: NAGIOS -}> -}Oggetto: Re: [Nagios-users] Check_ntp -} 
-}-}upgrade to the latest -}> version of the plugins at 
-}-}http://nagiosplug.sourceforge.net/
-}-}> -}barring that
-}-}> -}check that utils.pm is in the libexec directory.
-}-}> -}
-}-}> -}
-}-}> -}On 3/22/06, Marco Borsani <m.borsani at it.net> wrote:
-}-}> -}> Hi all !
-}-}> -}>
-}-}> -}> I'd to use check_ntp, but when I "try" to running it 
-}, I obtain:
-}-}> -}> # ./check_ntp
-}-}> -}> "use" not allowed in expression at ./check_ntp line 
-}66, -}at -}end -}> of line -}> syntax error at ./check_ntp 
-}line 66, near "libexec use -}> utils "
-}-}> -}> Execution of ./check_ntp aborted due to compilation errors.
-}-}> -}>
-}-}> -}> I don't know perl  :-(
-}-}> -}>
-}-}> -}> I am using plugins 1.3.1 and Nagios 1.3 (on a HP-UX 
-}-}11.00 system).
-}-}> -}>
-}-}> -}> Regards
-}-}> -}>
-}-}> -}> Marco Borsani
-}-}> -}> Unix & Monitoring System Administrator Technical Operation
-}-}> -}> Tel.    +39 010 4310115
-}-}> -}> Fax     +39 010 4327454
-}-}> -}> E-mail: m.borsani at IT.net
-}-}> -}>
-}-}> -}> ITnet S.r.l. - Direzione e Coordinamento di WIND -}> 
-}-}Telecomunicazioni S.p.A.
-}-}> -}> Internet Service Provider
-}-}> -}> Sede legale:                     Via C.G.Viola, 48 - 
-}00148 Roma
-}-}> -}> Dir. Centrale e Amministrativa:         Via Pacinotti, 39
-}-}> -}>                                      16151 Genova (Italy)
-}-}> -}>
-}-}> -}> http://www.it.net
-}-}> -}> mailto:info at IT.net
-}-}> -}> 
-}_______________________________________________________________
-}-}> -}> Altre sedi ITnet:
-}-}> -}> MILANO tel.: +39 02 30114900    info-milano at IT.net
-}-}> -}> ROMA    tel.: +39 06 83116707    info-roma at IT.net
-}-}> -}> 
-}_______________________________________________________________
-}-}> -}> ITnet is associated to CIX (Commercial IP eXchange) 
-}and -}RIPE -}> ITnet is -}> associated to AIIP (Associazione 
-}Italiana Internet -}> Providers) -}> -}> -}> -}> -}> -}> 
-}-------------------------------------------------------
-}-}> -}> This SF.Net email is sponsored by xPML, a 
-}-}groundbreaking scripting -}> -}> language that extends 
-}applications into web and mobile -}media. 
-}-}> Attend -}> the live webcast and join the prime developer 
-}group -}> -}breaking into this new coding territory!
-}-}> -}>
-}-}>
-}-}-}http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241
-}720&dat=12
-}-}> 16 -}> 42 _______________________________________________
-}-}> -}> 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 -}> -} -}> -}> -}> -}> 
-}-------------------------------------------------------
-}-}> This SF.Net email is sponsored by xPML, a groundbreaking 
-}scripting -}> language that extends applications into web and 
-}mobile -}media. Attend -}> the live webcast and join the 
-}prime developer group -}breaking into this -}> new coding territory!
-}-}> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
-}-}> _______________________________________________
-}-}> 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 -} -}
-}-}-------------------------------------------------------
-}-}This SF.Net email is sponsored by xPML, a groundbreaking 
-}-}scripting language that extends applications into web and 
-}-}mobile media. Attend the live webcast and join the prime 
-}-}developer group breaking into this new coding territory!
-}-}http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
-}-}_______________________________________________
-}-}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 -}
-}
-}
-}
-}-------------------------------------------------------
-}This SF.Net email is sponsored by xPML, a groundbreaking 
-}scripting language that extends applications into web and 
-}mobile media. Attend the live webcast and join the prime 
-}developer group breaking into this new coding territory!
-}http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
-}_______________________________________________
-}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
-}



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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