[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagiosplug-help
Subject:    Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7
From:       Claudio Kuenzler <ck () claudiokuenzler ! com>
Date:       2012-04-23 12:38:26
Message-ID: CAF-yqgg4=zNXuKUA1J6oO5nhx02pvWBeW0i_1VHJOp1GAb6r-Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This has nothing to do with Nagios.
Take a closer look at the error messages and you will notice the 404 http
error.

It seems that your apt db is out of date.
Run apt-get update (as it is written at the end of your pasted text).

Example:
http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_amd64.deb<-
 doesn't exit
http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2_amd64.deb<-
 exists

On Mon, Apr 23, 2012 at 2:01 PM, Kamlesh Verma
<kamleshverma@superseva.com>wrote:

> **
> Hi All,
> 
> I am trying to install *apt-get install nagios-nrpe-server nagios-plugin
> on my server which is running on Ubuntu 11.04 64 bit but I found following
> error. *
> 
> Please help me.....
> 
> 
> 
> 0 upgraded, 17 newly installed, 0 to remove and 93 not upgraded.
> Need to get 21.9 MB/25.1 MB of archives.
> After this operation, 75.9 MB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Err http://in.archive.ubuntu.com/ubuntu/ natty-updates/main libwbclient0
> amd64 2:3.5.8~dfsg-1ubuntu2.3
> 404  Not Found [IP: 91.189.92.184 80]
> Err http://security.ubuntu.com/ubuntu/ natty-security/main libwbclient0
> amd64 2:3.5.8~dfsg-1ubuntu2.3
> 404  Not Found [IP: 91.189.92.167 80]
> Err http://security.ubuntu.com/ubuntu/ natty-security/main samba-common
> all 2:3.5.8~dfsg-1ubuntu2.3
> 404  Not Found [IP: 91.189.92.167 80]
> Err http://security.ubuntu.com/ubuntu/ natty-security/main
> samba-common-bin amd64 2:3.5.8~dfsg-1ubuntu2.3
> 404  Not Found [IP: 91.189.92.167 80]
> Err http://security.ubuntu.com/ubuntu/ natty-security/main smbclient
> amd64 2:3.5.8~dfsg-1ubuntu2.3
> 404  Not Found [IP: 91.189.92.167 80]
> Failed to fetch
> http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_amd64.deb
>  404  Not Found [IP: 91.189.92.167 80]
> Failed to fetch
> http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.8~dfsg-1ubuntu2.3_all.deb
>  404  Not Found [IP: 91.189.92.167 80]
> Failed to fetch
> http://security.ubuntu.com/ubuntu/pool/main/s/samba/samba-common-bin_3.5.8~dfsg-1ubuntu2.3_amd64.deb
>  404  Not Found [IP: 91.189.92.167 80]
> Failed to fetch
> http://security.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.8~dfsg-1ubuntu2.3_amd64.deb
>  404  Not Found [IP: 91.189.92.167 80]
> E: Unable to fetch some archives, maybe run apt-get update or try with
> --fix-missing?
> 
> 
> 
> --
> From:-
> 
> Kamlesh Verma
> 
> System Administrator | Superseva Services
> 
> 
> 
> 
> On Friday 20 April 2012 06:42 PM,
> nagiosplug-help-request@lists.sourceforge.net wrote:
> 
> Send Nagiosplug-help mailing list submissions to
> 	nagiosplug-help@lists.sourceforge.net
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> or, via email, send a message with subject or body 'help' to
> 	nagiosplug-help-request@lists.sourceforge.net
> 
> You can reach the person managing the list at
> 	nagiosplug-help-owner@lists.sourceforge.net
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagiosplug-help digest..."
> 
> 
> Today's Topics:
> 
> 1. Re: Strange problem with Bash, AWK and check_http (Edward Blum)
> 2. help (abhay.kshinde@wipro.com)
> 3. Nagiosplug Help,	Njlytoh Hotily left a message for you... (Badoo)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 15 Apr 2012 22:59:10 +0100
> From: Edward Blum <eddy.blum@gmail.com> <eddy.blum@gmail.com>
> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and
> 	check_http
> To: Alex Griffin <agriffin@nagios.com> <agriffin@nagios.com>
> Cc: Nagios Plugin Help List <nagiosplug-help@lists.sourceforge.net> \
> <nagiosplug-help@lists.sourceforge.net> Message-ID:
> 	<CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com> \
>                 <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com>
>                 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Super useful info Alex!  Many thanks for taking time to reply, much
> appreciated! Script now working nicely :) I tried to use trim but couldn't
> get anything useful out of it, and think I searched google for help for
> hours and hours but couldn't find much. I'll get the hang of it all one
> day. Just needed the directions of an old hat!
> 
> P.S Nagios rocks!
> 
> Cheers
> 
> 
> On 11 April 2012 17:16, Alex Griffin <agriffin@nagios.com> <agriffin@nagios.com> \
> wrote: 
> 
> Hey Edward,
> 
> I'm glad you got everything figured out! I just thought I'd leave some
> shell tips based on the few lines of your script that you posted.
> 
> Your first pipeline can be replaced by a single awk command without losing
> much clarity (well, if you know awk). You also had some unnecessary quotes
> in your 'command' variable assignment.
> 
> test=$(awk -F= '/ServerFileName/ && /HHR/ {print $2}' /tmp/updates.txt)
> 
> command="$check_http -v -N -H update.efefktdfde.co.uk -u/$test"
> 
> If you don't know a whole lot about awk, or if it's confusing for some
> other reason, you can at least get rid of cat by moving the filename to
> grep's invocation.
> 
> grep ServerFileName /tmp/updates.txt
> 
> Finally, removing nasty invisible characters is a job for the tr utility.
> 
> fileName=$(echo "$fileName" | tr -dc [:print:])
> 
> Alex Griffin
> ---
> Tech Teamagriffin@nagios.com
> 
> 
> On 04/11/2012 10:20 AM, Edward Blum wrote:
> 
> 
> FIXED!
> 
> With a little research and when running check_http with -v I see the line
> 
> is 135 charactersktrace.co.uk:80/**SetupHHRImporter1020.exe<http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe> \
> <http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe> \
> <http://charactersktrace.co.**uk:80/SetupHHRImporter1020.exe<http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe> \
>                 <http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe>
> **>
> 
> 
> For some reason the variable had a funny hidden character of some sort
> in which check_http doesn't like.
> 
> I cleansed the variable with:
> 
> 
> fileName=$(echo $fileName | egrep "[a-z,A-Z,.,0-9]{1,}" -o)
> 
> 
> 
> On 10 April 2012 23:01, Edward Blum \
> <eddy.blum@gmail.com<mailto:eddy.blum@gmail.com> <eddy.blum@gmail.com>> wrote: 
> Hi There,
> 
> I am having very strange problems creating a nagios plugin in Bash
> using check_http to check contents of a Amazon S3 Bucket.
> 
> I am grabbing the URL of the file to grab from a txt file (changes
> often) inside the bucket and using awk and grep extracting the
> Filename.
> 
> I have using the following syntax:
> 
> check_http -H myhost.com <http://myhost.com/> <http://myhost.com/> -N -v -u \
> /testing.exe 
> 
> Now this works fine when I run from the command line it also works
> fine when running from the bash script. The problem lies when I try
> the use the variable extracted using awk.
> 
> Here are the results of running my bash script :
> 
> is 135 charactersktdfde.co.uk:80/**SetupddfImporter1020.exe<http://charactersktdfde.co.uk:80/SetupddfImporter1020.exe> \
> <http://charactersktdfde.co.uk:80/SetupddfImporter1020.exe> \
> <http://charactersktdfde.co.**uk/SetupddfImporter1020.exe<http://charactersktdfde.co.uk/SetupddfImporter1020.exe> \
> <http://charactersktdfde.co.uk/SetupddfImporter1020.exe> 
> STATUS: HTTP/1.1 400 Bad Request
> **** HEADER ****
> Transfer-Encoding: chunked
> Date: Tue, 10 Apr 2012 21:47:21 GMT
> Connection: close
> Server: AmazonS3
> **** CONTENT ****
> [[ skipped ]]
> HTTP WARNING: HTTP/1.1 400 Bad Request - 135 bytes in 0.027 second
> response time |time=0.027087s;;;0.000000 size=135B;;;0
> 
> Here is what should appear:
> 
> http://update.efefktdfde.co.**uk:80/SetupddfImporter1020.exe<http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe> \
> <http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe> \
> <http://update.efefktdfde.co.**uk/SetupddfImporter1020.exe<http://update.efefktdfde.co.uk/SetupddfImporter1020.exe> \
> <http://update.efefktdfde.co.uk/SetupddfImporter1020.exe>> is 1460
> 
> characters
> STATUS: HTTP/1.1 200 OK
> **** HEADER ****
> x-amz-id-2:
> lmJo9jgflJdp+**ehTirekL19lXFY5KsNJ13UkiSWlNji**WzeYtVJ1OX7VIDZrsMNUJ
> x-amz-request-id: 7D72700CDF05E228
> Date: Tue, 10 Apr 2012 21:47:13 GMT
> x-amz-meta-cb-modifiedtime: Fri, 07 Oct 2011 03:36:32 GMT
> Last-Modified: Mon, 24 Oct 2011 20:41:44 GMT
> ETag: "**ca684ddfa09409f8890e8c92bc68f6**19"
> Accept-Ranges: bytes
> Content-Type: application/octet-stream
> Content-Length: 6056760
> Server: AmazonS3
> **** CONTENT ****
> [[ skipped ]]
> HTTP OK: HTTP/1.1 200 OK - 1460 bytes in 0.122 second response time
> > time=0.122165s;;;0.000000 size=1460B;;;0
> 
> In the bash script I am using the syntax:
> 
> test=$(cat /tmp/updates.txt | grep ServerFileName | awk
> 'BEGIN{FS="="}{print $2}' | grep HHR)
> command="$check_http -v -N -H update.efefktdfde.co.uk
> <http://update.efefktdfde.co.**uk/ <http://update.efefktdfde.co.uk/> \
>                 <http://update.efefktdfde.co.uk/>>
> -u"/"$test"
> 
> 
> If I just do test=SetupddfImporter1020.exe then call command it
> works fine, so I would think its my variable however if I run a If
> statement to check if the one generating by the awk command is the
> same as  test=SetupddfImporter1020.exe it says they are equal/
> 
> This is driving me round the bend, any help would be much appreciated!!
> 
> 
> 
> 
> ------------------------------**------------------------------**
> ------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. \
> Free.http://p.sf.net/sfu/Boundary-**dev2dev<http://p.sf.net/sfu/Boundary-dev2dev> \
> <http://p.sf.net/sfu/Boundary-dev2dev> 
> 
> 
> ______________________________**_________________
> Nagiosplug-help mailing \
> listNagiosplug-help@lists.**sourceforge.net<Nagiosplug-help@lists.sourceforge.net> \
> <Nagiosplug-help@lists.sourceforge.net>https://lists.sourceforge.net/**lists/listinfo/nagiosplug-help<https://lists.sourceforge.net/lists/listinfo/nagiosplug-help> \
> <https://lists.sourceforge.net/lists/listinfo/nagiosplug-help> ::: Please include \
> plugins version (-v) and OS when reporting any issue. ::: Messages without \
> supporting info will risk being sent to /dev/null 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 19 Apr 2012 15:34:25 +0000
> From: <abhay.kshinde@wipro.com> <abhay.kshinde@wipro.com>
> Subject: [Nagiosplug-help] help
> To: <nagiosplug-help@lists.sourceforge.net> <nagiosplug-help@lists.sourceforge.net>
> Message-ID:
> 	<8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com> \
>                 <8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> HI Team,
> 
> 
> 
> We are using Nagios to monitor our infrastructure.
> 
> 
> 
> We  have windows environment and need to ensure that, all the servers
> 
> in infrastructure should have similar time(+ or - 1s offset).
> 
> 
> 
> 
> 
> Could you please provide the tips regarding the changes required in
> 
> NSC.ini file(On remote windows client) and that of Nagios server.
> 
> 
> 
> Basically I am the starter in the knowledge of Nagios.
> 
> 
> 
> So, Could you please provide the detailed procedure to add this service to monitor \
> the time synch issues in infrastructure. 
> 
> 
> 
> 
> 
> Best Regards,
> Abhay Shinde
> Wipro Technologies -Pune-India
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 20 Apr 2012 13:12:34 +0000
> From: Badoo <noreply+396078011@badoo.com> <noreply+396078011@badoo.com>
> Subject: [Nagiosplug-help] Nagiosplug Help,	Njlytoh Hotily left a
> 	message for you...
> To: nagiosplug-help@lists.sourceforge.net
> Message-ID:
> 	<mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net> \
>                 <mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net>
>                 
> Content-Type: text/plain; charset="utf-8"
> 
> Njlytoh Hotily left a message for you...
> 
> 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:http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb
>  
> Some other people in the area who are on Badoo
> Quosho (Lviv, Ukraine)
> Vita (Lviv, Ukraine)
> Kristina (Lviv, Ukraine)
> http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&m=21&mid=4f9160c10000000000030000179babbb
>  
> If the link in this message does not work, try copying and pasting it into your \
> browser. 
> 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. 
> Have fun!
> The Badoo Team
> 
> You have received this email from Badoo Trading Limited (postal address \
> below).http://eu1.badoo.com/impersonation.phtml?lang_id=3&mail_code=21&email=nagiosp \
> lug-help%40lists.sourceforge.net&secret=&action=block&block_code=a703df&m=21&mid=4f9160c10000000000030000179babbb
>  Badoo Trading Limited is a limited company registered in England and Wales
> under CRN 7540255 with its registered office at 12 Red Lion Square, London, WC1R \
>                 4QD.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it \
> FREE!http://p.sf.net/sfu/Boundary-d2dvs2 
> ------------------------------
> 
> _______________________________________________
> Nagiosplug-help mailing \
> listNagiosplug-help@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>  
> 
> End of Nagiosplug-help Digest, Vol 71, Issue 7
> **********************************************
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> 
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > > > Please include plugins version (-v) and OS when reporting any issue.
> > > > Messages without supporting info will risk being sent to /dev/null
> 
> 


[Attachment #5 (text/html)]

<div class="gmail_extra">This has nothing to do with Nagios.<br>Take a closer look at \
the error messages and you will notice the 404 http error.<br><br>It seems that your \
apt db is out of date. <br>Run apt-get update (as it is written at the end of your \
pasted text).<br> <br>Example:<br><a \
href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubu \
ntu2.3_amd64.deb">http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2.3_amd64.deb</a> \
&lt;- doesn&#39;t exit<br> <a \
href="http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubu \
ntu2_amd64.deb">http://security.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.8~dfsg-1ubuntu2_amd64.deb</a> \
&lt;- exists<br><br> <div class="gmail_quote">On Mon, Apr 23, 2012 at 2:01 PM, \
Kamlesh Verma <span dir="ltr">&lt;<a href="mailto:kamleshverma@superseva.com" \
target="_blank">kamleshverma@superseva.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi All,<br>
    <br>
    I am trying to install <i \
style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font- \
weight:normal;line-height:19px;color:rgb(51,51,51);text-transform:none;font-size:14px;white-space:normal;font-family:sans-serif;word-spacing:0px">apt-get \
install  nagios-nrpe-server nagios-plugin on my server which is running on
      Ubuntu 11.04 64 bit but I found following error. </i><br>
    <br>
    Please help me.....<br>
    <br>
    <br>
    <br>
    0 upgraded, 17 newly installed, 0 to remove and 93 not upgraded.<br>
    Need to get 21.9 MB/25.1 MB of archives.<br>
    After this operation, 75.9 MB of additional disk space will be used.<br>
    Do you want to continue [Y/n]? y<br>
    Err <a href="http://in.archive.ubuntu.com/ubuntu/" \
target="_blank">http://in.archive.ubuntu.com/ubuntu/</a> natty-updates/main  \
libwbclient0 amd64 2:3.5.8~dfsg-1ubuntu2.3<br>  404  Not Found [IP: 91.189.92.184 \
80]<br>  Err <a href="http://security.ubuntu.com/ubuntu/" \
target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main  \
libwbclient0 amd64 2:3.5.8~dfsg-1ubuntu2.3<br>  404  Not Found [IP: 91.189.92.167 \
80]<br>  Err <a href="http://security.ubuntu.com/ubuntu/" \
target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main  \
samba-common all 2:3.5.8~dfsg-1ubuntu2.3<br>  404  Not Found [IP: 91.189.92.167 \
80]<br>  Err <a href="http://security.ubuntu.com/ubuntu/" \
target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main  \
samba-common-bin amd64 2:3.5.8~dfsg-1ubuntu2.3<br>  404  Not Found [IP: 91.189.92.167 \
80]<br>  Err <a href="http://security.ubuntu.com/ubuntu/" \
target="_blank">http://security.ubuntu.com/ubuntu/</a> natty-security/main smbclient  \
amd64 2:3.5.8~dfsg-1ubuntu2.3<br>  404  Not Found [IP: 91.189.92.167 80]<br>
    Failed to fetch
    <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> \
  404  Not Found [IP: 91.189.92.167 80]<br>
    Failed to fetch
    <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> \
  404  Not Found [IP: 91.189.92.167 80]<br>
    Failed to fetch
    <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> \
  404  Not Found [IP: 91.189.92.167 80]<br>
    Failed to fetch
    <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> \
  404  Not Found [IP: 91.189.92.167 80]<br>
    E: Unable to fetch some archives, maybe run apt-get update or try
    with --fix-missing?<br>
    <br>
    <br>
    <br>
    <pre cols="72">-- 
From:-

Kamlesh Verma

System Administrator | Superseva Services </pre>
    <br>
    <br>
    <br>
    On Friday 20 April 2012 06:42 PM,
    <a href="mailto:nagiosplug-help-request@lists.sourceforge.net" \
target="_blank">nagiosplug-help-request@lists.sourceforge.net</a> wrote:  <blockquote \
type="cite">  <pre>Send Nagiosplug-help mailing list submissions to
	<a href="mailto:nagiosplug-help@lists.sourceforge.net" \
target="_blank">nagiosplug-help@lists.sourceforge.net</a>

To subscribe or unsubscribe via the World Wide Web, visit
	<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a> or, \
via email, send a message with subject or body &#39;help&#39; to  <a \
href="mailto:nagiosplug-help-request@lists.sourceforge.net" \
target="_blank">nagiosplug-help-request@lists.sourceforge.net</a>

You can reach the person managing the list at
	<a href="mailto:nagiosplug-help-owner@lists.sourceforge.net" \
target="_blank">nagiosplug-help-owner@lists.sourceforge.net</a>

When replying, please edit your Subject line so it is more specific
than &quot;Re: Contents of Nagiosplug-help digest...&quot;


Today&#39;s Topics:

   1. Re: Strange problem with Bash, AWK and check_http (Edward Blum)
   2. help (<a href="mailto:abhay.kshinde@wipro.com" \
target="_blank">abhay.kshinde@wipro.com</a>)  3. Nagiosplug Help,	Njlytoh Hotily left \
a message for you... (Badoo)


----------------------------------------------------------------------

Message: 1
Date: Sun, 15 Apr 2012 22:59:10 +0100
From: Edward Blum <a href="mailto:eddy.blum@gmail.com" \
                target="_blank">&lt;eddy.blum@gmail.com&gt;</a>
Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and
	check_http
To: Alex Griffin <a href="mailto:agriffin@nagios.com" \
                target="_blank">&lt;agriffin@nagios.com&gt;</a>
Cc: Nagios Plugin Help List <a href="mailto:nagiosplug-help@lists.sourceforge.net" \
target="_blank">&lt;nagiosplug-help@lists.sourceforge.net&gt;</a> Message-ID:
	<a href="mailto:CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com" \
target="_blank">&lt;CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@mail.gmail.com&gt;</a>
                
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;

Super useful info Alex!  Many thanks for taking time to reply, much
appreciated! Script now working nicely :) I tried to use trim but couldn&#39;t
get anything useful out of it, and think I searched google for help for
hours and hours but couldn&#39;t find much. I&#39;ll get the hang of it all one
day. Just needed the directions of an old hat!

P.S Nagios rocks!

Cheers


On 11 April 2012 17:16, Alex Griffin <a href="mailto:agriffin@nagios.com" \
target="_blank">&lt;agriffin@nagios.com&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre>Hey Edward,

I&#39;m glad you got everything figured out! I just thought I&#39;d leave some
shell tips based on the few lines of your script that you posted.

Your first pipeline can be replaced by a single awk command without losing
much clarity (well, if you know awk). You also had some unnecessary quotes
in your &#39;command&#39; variable assignment.

   test=$(awk -F= &#39;/ServerFileName/ &amp;&amp; /HHR/ {print $2}&#39; \
/tmp/updates.txt)

   command=&quot;$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" \
target="_blank">update.efefktdfde.co.uk</a> -u/$test&quot;

If you don&#39;t know a whole lot about awk, or if it&#39;s confusing for some
other reason, you can at least get rid of cat by moving the filename to
grep&#39;s invocation.

   grep ServerFileName /tmp/updates.txt

Finally, removing nasty invisible characters is a job for the tr utility.

   fileName=$(echo &quot;$fileName&quot; | tr -dc [:print:])

Alex Griffin
---
Tech Team
<a href="mailto:agriffin@nagios.com" target="_blank">agriffin@nagios.com</a>


On 04/11/2012 10:20 AM, Edward Blum wrote:

</pre>
        <blockquote type="cite">
          <pre>FIXED!

With a little research and when running check_http with -v I see the line

 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">&lt;http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe&gt;</a> \
&lt;<a href="http://charactersktrace.co.**uk:80/SetupHHRImporter1020.exe" \
target="_blank">http://charactersktrace.co.**uk:80/SetupHHRImporter1020.exe</a><a \
href="http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe" \
                target="_blank">&lt;http://charactersktrace.co.uk:80/SetupHHRImporter1020.exe&gt;</a>
                
**&gt;


For some reason the variable had a funny hidden character of some sort
in which check_http doesn&#39;t like.

I cleansed the variable with:


fileName=$(echo $fileName | egrep &quot;[a-z,A-Z,.,0-9]{1,}&quot; -o)



On 10 April 2012 23:01, Edward Blum &lt;<a href="mailto:eddy.blum@gmail.com" \
target="_blank">eddy.blum@gmail.com</a> <a href="mailto:eddy.blum@gmail.com" \
target="_blank">&lt;mailto:eddy.blum@gmail.com&gt;</a>&gt; wrote:

   Hi There,

   I am having very strange problems creating a nagios plugin in Bash
   using check_http to check contents of a Amazon S3 Bucket.

   I am grabbing the URL of the file to grab from a txt file (changes
   often) inside the bucket and using awk and grep extracting the
Filename.

   I have using the following syntax:

   check_http -H <a href="http://myhost.com" target="_blank">myhost.com</a> <a \
href="http://myhost.com/" target="_blank">&lt;http://myhost.com/&gt;</a> -N -v -u \
/testing.exe


   Now this works fine when I run from the command line it also works
   fine when running from the bash script. The problem lies when I try
   the use the variable extracted using awk.

   Here are the results of running my bash script :

   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">&lt;http://charactersktdfde.co.uk:80/SetupddfImporter1020.exe&gt;</a> \
&lt;<a href="http://charactersktdfde.co.**uk/SetupddfImporter1020.exe" \
target="_blank">http://charactersktdfde.co.**uk/SetupddfImporter1020.exe</a><a \
href="http://charactersktdfde.co.uk/SetupddfImporter1020.exe" \
target="_blank">&lt;http://charactersktdfde.co.uk/SetupddfImporter1020.exe&gt;</a> \
</pre>  <blockquote type="cite">
            <pre></pre>
          </blockquote>
          <pre>   STATUS: HTTP/1.1 400 Bad Request
   **** HEADER ****
   Transfer-Encoding: chunked
   Date: Tue, 10 Apr 2012 21:47:21 GMT
   Connection: close
   Server: AmazonS3
   **** CONTENT ****
      [[ skipped ]]
   HTTP WARNING: HTTP/1.1 400 Bad Request - 135 bytes in 0.027 second
   response time |time=0.027087s;;;0.000000 size=135B;;;0

   Here is what should appear:

   <a href="http://update.efefktdfde.co.**uk:80/SetupddfImporter1020.exe" \
target="_blank">http://update.efefktdfde.co.**uk:80/SetupddfImporter1020.exe</a><a \
href="http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe" \
target="_blank">&lt;http://update.efefktdfde.co.uk:80/SetupddfImporter1020.exe&gt;</a>
  &lt;<a href="http://update.efefktdfde.co.**uk/SetupddfImporter1020.exe" \
target="_blank">http://update.efefktdfde.co.**uk/SetupddfImporter1020.exe</a><a \
href="http://update.efefktdfde.co.uk/SetupddfImporter1020.exe" \
target="_blank">&lt;http://update.efefktdfde.co.uk/SetupddfImporter1020.exe&gt;</a>&gt;
 is 1460

   characters
   STATUS: HTTP/1.1 200 OK
   **** HEADER ****
   x-amz-id-2:
   lmJo9jgflJdp+**ehTirekL19lXFY5KsNJ13UkiSWlNji**WzeYtVJ1OX7VIDZrsMNUJ
   x-amz-request-id: 7D72700CDF05E228
   Date: Tue, 10 Apr 2012 21:47:13 GMT
   x-amz-meta-cb-modifiedtime: Fri, 07 Oct 2011 03:36:32 GMT
   Last-Modified: Mon, 24 Oct 2011 20:41:44 GMT
   ETag: &quot;**ca684ddfa09409f8890e8c92bc68f6**19&quot;
   Accept-Ranges: bytes
   Content-Type: application/octet-stream
   Content-Length: 6056760
   Server: AmazonS3
   **** CONTENT ****
      [[ skipped ]]
   HTTP OK: HTTP/1.1 200 OK - 1460 bytes in 0.122 second response time
   |time=0.122165s;;;0.000000 size=1460B;;;0

   In the bash script I am using the syntax:

   test=$(cat /tmp/updates.txt | grep ServerFileName | awk
   &#39;BEGIN{FS=&quot;=&quot;}{print $2}&#39; | grep HHR)
   command=&quot;$check_http -v -N -H <a href="http://update.efefktdfde.co.uk" \
target="_blank">update.efefktdfde.co.uk</a>  &lt;<a \
href="http://update.efefktdfde.co.**uk/" \
target="_blank">http://update.efefktdfde.co.**uk/</a> <a \
href="http://update.efefktdfde.co.uk/" \
                target="_blank">&lt;http://update.efefktdfde.co.uk/&gt;</a>&gt;
-u&quot;/&quot;$test&quot;


   If I just do test=SetupddfImporter1020.exe then call command it
   works fine, so I would think its my variable however if I run a If
   statement to check if the one generating by the awk command is the
   same as  test=SetupddfImporter1020.exe it says they are equal/

   This is driving me round the bend, any help would be much appreciated!!




------------------------------**------------------------------**
------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
<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">&lt;http://p.sf.net/sfu/Boundary-dev2dev&gt;</a>



______________________________**_________________
Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.**sourceforge.net" \
target="_blank">Nagiosplug-help@lists.**sourceforge.net</a><a \
href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">&lt;Nagiosplug-help@lists.sourceforge.net&gt;</a> <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">&lt;https://lists.sourceforge.net/lists/listinfo/nagiosplug-help&gt;</a>
 ::: Please include plugins version (-v) and OS when reporting any issue.
> > > Messages without supporting info will risk being sent to /dev/null

</pre>
        </blockquote>
        <pre></pre>
      </blockquote>
      <pre>-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Thu, 19 Apr 2012 15:34:25 +0000
From: <a href="mailto:abhay.kshinde@wipro.com" \
                target="_blank">&lt;abhay.kshinde@wipro.com&gt;</a>
Subject: [Nagiosplug-help] help
To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" \
target="_blank">&lt;nagiosplug-help@lists.sourceforge.net&gt;</a> Message-ID:
	<a href="mailto:8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com" \
target="_blank">&lt;8BB23A8F6FFF384096867BAF7D98ED27131DD1@BLR-SJP-MBX-8.wipro.com&gt;</a>
                
Content-Type: text/plain; charset=&quot;us-ascii&quot;

HI Team,



We are using Nagios to monitor our infrastructure.



We  have windows environment and need to ensure that, all the servers

in infrastructure should have similar time(+ or - 1s offset).





Could you please provide the tips regarding the changes required in

NSC.ini file(On remote windows client) and that of Nagios server.



Basically I am the starter in the knowledge of Nagios.



So, Could you please provide the detailed procedure to add this service to monitor \
the time synch issues in infrastructure.






Best Regards,
Abhay Shinde
 Wipro Technologies -Pune-India

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Fri, 20 Apr 2012 13:12:34 +0000
From: Badoo <a href="mailto:noreply+396078011@badoo.com" \
                target="_blank">&lt;noreply+396078011@badoo.com&gt;</a>
Subject: [Nagiosplug-help] Nagiosplug Help,	Njlytoh Hotily left a
	message for you...
To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" \
target="_blank">nagiosplug-help@lists.sourceforge.net</a> Message-ID:
	<a href="mailto:mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net" \
target="_blank">&lt;mailman.323859.1334927566.6384.nagiosplug-help@lists.sourceforge.net&gt;</a>
                
Content-Type: text/plain; charset=&quot;utf-8&quot;

Njlytoh Hotily left a message for you...

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&#39;s in the message, just follow this link: <a \
href="http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&amp;m=21&amp;mid=4f9160c10000000000030000179babbb" \
target="_blank">http://eu1.badoo.com/0202593207/in/lfNMSXoqHkM/?lang_id=3&amp;m=21&amp;mid=4f9160c10000000000030000179babbb</a>


Some other people in the area who are on Badoo
Quosho (Lviv, Ukraine)
Vita (Lviv, Ukraine)
Kristina (Lviv, Ukraine)

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


If the link in this message does not work, try copying and pasting it into your \
browser.

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.

Have fun!
The Badoo Team

You have received this email from Badoo Trading Limited (postal address below).
<a href="http://eu1.badoo.com/impersonation.phtml?lang_id=3&amp;mail_code=21&amp;email \
=nagiosplug-help%40lists.sourceforge.net&amp;secret=&amp;action=block&amp;block_code=a703df&amp;m=21&amp;mid=4f9160c10000000000030000179babbb" \
target="_blank">http://eu1.badoo.com/impersonation.phtml?lang_id=3&amp;mail_code=21&am \
p;email=nagiosplug-help%40lists.sourceforge.net&amp;secret=&amp;action=block&amp;block_code=a703df&amp;m=21&amp;mid=4f9160c10000000000030000179babbb</a>
 Badoo Trading Limited is a limited company registered in England and Wales
under CRN 7540255 with its registered office at 12 Red Lion Square, London, WC1R 4QD.
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
<a href="http://p.sf.net/sfu/Boundary-d2dvs2" \
target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a>

------------------------------

_______________________________________________
Nagiosplug-help mailing list
<a href="mailto:Nagiosplug-help@lists.sourceforge.net" \
target="_blank">Nagiosplug-help@lists.sourceforge.net</a> <a \
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>


End of Nagiosplug-help Digest, Vol 71, Issue 7
**********************************************

</pre>
    </blockquote>
    <br>
    <br>
    <pre cols="72"></pre>
  </div>

<br>------------------------------------------------------------------------------<br>
 For Developers, A Lot Can Happen In A Second.<br>
Boundary is the first to Know...and Tell You.<br>
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!<br>
<a href="http://p.sf.net/sfu/Boundary-d2dvs2" \
target="_blank">http://p.sf.net/sfu/Boundary-d2dvs2</a><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> \
::: 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>



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2


_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic