Question about ntp script
PAUL WILLIAMSON
pwilliamson at mtb.com
Wed Mar 19 15:17:16 CET 2008
I'm monitoring some ntp devices, and it works fine
for all the appliances - based on the bb-ntp.sh script from
deadcat. However, I have a device that is named
with a string of "ntp" within the system name that makes
the script think it should be testing ntp. I've tried
adding a [[:space:]] to the grep in the script and it
doesn't work (no effect) and the ntp script still
tries to test ntp on the server.
Can anyone help out with a grep that would work
within a script? I tried a grep [[:space:]]ntp <filename>
from the command line that works fine, but it doesn't
work in the shell script.
Thanks,
Paul
************************************
This email may contain privileged and/or confidential information that is intended solely for the use of the addressee. If you are not the intended recipient or entity, you are strictly prohibited from disclosing, copying, distributing or using any of the information contained in the transmission. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act and the Sarbanes-Oxley Act. You may not directly or indirectly reuse or disclose such information for any purpose other than to provide the services for which you are receiving the information.
There are risks associated with the use of electronic transmission. The sender of this information does not control the method of transmittal or service providers and assumes no duty or obligation for the security, receipt, or third party interception of this transmission.
************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080319/c7c6a1d2/attachment.html>
More information about the Xymon
mailing list