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: [EMAIL PROTECTED] -}[mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] -}[mailto:nagios-users- -}> [EMAIL PROTECTED] 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:[EMAIL PROTECTED] -}> -}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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] -}> -}> -}> -}> 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:[EMAIL PROTECTED] -}> -}> _______________________________________________________________ -}> -}> Altre sedi ITnet: -}> -}> MILANO tel.: +39 02 30114900 [EMAIL PROTECTED] -}> -}> ROMA tel.: +39 06 83116707 [EMAIL PROTECTED] -}> -}> _______________________________________________________________ -}> -}> 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=241720&dat=12 -}> 16 -}> 42 _______________________________________________ -}> -}> Nagios-users mailing list -}> -}> [email protected] -}> -}> 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 -}> [email protected] -}> 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 [EMAIL PROTECTED] -}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 [email protected] 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
