<div class="gmail_extra">Are you using check_vbs on Windows 2003 ?<br>You need to adapt the code in the vb script a bit:<br><br><i>1. The /nowarn option of w32tm.exe looks like it's not supported in
earlier versions of Windows including XP, but is supported in Vista,7,
2008 Server etc. So for these you need to remove this option from the
following line, otherwise the script returns an error.<br><br>
strCommand = "%SystemRoot%\System32\w32tm.exe /monitor /nowarn /computers:" & serverlist</i>
<br><br>Source: <a href="http://exchange.nagios.org/directory/Plugins/Network-Protocols/NTP-and-Time/Windows-time-check-against-NTPD-%28check_time-2Evbs%29/details">http://exchange.nagios.org/directory/Plugins/Network-Protocols/NTP-and-Time/Windows-time-check-against-NTPD-%28check_time-2Evbs%29/details</a><br>
<br><div class="gmail_quote">On Thu, Apr 26, 2012 at 9:58 PM, <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">
Definition is :<br>
<br>
define service{<br>
use generic-service<br>
host_name LVHSMTEST01<br>
service_description check_time<br>
check_command check_time! 10.240.2.45 -p 12489 -wd 5 -cd 10<br>
}<br>
<br>
<br>
Hey Please clear me below doubts.<br>
<br>
1) I have run this script on windows server, but while checking from command line of same server It is giving error mentioned earlier.<br>
2)Why I am not geeting the required output through command line?<br>
<br>
<br>
Kind regards,<br>
<div class="im"><br>
-----Original Message-----<br>
From: <a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a> [mailto:<a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a>]<br>
</div><div class="im">Sent: Friday, April 27, 2012 1:21 AM<br>
To: <a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
</div><div class="im">Subject: Nagiosplug-help Digest, Vol 71, Issue 12<br>
<br>
Send Nagiosplug-help mailing list submissions to<br>
<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:nagiosplug-help-owner@lists.sourceforge.net">nagiosplug-help-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Nagiosplug-help digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
</div> 1. Re: help Check_time (Alex Griffin)<br>
2. check_time.vbs (<a href="mailto:abhay.kshinde@wipro.com">abhay.kshinde@wipro.com</a>)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 25 Apr 2012 10:51:35 -0500<br>
From: Alex Griffin <<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a>><br>
Subject: Re: [Nagiosplug-help] help Check_time<br>
<div class="im">To: Nagios Plugin Help List <<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a>><br>
</div>Message-ID: <<a href="mailto:4F981D87.90704@nagios.com">4F981D87.90704@nagios.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Could you post your service definition? It seems you gave incorrect<br>
options to the plugin, but it's hard to tell what went wrong without<br>
seeing what you tried.<br>
<div class="im"><br>
Alex Griffin<br>
---<br>
Tech Team<br>
<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a><br>
<br>
</div><a href="mailto:abhay.kshinde@wipro.com">abhay.kshinde@wipro.com</a> wrote:<br>
> Dear Alex,<br>
><br>
> Thanx for replying.<br>
><br>
> I am getting the below error while I am trying to use that script.<br>
><br>
> Could you please suggest on this.<br>
><br>
> Abhay<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 26 Apr 2012 19:50:26 +0000<br>
From: <<a href="mailto:abhay.kshinde@wipro.com">abhay.kshinde@wipro.com</a>><br>
Subject: [Nagiosplug-help] check_time.vbs<br>
To: <<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a>><br>
Message-ID:<br>
<<a href="mailto:8BB23A8F6FFF384096867BAF7D98ED2714D1AC@BLR-SJP-MBX-8.wipro.com">8BB23A8F6FFF384096867BAF7D98ED2714D1AC@BLR-SJP-MBX-8.wipro.com</a>><br>
<div class="im">Content-Type: text/plain; charset="us-ascii"<br>
<br>
HI<br>
<br>
<br>
<br>
</div><div class="im">While running check_time.vbs script from command line,I am getting below error.<br>
<br>
<br>
<br>
</div>[cid:image001.png@01C19281.B76F84A0]<br>
<div><div class="h5"><br>
<br>
<br>
Please suggest<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a> [mailto:<a href="mailto:nagiosplug-help-request@lists.sourceforge.net">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">nagiosplug-help@lists.sourceforge.net</a><br>
Subject: Nagiosplug-help Digest, Vol 71, Issue 8<br>
<br>
<br>
<br>
Send Nagiosplug-help mailing list submissions to<br>
<br>
<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
<br>
<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
<br>
<a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a><br>
<br>
<br>
<br>
You can reach the person managing the list at<br>
<br>
<a href="mailto:nagiosplug-help-owner@lists.sourceforge.net">nagiosplug-help-owner@lists.sourceforge.net</a><br>
<br>
<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
<br>
than "Re: Contents of Nagiosplug-help digest..."<br>
<br>
<br>
<br>
<br>
<br>
Today's Topics:<br>
<br>
<br>
<br>
1. Re: help (Alex Griffin)<br>
<br>
2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)<br>
<br>
<br>
<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
<br>
<br>
Message: 1<br>
<br>
Date: Fri, 20 Apr 2012 09:19:42 -0500<br>
<br>
From: Alex Griffin <<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a>><br>
<br>
Subject: Re: [Nagiosplug-help] help<br>
<br>
To: Nagios Plugin Help List <<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a>><br>
<br>
Message-ID: <<a href="mailto:4F91707E.70300@nagios.com">4F91707E.70300@nagios.com</a>><br>
<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
<br>
<br>
There are a few NTP plugins on Nagios Exchange:<br>
<br>
<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><br>
<br>
<br>
<br>
I haven't used any of them so I'm afraid I can't get more detailed than<br>
<br>
that, but you'll need an NTP server to sync against. There are publicly<br>
<br>
available servers you could try if your whole network has internet<br>
<br>
access, otherwise you'll need to run your own.<br>
<br>
<br>
<br>
Alex Griffin<br>
<br>
---<br>
<br>
Tech Team<br>
<br>
<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a><br>
<br>
<br>
<br>
Abhay Shinde wrote:<br>
<br>
> HI Team,<br>
<br>
><br>
<br>
> We are using Nagios to monitor our infrastructure.<br>
<br>
><br>
<br>
> We have windows environment and need to ensure that, all the servers<br>
<br>
><br>
<br>
> in infrastructure should have similar time(+ or - 1s offset).<br>
<br>
><br>
<br>
> Could you please provide the tips regarding the changes required in<br>
<br>
><br>
<br>
> NSC.ini file(On remote windows client) and that of Nagios server.<br>
<br>
><br>
<br>
> Basically I am the starter in the knowledge of Nagios.<br>
<br>
><br>
<br>
> So, Could you please provide the detailed procedure to add this service<br>
<br>
> to monitor the time synch issues in infrastructure.<br>
<br>
><br>
<br>
> Best Regards,<br>
<br>
><br>
<br>
> *Abhay Shinde*<br>
<br>
><br>
<br>
> Wipro Technologies -Pune-India<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> ------------------------------------------------------------------------------<br>
<br>
> For Developers, A Lot Can Happen In A Second.<br>
<br>
> Boundary is the first to Know...and Tell You.<br>
<br>
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<br>
<br>
> <a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> _______________________________________________<br>
<br>
> Nagiosplug-help mailing list<br>
<br>
> <a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
<br>
> ::: Please include plugins version (-v) and OS when reporting any issue.<br>
<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
<br>
<br>
Message: 2<br>
<br>
Date: Mon, 23 Apr 2012 17:31:55 +0530<br>
<br>
From: Kamlesh Verma <<a href="mailto:kamleshverma@superseva.com">kamleshverma@superseva.com</a>><br>
<br>
Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7<br>
<br>
To: <a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
<br>
Message-ID: <<a href="mailto:4F9544B3.8070101@superseva.com">4F9544B3.8070101@superseva.com</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
<br>
<br>
Hi All,<br>
<br>
<br>
<br>
I am trying to install /apt-get install nagios-nrpe-server nagios-plugin<br>
<br>
on my server which is running on Ubuntu 11.04 64 bit but I found<br>
<br>
following error. /<br>
<br>
<br>
<br>
Please help me.....<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
0 upgraded, 17 newly installed, 0 to remove and 93 not upgraded.<br>
<br>
Need to get 21.9 MB/25.1 MB of archives.<br>
<br>
After this operation, 75.9 MB of additional disk space will be used.<br>
<br>
Do you want to continue [Y/n]? y<br>
<br>
Err <a href="http://in.archive.ubuntu.com/ubuntu/" target="_blank">http://in.archive.ubuntu.com/ubuntu/</a> natty-updates/main libwbclient0<br>
<br>
amd64 2:3.5.8~dfsg-1ubuntu2.3<br>
<br>
404 Not Found [IP: 91.189.92.184 80]<br>
<br>
Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main libwbclient0<br>
<br>
amd64 2:3.5.8~dfsg-1ubuntu2.3<br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main samba-common<br>
<br>
all 2:3.5.8~dfsg-1ubuntu2.3<br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main<br>
<br>
samba-common-bin amd64 2:3.5.8~dfsg-1ubuntu2.3<br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Err <a href="http://security.ubuntu.com/ubuntu/" target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main smbclient<br>
<br>
amd64 2:3.5.8~dfsg-1ubuntu2.3<br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Failed to fetch<br>
<br>
<a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8%7Edfsg-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><br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Failed to fetch<br>
<br>
<a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.8%7Edfsg-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><br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Failed to fetch<br>
<br>
<a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.5.8%7Edfsg-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><br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
Failed to fetch<br>
<br>
<a href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.8%7Edfsg-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><br>
<br>
404 Not Found [IP: 91.189.92.167 80]<br>
<br>
E: Unable to fetch some archives, maybe run apt-get update or try with<br>
<br>
--fix-missing?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
<br>
From:-<br>
<br>
<br>
<br>
Kamlesh Verma<br>
<br>
<br>
<br>
System Administrator | Superseva Services<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Friday 20 April 2012 06:42 PM,<br>
<br>
<a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a> wrote:<br>
<br>
> Send Nagiosplug-help mailing list submissions to<br>
<br>
> <a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
<br>
><br>
<br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
<br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
<br>
> or, via email, send a message with subject or body 'help' to<br>
<br>
> <a href="mailto:nagiosplug-help-request@lists.sourceforge.net">nagiosplug-help-request@lists.sourceforge.net</a><br>
<br>
><br>
<br>
> You can reach the person managing the list at<br>
<br>
> <a href="mailto:nagiosplug-help-owner@lists.sourceforge.net">nagiosplug-help-owner@lists.sourceforge.net</a><br>
<br>
><br>
<br>
> When replying, please edit your Subject line so it is more specific<br>
<br>
> than "Re: Contents of Nagiosplug-help digest..."<br>
<br>
><br>
<br>
><br>
<br>
> Today's Topics:<br>
<br>
><br>
<br>
> 1. Re: Strange problem with Bash, AWK and check_http (Edward Blum)<br>
<br>
> 2. help (<a href="mailto:abhay.kshinde@wipro.com">abhay.kshinde@wipro.com</a>)<br>
<br>
> 3. Nagiosplug Help, Njlytoh Hotily left a message for you... (Badoo)<br>
<br>
><br>
<br>
><br>
<br>
> ----------------------------------------------------------------------<br>
<br>
><br>
<br>
> Message: 1<br>
<br>
> Date: Sun, 15 Apr 2012 22:59:10 +0100<br>
<br>
> From: Edward Blum<<a href="mailto:eddy.blum@gmail.com">eddy.blum@gmail.com</a>><br>
<br>
> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and<br>
<br>
> check_http<br>
<br>
> To: Alex Griffin<<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a>><br>
<br>
> Cc: Nagios Plugin Help List<<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a>><br>
<br>
> Message-ID:<br>
<br>
> <<a href="mailto:CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com">CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com</a>><br>
<br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
><br>
<br>
> Super useful info Alex! Many thanks for taking time to reply, much<br>
<br>
> appreciated! Script now working nicely :) I tried to use trim but couldn't<br>
<br>
> get anything useful out of it, and think I searched google for help for<br>
<br>
> hours and hours but couldn't find much. I'll get the hang of it all one<br>
<br>
> day. Just needed the directions of an old hat!<br>
<br>
><br>
<br>
> P.S Nagios rocks!<br>
<br>
><br>
<br>
> Cheers<br>
<br>
><br>
<br>
><br>
<br>
> On 11 April 2012 17:16, Alex Griffin<<a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a>> wrote:<br>
<br>
><br>
<br>
>> Hey Edward,<br>
<br>
>><br>
<br>
>> I'm glad you got everything figured out! I just thought I'd leave some<br>
<br>
>> shell tips based on the few lines of your script that you posted.<br>
<br>
>><br>
<br>
>> Your first pipeline can be replaced by a single awk command without losing<br>
<br>
>> much clarity (well, if you know awk). You also had some unnecessary quotes<br>
<br>
>> in your 'command' variable assignment.<br>
<br>
>><br>
<br>
>> test=$(awk -F= '/ServerFileName/&& /HHR/ {print $2}' /tmp/updates.txt)<br>
<br>
>><br>
<br>
>> command="$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" target="_blank">update.efefktdfde.co.uk</a> -u/$test"<br>
<br>
>><br>
<br>
>> If you don't know a whole lot about awk, or if it's confusing for some<br>
<br>
>> other reason, you can at least get rid of cat by moving the filename to<br>
<br>
>> grep's invocation.<br>
<br>
>><br>
<br>
>> grep ServerFileName /tmp/updates.txt<br>
<br>
>><br>
<br>
>> Finally, removing nasty invisible characters is a job for the tr utility.<br>
<br>
>><br>
<br>
>> fileName=$(echo "$fileName" | tr -dc [:print:])<br>
<br>
>><br>
<br>
>> Alex Griffin<br>
<br>
>> ---<br>
<br>
>> Tech Team<br>
<br>
>> <a href="mailto:agriffin@nagios.com">agriffin@nagios.com</a><br>
<br>
>><br>
<br>
>><br>
<br>
>> On 04/11/2012 10:20 AM, Edward Blum wrote:<br>
<br>
>><br>
<br>
>>> FIXED!<br>
<br>
>>><br>
<br>
>>> With a little research and when running check_http with -v I see the line<br>
<br>
>>><br>
<br>
>>> 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>><br>
<br>
>>> <<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>><br>
<br>
>>> **><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> For some reason the variable had a funny hidden character of some sort<br>
<br>
>>> in which check_http doesn't like.<br>
<br>
>>><br>
<br>
>>> I cleansed the variable with:<br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> fileName=$(echo $fileName | egrep "[a-z,A-Z,.,0-9]{1,}" -o)<br>
<br>
>>><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> On 10 April 2012 23:01, Edward Blum<<a href="mailto:eddy.blum@gmail.com">eddy.blum@gmail.com</a><br>
<br>
>>> <mailto:<a href="mailto:eddy.blum@gmail.com">eddy.blum@gmail.com</a>>> wrote:<br>
<br>
>>><br>
<br>
>>> Hi There,<br>
<br>
>>><br>
<br>
>>> I am having very strange problems creating a nagios plugin in Bash<br>
<br>
>>> using check_http to check contents of a Amazon S3 Bucket.<br>
<br>
>>><br>
<br>
>>> I am grabbing the URL of the file to grab from a txt file (changes<br>
<br>
>>> often) inside the bucket and using awk and grep extracting the<br>
<br>
>>> Filename.<br>
<br>
>>><br>
<br>
>>> I have using the following syntax:<br>
<br>
>>><br>
<br>
>>> 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<br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> Now this works fine when I run from the command line it also works<br>
<br>
>>> fine when running from the bash script. The problem lies when I try<br>
<br>
>>> the use the variable extracted using awk.<br>
<br>
>>><br>
<br>
>>> Here are the results of running my bash script :<br>
<br>
>>><br>
<br>
>>> 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>><br>
<br>
>>> <<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>><br>
<br>
>>> STATUS: HTTP/1.1 400 Bad Request<br>
<br>
>>> **** HEADER ****<br>
<br>
>>> Transfer-Encoding: chunked<br>
<br>
>>> Date: Tue, 10 Apr 2012 21:47:21 GMT<br>
<br>
>>> Connection: close<br>
<br>
>>> Server: AmazonS3<br>
<br>
>>> **** CONTENT ****<br>
<br>
>>> [[ skipped ]]<br>
<br>
>>> HTTP WARNING: HTTP/1.1 400 Bad Request - 135 bytes in 0.027 second<br>
<br>
>>> response time |time=0.027087s;;;0.000000 size=135B;;;0<br>
<br>
>>><br>
<br>
>>> Here is what should appear:<br>
<br>
>>><br>
<br>
>>> <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>><br>
<br>
>>> <<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>>><br>
<br>
>>> is 1460<br>
<br>
>>><br>
<br>
>>> characters<br>
<br>
>>> STATUS: HTTP/1.1 200 OK<br>
<br>
>>> **** HEADER ****<br>
<br>
>>> x-amz-id-2:<br>
<br>
>>> lmJo9jgflJdp+**ehTirekL19lXFY5KsNJ13UkiSWlNji**WzeYtVJ1OX7VIDZrsMNUJ<br>
<br>
>>> x-amz-request-id: 7D72700CDF05E228<br>
<br>
>>> Date: Tue, 10 Apr 2012 21:47:13 GMT<br>
<br>
>>> x-amz-meta-cb-modifiedtime: Fri, 07 Oct 2011 03:36:32 GMT<br>
<br>
>>> Last-Modified: Mon, 24 Oct 2011 20:41:44 GMT<br>
<br>
>>> ETag: "**ca684ddfa09409f8890e8c92bc68f6**19"<br>
<br>
>>> Accept-Ranges: bytes<br>
<br>
>>> Content-Type: application/octet-stream<br>
<br>
>>> Content-Length: 6056760<br>
<br>
>>> Server: AmazonS3<br>
<br>
>>> **** CONTENT ****<br>
<br>
>>> [[ skipped ]]<br>
<br>
>>> HTTP OK: HTTP/1.1 200 OK - 1460 bytes in 0.122 second response time<br>
<br>
>>> |time=0.122165s;;;0.000000 size=1460B;;;0<br>
<br>
>>><br>
<br>
>>> In the bash script I am using the syntax:<br>
<br>
>>><br>
<br>
>>> test=$(cat /tmp/updates.txt | grep ServerFileName | awk<br>
<br>
>>> 'BEGIN{FS="="}{print $2}' | grep HHR)<br>
<br>
>>> command="$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" target="_blank">update.efefktdfde.co.uk</a><br>
<br>
>>> <<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>>><br>
<br>
>>> -u"/"$test"<br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> If I just do test=SetupddfImporter1020.exe then call command it<br>
<br>
>>> works fine, so I would think its my variable however if I run a If<br>
<br>
>>> statement to check if the one generating by the awk command is the<br>
<br>
>>> same as test=SetupddfImporter1020.exe it says they are equal/<br>
<br>
>>><br>
<br>
>>> This is driving me round the bend, any help would be much appreciated!!<br>
<br>
>>><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> ------------------------------**------------------------------**<br>
<br>
>>> ------------------<br>
<br>
>>> Better than sec? Nothing is better than sec when it comes to<br>
<br>
>>> monitoring Big Data applications. Try Boundary one-second<br>
<br>
>>> resolution app monitoring today. Free.<br>
<br>
>>> <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>><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>><br>
<br>
>>> ______________________________**_________________<br>
<br>
>>> Nagiosplug-help mailing list<br>
<br>
>>> Nagiosplug-help@lists.**<a href="http://sourceforge.net" target="_blank">sourceforge.net</a><<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>><br>
<br>
>>> <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>><br>
<br>
>>> ::: Please include plugins version (-v) and OS when reporting any issue.<br>
<br>
>>> ::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
>>><br>
<br>
> -------------- next part --------------<br>
<br>
> An HTML attachment was scrubbed...<br>
<br>
><br>
<br>
> ------------------------------<br>
<br>
><br>
<br>
> Message: 2<br>
<br>
> Date: Thu, 19 Apr 2012 15:34:25 +0000<br>
<br>
> From:<<a href="mailto:abhay.kshinde@wipro.com">abhay.kshinde@wipro.com</a>><br>
<br>
> Subject: [Nagiosplug-help] help<br>
<br>
> To:<<a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a>><br>
<br>
> Message-ID:<br>
<br>
> <<a href="mailto:8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com">8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com</a>><br>
<br>
> Content-Type: text/plain; charset="us-ascii"<br>
<br>
><br>
<br>
> HI Team,<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> We are using Nagios to monitor our infrastructure.<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> We have windows environment and need to ensure that, all the servers<br>
<br>
><br>
<br>
> in infrastructure should have similar time(+ or - 1s offset).<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> Could you please provide the tips regarding the changes required in<br>
<br>
><br>
<br>
> NSC.ini file(On remote windows client) and that of Nagios server.<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> Basically I am the starter in the knowledge of Nagios.<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> So, Could you please provide the detailed procedure to add this service to monitor the time synch issues in infrastructure.<br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
><br>
<br>
> Best Regards,<br>
<br>
> Abhay Shinde<br>
<br>
> Wipro Technologies -Pune-India<br>
<br>
><br>
<br>
> -------------- next part --------------<br>
<br>
> An HTML attachment was scrubbed...<br>
<br>
><br>
<br>
> ------------------------------<br>
<br>
><br>
<br>
> Message: 3<br>
<br>
> Date: Fri, 20 Apr 2012 13:12:34 +0000<br>
<br>
> From: Badoo<<a href="mailto:noreply%2B396078011@badoo.com">noreply+396078011@badoo.com</a>><br>
<br>
> Subject: [Nagiosplug-help] Nagiosplug Help, Njlytoh Hotily left a<br>
<br>
> message for you...<br>
<br>
> To: <a href="mailto:nagiosplug-help@lists.sourceforge.net">nagiosplug-help@lists.sourceforge.net</a><br>
<br>
> Message-ID:<br>
<br>
> <<a href="mailto:mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net">mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net</a>><br>
<br>
> Content-Type: text/plain; charset="utf-8"<br>
<br>
><br>
<br>
> Njlytoh Hotily left a message for you...<br>
<br>
><br>
<br>
> 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:<br>
<br>
> <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><br>
<br>
><br>
<br>
> Some other people in the area who are on Badoo<br>
<br>
> Quosho (Lviv, Ukraine)<br>
<br>
> Vita (Lviv, Ukraine)<br>
<br>
> Kristina (Lviv, Ukraine)<br>
<br>
><br>
<br>
> <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><br>
<br>
><br>
<br>
> If the link in this message does not work, try copying and pasting it into your browser.<br>
<br>
><br>
<br>
> 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.<br>
<br>
><br>
<br>
> Have fun!<br>
<br>
> The Badoo Team<br>
<br>
><br>
<br>
> You have received this email from Badoo Trading Limited (postal address below).<br>
<br>
> <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><br>
<br>
> Badoo Trading Limited is a limited company registered in England and Wales<br>
<br>
> under CRN 7540255 with its registered office at 12 Red Lion Square, London, WC1R 4QD.<br>
<br>
> -------------- next part --------------<br>
<br>
> An HTML attachment was scrubbed...<br>
<br>
><br>
<br>
> ------------------------------<br>
<br>
><br>
<br>
> ------------------------------------------------------------------------------<br>
<br>
> For Developers, A Lot Can Happen In A Second.<br>
<br>
> Boundary is the first to Know...and Tell You.<br>
<br>
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<br>
<br>
> <a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><br>
<br>
><br>
<br>
> ------------------------------<br>
<br>
><br>
<br>
> _______________________________________________<br>
<br>
> Nagiosplug-help mailing list<br>
<br>
> <a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
<br>
><br>
<br>
><br>
<br>
> End of Nagiosplug-help Digest, Vol 71, Issue 7<br>
<br>
> **********************************************<br>
<br>
><br>
<br>
<br>
<br>
<br>
<br>
-------------- next part --------------<br>
<br>
An HTML attachment was scrubbed...<br>
<br>
<br>
<br>
------------------------------<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
<br>
For Developers, A Lot Can Happen In A Second.<br>
<br>
Boundary is the first to Know...and Tell You.<br>
<br>
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<br>
<br>
<a href="http://p.sf.net/sfu/Boundary-d2dvs2" target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
<br>
<br>
_______________________________________________<br>
<br>
Nagiosplug-help mailing list<br>
<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
<br>
<br>
<br>
<br>
<br>
End of Nagiosplug-help Digest, Vol 71, Issue 8<br>
<br>
**********************************************<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
</div></div>-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image001.png<br>
Type: image/png<br>
Size: 1791 bytes<br>
Desc: image001.png<br>
<br>
------------------------------<br>
<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>
<div class="im"><br>
------------------------------<br>
<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>
<br>
<br>
</div>End of Nagiosplug-help Digest, Vol 71, Issue 12<br>
***********************************************<br>
<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>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>