Rép. : [Nagios-users] Check_NTP

Serveur-Faucon Surveillance SrvFaucon at cslaval.qc.ca
Tue Oct 28 20:13:56 CET 2003


The only hint I can give you is, do you have ntp version 4.1.2 or later?




---------------------------------------------------
Alexandre Racine
Montréal, Québec, Canada

>>> "Cook, Garry" <GWCOOK at mactec.com> 28/10/03 11h32 >>>
Nagios v1.1
Plugins v1.3.1

I'm attempting to use the check_ntp plugin from the command line. When
run, it gives the error 'Could not open ntpdate'. So I open up the
check_ntp script and check it out, and I find what appears to be a
placeholder 'PATH_TO_NTPDATE'. I changed this to '/usr/sbin/ntpdate' and
now when I run the command I get this error:

Use of uninitialized value in concatenation (.) or string at ./check_ntp
line 179.
NTP OK: Offset -0.007811 secs

Line 179 lookl like:

If (!open (NTPDATE, "$utils::/usr/sbin/ntpdate -q $host 2>&1 |")) {

So, it appears as though the check is working now, although I am getting
an error. I'm not sure if this error will cause Nagios to report the
service as critical/not responding or something similar, but I'd like to
be able to run it without errors regardless.

I've also run into the problem when I replace the ntpq placeholder later
on in the script.

Can anyone recognize what might be wrong with line 179? 

TIA

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/ 
303.308.6228 (Office) - 720.220.1862 (Mobile) 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/ 
_______________________________________________
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: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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