<div class="gmail_extra">Hi Alex,</div><div class="gmail_extra"><br></div><div class="gmail_extra">It looks like you are using the wrong syntax for the check_time plugin. Please paste the code you are using.</div><div class="gmail_extra">

<br></div><div class="gmail_extra">Get it working from the command line first before adding a host definition.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 April 2012 23:03,  <span dir="ltr"><<a href="mailto:abhay.kshinde@wipro.com" target="_blank">abhay.kshinde@wipro.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p>Dear Alex,<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Thanx for replying.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>I am getting the below error while I am trying to use that script.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><img width="726" height="55" src="cid:image001.png@01CD2293.F520B230"><u></u><u></u></p>
<p>Could you please suggest on this.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Abhay<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>-----Original Message-----<br>
From: <a href="mailto:nagiosplug-help-request@lists.sourceforge.net" target="_blank">nagiosplug-help-request@lists.sourceforge.net</a> [mailto:<a href="mailto:nagiosplug-help-request@lists.sourceforge.net" target="_blank">nagiosplug-help-request@lists.sourceforge.net</a>]
<br>
Sent: Monday, April 23, 2012 5:50 PM<br>
To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><br>
Subject: Nagiosplug-help Digest, Vol 71, Issue 8</p>
<p><u></u> <u></u></p>
<p>Send Nagiosplug-help mailing list submissions to<u></u><u></u></p>
<p>      <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>To subscribe or unsubscribe via the World Wide Web, visit<u></u><u></u></p>
<p>      <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><u></u><u></u></p>
<p>or, via email, send a message with subject or body 'help' to<u></u><u></u></p>
<p>      <a href="mailto:nagiosplug-help-request@lists.sourceforge.net" target="_blank">nagiosplug-help-request@lists.sourceforge.net</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>You can reach the person managing the list at<u></u><u></u></p>
<p>      <a href="mailto:nagiosplug-help-owner@lists.sourceforge.net" target="_blank">nagiosplug-help-owner@lists.sourceforge.net</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>When replying, please edit your Subject line so it is more specific<u></u><u></u></p>
<p>than "Re: Contents of Nagiosplug-help digest..."<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>Today's Topics:<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>   1. Re: help (Alex Griffin)<u></u><u></u></p>
<p>   2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>----------------------------------------------------------------------<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Message: 1<u></u><u></u></p>
<p>Date: Fri, 20 Apr 2012 09:19:42 -0500<u></u><u></u></p>
<p>From: Alex Griffin <<a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a>><u></u><u></u></p>
<p>Subject: Re: [Nagiosplug-help] help<u></u><u></u></p>
<p>To: Nagios Plugin Help List <<a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a>><u></u><u></u></p>
<p>Message-ID: <<a href="mailto:4F91707E.70300@nagios.com" target="_blank">4F91707E.70300@nagios.com</a>><u></u><u></u></p>
<p>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>There are a few NTP plugins on Nagios Exchange: <u></u><u></u></p>
<p><a href="http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp" target="_blank">http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp</a><u></u><u></u></p>


<p><u></u> <u></u></p>
<p>I haven't used any of them so I'm afraid I can't get more detailed than
<u></u><u></u></p>
<p>that, but you'll need an NTP server to sync against. There are publicly
<u></u><u></u></p>
<p>available servers you could try if your whole network has internet
<u></u><u></u></p>
<p>access, otherwise you'll need to run your own.<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Alex Griffin<u></u><u></u></p>
<p>---<u></u><u></u></p>
<p>Tech Team<u></u><u></u></p>
<p><a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Abhay Shinde wrote:<u></u><u></u></p>
<p>> HI Team,<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> We are using Nagios to monitor our infrastructure.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> We have windows environment and need to ensure that, all the servers<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> in infrastructure should have similar time(+ or - 1s offset).<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Could you please provide the tips regarding the changes required in<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> NSC.ini file(On remote windows client) and that of Nagios server.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Basically I am the starter in the knowledge of Nagios.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> So, Could you please provide the detailed procedure to add this service<u></u><u></u></p>
<p>> to monitor the time synch issues in infrastructure.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Best Regards,<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> *Abhay Shinde*<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Wipro Technologies -Pune-India<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------------------------------------------------------<u></u><u></u></p>
<p>> For Developers, A Lot Can Happen In A Second.<u></u><u></u></p>
<p>> Boundary is the first to Know...and Tell You.<u></u><u></u></p>
<p>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<u></u><u></u></p>
<p>> <a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> _______________________________________________<u></u><u></u></p>
<p>> Nagiosplug-help mailing list<u></u><u></u></p>
<p>> <a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p>> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><u></u><u></u></p>
<p>> ::: Please include plugins version (-v) and OS when reporting any issue.<u></u><u></u></p>
<p>> ::: Messages without supporting info will risk being sent to /dev/null<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>------------------------------<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Message: 2<u></u><u></u></p>
<p>Date: Mon, 23 Apr 2012 17:31:55 +0530<u></u><u></u></p>
<p>From: Kamlesh Verma <<a href="mailto:kamleshverma@superseva.com" target="_blank">kamleshverma@superseva.com</a>><u></u><u></u></p>
<p>Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7<u></u><u></u></p>
<p>To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p>Message-ID: <<a href="mailto:4F9544B3.8070101@superseva.com" target="_blank">4F9544B3.8070101@superseva.com</a>><u></u><u></u></p>
<p>Content-Type: text/plain; charset="iso-8859-1"<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Hi All,<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>I am trying to install /apt-get install nagios-nrpe-server nagios-plugin
<u></u><u></u></p>
<p>on my server which is running on Ubuntu 11.04 64 bit but I found
<u></u><u></u></p>
<p>following error. /<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Please help me.....<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>0 upgraded, 17 newly installed, 0 to remove and 93 not upgraded.<u></u><u></u></p>
<p>Need to get 21.9 MB/25.1 MB of archives.<u></u><u></u></p>
<p>After this operation, 75.9 MB of additional disk space will be used.<u></u><u></u></p>
<p>Do you want to continue [Y/n]? y<u></u><u></u></p>
<p>Err <a href="http://in.archive.ubuntu.com/ubuntu/" target="_blank">http://in.archive.ubuntu.com/ubuntu/</a> natty-updates/main libwbclient0
<u></u><u></u></p>
<p>amd64 2:3.5.8~dfsg-1ubuntu2.3<u></u><u></u></p>
<p>   404  Not Found [IP: 91.189.92.184 80]<u></u><u></u></p>
<p>Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main libwbclient0
<u></u><u></u></p>
<p>amd64 2:3.5.8~dfsg-1ubuntu2.3<u></u><u></u></p>
<p>   404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main samba-common
<u></u><u></u></p>
<p>all 2:3.5.8~dfsg-1ubuntu2.3<u></u><u></u></p>
<p>   404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main
<u></u><u></u></p>
<p>samba-common-bin amd64 2:3.5.8~dfsg-1ubuntu2.3<u></u><u></u></p>
<p>   404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main smbclient
<u></u><u></u></p>
<p>amd64 2:3.5.8~dfsg-1ubuntu2.3<u></u><u></u></p>
<p>   404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Failed to fetch <u></u><u></u></p>
<p><a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_amd64.deb" target="_blank">http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_amd64.deb</a> 
<u></u><u></u></p>
<p>404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Failed to fetch <u></u><u></u></p>
<p><a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.8~dfsg-1ubuntu2.3_all.deb" target="_blank">http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.8~dfsg-1ubuntu2.3_all.deb</a> 
<u></u><u></u></p>
<p>404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Failed to fetch <u></u><u></u></p>
<p><a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.5.8~dfsg-1ubuntu2.3_amd64.deb" target="_blank">http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.5.8~dfsg-1ubuntu2.3_amd64.deb</a> 
<u></u><u></u></p>
<p>404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>Failed to fetch <u></u><u></u></p>
<p><a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.8~dfsg-1ubuntu2.3_amd64.deb" target="_blank">http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.8~dfsg-1ubuntu2.3_amd64.deb</a> 
<u></u><u></u></p>
<p>404  Not Found [IP: 91.189.92.167 80]<u></u><u></u></p>
<p>E: Unable to fetch some archives, maybe run apt-get update or try with
<u></u><u></u></p>
<p>--fix-missing?<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>-- <u></u><u></u></p>
<p>From:-<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>Kamlesh Verma<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>System Administrator | Superseva Services<u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>On Friday 20 April 2012 06:42 PM, <u></u><u></u></p>
<p><a href="mailto:nagiosplug-help-request@lists.sourceforge.net" target="_blank">nagiosplug-help-request@lists.sourceforge.net</a> wrote:<u></u><u></u></p>
<p>> Send Nagiosplug-help mailing list submissions to<u></u><u></u></p>
<p>>     <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> To subscribe or unsubscribe via the World Wide Web, visit<u></u><u></u></p>
<p>>     <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><u></u><u></u></p>
<p>> or, via email, send a message with subject or body 'help' to<u></u><u></u></p>
<p>>     <a href="mailto:nagiosplug-help-request@lists.sourceforge.net" target="_blank">nagiosplug-help-request@lists.sourceforge.net</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> You can reach the person managing the list at<u></u><u></u></p>
<p>>     <a href="mailto:nagiosplug-help-owner@lists.sourceforge.net" target="_blank">nagiosplug-help-owner@lists.sourceforge.net</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> When replying, please edit your Subject line so it is more specific<u></u><u></u></p>
<p>> than "Re: Contents of Nagiosplug-help digest..."<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> Today's Topics:<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>>     1. Re: Strange problem with Bash, AWK and check_http (Edward Blum)<u></u><u></u></p>
<p>>     2. help (<a href="mailto:abhay.kshinde@wipro.com" target="_blank">abhay.kshinde@wipro.com</a>)<u></u><u></u></p>
<p>>     3. Nagiosplug Help,     Njlytoh Hotily left a message for you... (Badoo)<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> ----------------------------------------------------------------------<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Message: 1<u></u><u></u></p>
<p>> Date: Sun, 15 Apr 2012 22:59:10 +0100<u></u><u></u></p>
<p>> From: Edward Blum<<a href="mailto:eddy.blum@gmail.com" target="_blank">eddy.blum@gmail.com</a>><u></u><u></u></p>
<p>> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and<u></u><u></u></p>
<p>>     check_http<u></u><u></u></p>
<p>> To: Alex Griffin<<a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a>><u></u><u></u></p>
<p>> Cc: Nagios Plugin Help List<<a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a>><u></u><u></u></p>
<p>> Message-ID:<u></u><u></u></p>
<p>>     <<a href="mailto:CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com" target="_blank">CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com</a>><u></u><u></u></p>
<p>> Content-Type: text/plain; charset="iso-8859-1"<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Super useful info Alex!  Many thanks for taking time to reply, much<u></u><u></u></p>
<p>> appreciated! Script now working nicely :) I tried to use trim but couldn't<u></u><u></u></p>
<p>> get anything useful out of it, and think I searched google for help for<u></u><u></u></p>
<p>> hours and hours but couldn't find much. I'll get the hang of it all one<u></u><u></u></p>
<p>> day. Just needed the directions of an old hat!<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> P.S Nagios rocks!<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Cheers<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> On 11 April 2012 17:16, Alex Griffin<<a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a>>  wrote:<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>>> Hey Edward,<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>> I'm glad you got everything figured out! I just thought I'd leave some<u></u><u></u></p>
<p>>> shell tips based on the few lines of your script that you posted.<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>> Your first pipeline can be replaced by a single awk command without losing<u></u><u></u></p>
<p>>> much clarity (well, if you know awk). You also had some unnecessary quotes<u></u><u></u></p>
<p>>> in your 'command' variable assignment.<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>>     test=$(awk -F= '/ServerFileName/&&  /HHR/ {print $2}' /tmp/updates.txt)<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>>     command="$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" target="_blank">update.efefktdfde.co.uk</a> -u/$test"<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>> If you don't know a whole lot about awk, or if it's confusing for some<u></u><u></u></p>
<p>>> other reason, you can at least get rid of cat by moving the filename to<u></u><u></u></p>
<p>>> grep's invocation.<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>>     grep ServerFileName /tmp/updates.txt<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>> Finally, removing nasty invisible characters is a job for the tr utility.<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>>     fileName=$(echo "$fileName" | tr -dc [:print:])<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>> Alex Griffin<u></u><u></u></p>
<p>>> ---<u></u><u></u></p>
<p>>> Tech Team<u></u><u></u></p>
<p>>> <a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a><u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>><u></u> <u></u></p>
<p>>> On 04/11/2012 10:20 AM, Edward Blum wrote:<u></u><u></u></p>
<p>>><u></u> <u></u></p>
<p>>>> FIXED!<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> With a little research and when running check_http with -v I see the line<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>   is 135 <a href="http://charactersktrace.co.uk:80/**SetupHHRImporter1020.exe" target="_blank">charactersktrace.co.uk:80/**SetupHHRImporter1020.exe</a><<a href="http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe" target="_blank">http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe</a>><u></u><u></u></p>


<p>>>> <<a href="http://charactersktrace.co." target="_blank">http://charactersktrace.co.</a>**uk:80/SetupHHRImporter1020.exe<<a href="http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe" target="_blank">http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe</a>><u></u><u></u></p>


<p>>>> **><u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> For some reason the variable had a funny hidden character of some sort<u></u><u></u></p>
<p>>>> in which check_http doesn't like.<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> I cleansed the variable with:<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> fileName=$(echo $fileName | egrep "[a-z,A-Z,.,0-9]{1,}" -o)<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> On 10 April 2012 23:01, Edward Blum<<a href="mailto:eddy.blum@gmail.com" target="_blank">eddy.blum@gmail.com</a><u></u><u></u></p>
<p>>>> <mailto:<a href="mailto:eddy.blum@gmail.com" target="_blank">eddy.blum@gmail.com</a>>>  wrote:<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     Hi There,<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     I am having very strange problems creating a nagios plugin in Bash<u></u><u></u></p>
<p>>>>     using check_http to check contents of a Amazon S3 Bucket.<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     I am grabbing the URL of the file to grab from a txt file (changes<u></u><u></u></p>
<p>>>>     often) inside the bucket and using awk and grep extracting the<u></u><u></u></p>
<p>>>> Filename.<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     I have using the following syntax:<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     check_http -H <a href="http://myhost.com" target="_blank">myhost.com</a><<a href="http://myhost.com/" target="_blank">http://myhost.com/</a>>  -N -v -u /testing.exe<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     Now this works fine when I run from the command line it also works<u></u><u></u></p>
<p>>>>     fine when running from the bash script. The problem lies when I try<u></u><u></u></p>
<p>>>>     the use the variable extracted using awk.<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     Here are the results of running my bash script :<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     is 135 <a href="http://charactersktdfde.co.uk:80/**SetupddfImporter1020.exe" target="_blank">charactersktdfde.co.uk:80/**SetupddfImporter1020.exe</a><<a href="http://charactersktdfde.co.uk:80/SetupddfImporter1020.exe" target="_blank">http://charactersktdfde.co.uk:80/SetupddfImporter1020.exe</a>><u></u><u></u></p>


<p>>>>     <<a href="http://charactersktdfde.co." target="_blank">http://charactersktdfde.co.</a>**uk/SetupddfImporter1020.exe<<a href="http://charactersktdfde.co.uk/SetupddfImporter1020.exe" target="_blank">http://charactersktdfde.co.uk/SetupddfImporter1020.exe</a>><u></u><u></u></p>


<p>>>>     STATUS: HTTP/1.1 400 Bad Request<u></u><u></u></p>
<p>>>>     **** HEADER ****<u></u><u></u></p>
<p>>>>     Transfer-Encoding: chunked<u></u><u></u></p>
<p>>>>     Date: Tue, 10 Apr 2012 21:47:21 GMT<u></u><u></u></p>
<p>>>>     Connection: close<u></u><u></u></p>
<p>>>>     Server: AmazonS3<u></u><u></u></p>
<p>>>>     **** CONTENT ****<u></u><u></u></p>
<p>>>>        [[ skipped ]]<u></u><u></u></p>
<p>>>>     HTTP WARNING: HTTP/1.1 400 Bad Request - 135 bytes in 0.027 second<u></u><u></u></p>
<p>>>>     response time |time=0.027087s;;;0.000000 size=135B;;;0<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     Here is what should appear:<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     <a href="http://update.efefktdfde.co." target="_blank">http://update.efefktdfde.co.</a>**uk:80/SetupddfImporter1020.exe<<a href="http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe" target="_blank">http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe</a>><u></u><u></u></p>


<p>>>>     <<a href="http://update.efefktdfde.co." target="_blank">http://update.efefktdfde.co.</a>**uk/SetupddfImporter1020.exe<<a href="http://update.efefktdfde.co.uk/SetupddfImporter1020.exe" target="_blank">http://update.efefktdfde.co.uk/SetupddfImporter1020.exe</a>>><u></u><u></u></p>


<p>>>> is 1460<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     characters<u></u><u></u></p>
<p>>>>     STATUS: HTTP/1.1 200 OK<u></u><u></u></p>
<p>>>>     **** HEADER ****<u></u><u></u></p>
<p>>>>     x-amz-id-2:<u></u><u></u></p>
<p>>>>     lmJo9jgflJdp+**ehTirekL19lXFY5KsNJ13UkiSWlNji**WzeYtVJ1OX7VIDZrsMNUJ<u></u><u></u></p>
<p>>>>     x-amz-request-id: 7D72700CDF05E228<u></u><u></u></p>
<p>>>>     Date: Tue, 10 Apr 2012 21:47:13 GMT<u></u><u></u></p>
<p>>>>     x-amz-meta-cb-modifiedtime: Fri, 07 Oct 2011 03:36:32 GMT<u></u><u></u></p>
<p>>>>     Last-Modified: Mon, 24 Oct 2011 20:41:44 GMT<u></u><u></u></p>
<p>>>>     ETag: "**ca684ddfa09409f8890e8c92bc68f6**19"<u></u><u></u></p>
<p>>>>     Accept-Ranges: bytes<u></u><u></u></p>
<p>>>>     Content-Type: application/octet-stream<u></u><u></u></p>
<p>>>>     Content-Length: 6056760<u></u><u></u></p>
<p>>>>     Server: AmazonS3<u></u><u></u></p>
<p>>>>     **** CONTENT ****<u></u><u></u></p>
<p>>>>        [[ skipped ]]<u></u><u></u></p>
<p>>>>     HTTP OK: HTTP/1.1 200 OK - 1460 bytes in 0.122 second response time<u></u><u></u></p>
<p>>>>     |time=0.122165s;;;0.000000 size=1460B;;;0<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     In the bash script I am using the syntax:<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     test=$(cat /tmp/updates.txt | grep ServerFileName | awk<u></u><u></u></p>
<p>>>>     'BEGIN{FS="="}{print $2}' | grep HHR)<u></u><u></u></p>
<p>>>>     command="$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" target="_blank">update.efefktdfde.co.uk</a><u></u><u></u></p>
<p>>>>     <<a href="http://update.efefktdfde.co." target="_blank">http://update.efefktdfde.co.</a>**uk/<<a href="http://update.efefktdfde.co.uk/" target="_blank">http://update.efefktdfde.co.uk/</a>>><u></u><u></u></p>


<p>>>> -u"/"$test"<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     If I just do test=SetupddfImporter1020.exe then call command it<u></u><u></u></p>
<p>>>>     works fine, so I would think its my variable however if I run a If<u></u><u></u></p>
<p>>>>     statement to check if the one generating by the awk command is the<u></u><u></u></p>
<p>>>>     same as  test=SetupddfImporter1020.exe it says they are equal/<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>>     This is driving me round the bend, any help would be much appreciated!!<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> ------------------------------**------------------------------**<u></u><u></u></p>
<p>>>> ------------------<u></u><u></u></p>
<p>>>> Better than sec? Nothing is better than sec when it comes to<u></u><u></u></p>
<p>>>> monitoring Big Data applications. Try Boundary one-second<u></u><u></u></p>
<p>>>> resolution app monitoring today. Free.<u></u><u></u></p>
<p>>>> <a href="http://p.sf.net/sfu/Boundary-**dev2dev" target="_blank">http://p.sf.net/sfu/Boundary-**dev2dev</a><<a href="http://p.sf.net/sfu/Boundary-dev2dev" target="_blank">http://p.sf.net/sfu/Boundary-dev2dev</a>><u></u><u></u></p>


<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>><u></u> <u></u></p>
<p>>>> ______________________________**_________________<u></u><u></u></p>
<p>>>> Nagiosplug-help mailing list<u></u><u></u></p>
<p>>>> Nagiosplug-help@lists.**<a href="http://sourceforge.net" target="_blank">sourceforge.net</a><<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a>><u></u><u></u></p>


<p>>>> <a href="https://lists.sourceforge.net/**lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/**lists/listinfo/nagiosplug-help</a><<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>><u></u><u></u></p>


<p>>>> ::: Please include plugins version (-v) and OS when reporting any issue.<u></u><u></u></p>
<p>>>> ::: Messages without supporting info will risk being sent to /dev/null<u></u><u></u></p>
<p>>>><u></u> <u></u></p>
<p>> -------------- next part --------------<u></u><u></u></p>
<p>> An HTML attachment was scrubbed...<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Message: 2<u></u><u></u></p>
<p>> Date: Thu, 19 Apr 2012 15:34:25 +0000<u></u><u></u></p>
<p>> From:<<a href="mailto:abhay.kshinde@wipro.com" target="_blank">abhay.kshinde@wipro.com</a>><u></u><u></u></p>
<p>> Subject: [Nagiosplug-help] help<u></u><u></u></p>
<p>> To:<<a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a>><u></u><u></u></p>
<p>> Message-ID:<u></u><u></u></p>
<p>>     <<a href="mailto:8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com" target="_blank">8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com</a>><u></u><u></u></p>
<p>> Content-Type: text/plain; charset="us-ascii"<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> HI Team,<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> We are using Nagios to monitor our infrastructure.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> We  have windows environment and need to ensure that, all the servers<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> in infrastructure should have similar time(+ or - 1s offset).<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> Could you please provide the tips regarding the changes required in<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> NSC.ini file(On remote windows client) and that of Nagios server.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> Basically I am the starter in the knowledge of Nagios.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> So, Could you please provide the detailed procedure to add this service to monitor the time synch issues in infrastructure.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> Best Regards,<u></u><u></u></p>
<p>> Abhay Shinde<u></u><u></u></p>
<p>>   Wipro Technologies -Pune-India<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> -------------- next part --------------<u></u><u></u></p>
<p>> An HTML attachment was scrubbed...<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Message: 3<u></u><u></u></p>
<p>> Date: Fri, 20 Apr 2012 13:12:34 +0000<u></u><u></u></p>
<p>> From: Badoo<<a href="mailto:noreply%2B396078011@badoo.com" target="_blank">noreply+396078011@badoo.com</a>><u></u><u></u></p>
<p>> Subject: [Nagiosplug-help] Nagiosplug Help,   Njlytoh Hotily left a<u></u><u></u></p>
<p>>     message for you...<u></u><u></u></p>
<p>> To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p>> Message-ID:<u></u><u></u></p>
<p>>     <<a href="mailto:mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net" target="_blank">mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net</a>><u></u><u></u></p>
<p>> Content-Type: text/plain; charset="utf-8"<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Njlytoh Hotily left a message for you...<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Its sender and content will be shown only to you and you can delete it at any time. You can instantly reply to it, using the message exchange system. To find out what's in the message, just follow this link:<u></u><u></u></p>


<p>> <a href="http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb" target="_blank">http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb</a><u></u><u></u></p>


<p>><u></u> <u></u></p>
<p>> Some other people in the area who are on Badoo<u></u><u></u></p>
<p>> Quosho (Lviv, Ukraine)<u></u><u></u></p>
<p>> Vita (Lviv, Ukraine)<u></u><u></u></p>
<p>> Kristina (Lviv, Ukraine)<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> <a href="http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb" target="_blank">http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb</a><u></u><u></u></p>


<p>><u></u> <u></u></p>
<p>> If the link in this message does not work, try copying and pasting it into your browser.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> This email is part of our delivery procedure for the message sent by Njlytoh Hotily. If you have received this email by mistake, please ignore it. The message will be deleted soon.<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> Have fun!<u></u><u></u></p>
<p>> The Badoo Team<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> You have received this email from Badoo Trading Limited (postal address below).<u></u><u></u></p>
<p>> <a href="http://eu1.badoo.com/impersonation.phtml?lang_id=3&mail_code=21&email=nagiosplug-help%40lists.sourceforge.net&secret=&action=block&block_code=a703df&m=21&mid=4f9160c10000000000030000179babbb" target="_blank">http://eu1.badoo.com/impersonation.phtml?lang_id=3&mail_code=21&email=nagiosplug-help%40lists.sourceforge.net&secret=&action=block&block_code=a703df&m=21&mid=4f9160c10000000000030000179babbb</a><u></u><u></u></p>


<p>> Badoo Trading Limited is a limited company registered in England and Wales<u></u><u></u></p>
<p>> under CRN 7540255 with its registered office at 12 Red Lion Square, London, WC1R 4QD.<u></u><u></u></p>
<p>> -------------- next part --------------<u></u><u></u></p>
<p>> An HTML attachment was scrubbed...<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------------------------------------------------------<u></u><u></u></p>
<p>> For Developers, A Lot Can Happen In A Second.<u></u><u></u></p>
<p>> Boundary is the first to Know...and Tell You.<u></u><u></u></p>
<p>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<u></u><u></u></p>
<p>> <a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> ------------------------------<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>> _______________________________________________<u></u><u></u></p>
<p>> Nagiosplug-help mailing list<u></u><u></u></p>
<p>> <a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p>> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><u></u><u></u></p>
<p>><u></u> <u></u></p>
<p>><u></u> <u></u></p>
<p>> End of Nagiosplug-help Digest, Vol 71, Issue 7<u></u><u></u></p>
<p>> **********************************************<u></u><u></u></p>
<p>><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>-------------- next part --------------<u></u><u></u></p>
<p>An HTML attachment was scrubbed...<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>------------------------------<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>------------------------------------------------------------------------------<u></u><u></u></p>
<p>For Developers, A Lot Can Happen In A Second.<u></u><u></u></p>
<p>Boundary is the first to Know...and Tell You.<u></u><u></u></p>
<p>Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<u></u><u></u></p>
<p><a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>------------------------------<u></u><u></u></p>
<p><u></u> <u></u></p>
<p>_______________________________________________<u></u><u></u></p>
<p>Nagiosplug-help mailing list<u></u><u></u></p>
<p><a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><u></u><u></u></p>
<p><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><u></u><u></u></p>
<p><u></u> <u></u></p>
<p><u></u> <u></u></p>
<p>End of Nagiosplug-help Digest, Vol 71, Issue 8<u></u><u></u></p>
<p>**********************************************<u></u><u></u></p>
</div>
</div>

<br>------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br></div>