Dropbox | 13 May 12:40

Hưng Nguyễn invited you to Dropbox

Hưng Nguyễn wants you to try Dropbox! Dropbox lets you bring all your photos, docs and videos with you anywhere and share them easily.

Get started here.

- The Dropbox Team
To stop receiving invites from Dropbox, click here. © 2012 Dropbox
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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
abhay.kshinde | 30 Apr 09:26

check_time

HI,

Now I am able to run this script in the client server and getting the required output through command line.

Now I have defined this service in the Nagios server.
What will be the next stepso that I can get the output through Nagios command?

Now I am getting the error  : (No output returned from plugin) 

Please suggest the steps

Regards,
Abhay 

Message: 1
Date: Tue, 24 Apr 2012 23:13:52 +0100
From: Edward Blum <eddy.blum@...>
Subject: Re: [Nagiosplug-help] help Check_time
To: Nagios Plugin Help List <nagiosplug-help@...>
Message-ID:
	<CADRL2VwnKWhNc6iTKx3_wN3rqQxcih2zuuJZ8AB-LKxZZPZALg@...>
Content-Type: text/plain; charset="iso-8859-1"

Hi Alex,

It looks like you are using the wrong syntax for the check_time plugin.
Please paste the code you are using.

Get it working from the command line first before adding a host definition.

On 24 April 2012 23:03, <abhay.kshinde@...> wrote:

>  Dear Alex,****
>
> ** **
>
> Thanx for replying.****
>
> ** **
>
> I am getting the below error while I am trying to use that script.****
>
> ** **
>
> ****
>
> Could you please suggest on this.****
>
> ** **
>
> Abhay****
>
> ** **
>
> -----Original Message-----
> From: nagiosplug-help-request@... [mailto:
> nagiosplug-help-request@...]
> Sent: Monday, April 23, 2012 5:50 PM
> To: nagiosplug-help@...
> Subject: Nagiosplug-help Digest, Vol 71, Issue 8
>
> ** **
>
> Send Nagiosplug-help mailing list submissions to****
>
>       nagiosplug-help@...****
>
> ** **
>
> 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@...****
>
> ** **
>
> You can reach the person managing the list at****
>
>       nagiosplug-help-owner@...****
>
> ** **
>
> When replying, please edit your Subject line so it is more specific****
>
> than "Re: Contents of Nagiosplug-help digest..."****
>
> ** **
>
> ** **
>
> Today's Topics:****
>
> ** **
>
>    1. Re: help (Alex Griffin)****
>
>    2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)****
>
> ** **
>
> ** **
>
> ----------------------------------------------------------------------****
>
> ** **
>
> Message: 1****
>
> Date: Fri, 20 Apr 2012 09:19:42 -0500****
>
> From: Alex Griffin <agriffin@...>****
>
> Subject: Re: [Nagiosplug-help] help****
>
> To: Nagios Plugin Help List <nagiosplug-help@...>****
>
> Message-ID: <4F91707E.70300@...>****
>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed****
>
> ** **
>
> There are a few NTP plugins on Nagios Exchange: ****
>
>
> http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp
> ****
>
> ** **
>
> I haven't used any of them so I'm afraid I can't get more detailed than **
> **
>
> that, but you'll need an NTP server to sync against. There are publicly **
> **
>
> available servers you could try if your whole network has internet ****
>
> access, otherwise you'll need to run your own.****
>
> ** **
>
> Alex Griffin****
>
> ---****
>
> Tech Team****
>
> agriffin@...****
>
> ** **
>
> Abhay Shinde wrote:****
>
> > 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****
>
> >** **
>
> >** **
>
> >** **
>
> >
> ------------------------------------------------------------------------------
> ****
>
> > 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@...****
>
> > 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**
> **
>
> ** **
>
> ** **
>
> ** **
>
> ------------------------------****
>
> ** **
>
> Message: 2****
>
> Date: Mon, 23 Apr 2012 17:31:55 +0530****
>
> From: Kamlesh Verma <kamleshverma@...>****
>
> Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7****
>
> To: nagiosplug-help@...****
>
> Message-ID: <4F9544B3.8070101@...>****
>
> Content-Type: text/plain; charset="iso-8859-1"****
>
> ** **
>
> 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@... wrote:****
>
> > Send Nagiosplug-help mailing list submissions to****
>
> >     nagiosplug-help@...****
>
> >** **
>
> > 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@...****
>
> >** **
>
> > You can reach the person managing the list at****
>
> >     nagiosplug-help-owner@...****
>
> >** **
>
> > 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@...)****
>
> >     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@...>****
>
> > Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and****
>
> >     check_http****
>
> > To: Alex Griffin<agriffin@...>****
>
> > Cc: Nagios Plugin Help List<nagiosplug-help@...>****
>
> > Message-ID:****
>
> >     <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@...>
> ****
>
> > 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@...>  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 Team****
>
> >> agriffin@...****
>
> >>** **
>
> >>** **
>
> >> 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>****
>
> >>> ******
>
> >>>** **
>
> >>>** **
>
> >>> 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@...****
>
> >>> <mailto:eddy.blum@...>>  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/>  -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/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/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/
> >>****
>
> >>> -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>****
>
> >>>** **
>
> >>>** **
>
> >>>** **
>
> >>> ______________________________**_________________****
>
> >>> Nagiosplug-help mailing list****
>
> >>> Nagiosplug-help <at> lists.**sourceforge.net<
> 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@...>****
>
> > Subject: [Nagiosplug-help] help****
>
> > To:<nagiosplug-help@...>****
>
> > Message-ID:****
>
> >     <8BB23A8F6FFF384096867BAF7D98ED27131DD1@...>****
>
> > 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@...>****
>
> > Subject: [Nagiosplug-help] Nagiosplug Help,   Njlytoh Hotily left a****
>
> >     message for you...****
>
> > To: nagiosplug-help@...****
>
> > Message-ID:****
>
> >     <
> mailman.323859.1334927566.6384.nagiosplug-help@...>****
>
> > 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=nagiosplug-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 list****
>
> > Nagiosplug-help@...****
>
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help****
>
> >** **
>
> >** **
>
> > End of Nagiosplug-help Digest, Vol 71, Issue 7****
>
> > **************************************************
>
> >** **
>
> ** **
>
> ** **
>
> -------------- 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 list****
>
> Nagiosplug-help@...****
>
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help****
>
> ** **
>
> ** **
>
> End of Nagiosplug-help Digest, Vol 71, Issue 8****
>
> **************************************************
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Nagiosplug-help mailing list
> 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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3370 bytes
Desc: not available

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

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

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@...
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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

Badoo | 28 Apr 04:29
Favicon

Read your message before it gets deleted!

Read your message left by Njlytoh Hotily before it gets deleted!



Read your message...



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). If you do not wish to receive further email communications from Badoo, please click here to opt out.
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.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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
abhay.kshinde | 26 Apr 21:58

check_time.vbs

Definition is :

define service{
       use                     generic-service
      host_name                LVHSMTEST01
       service_description     check_time
       check_command           check_time! 10.240.2.45 -p 12489 -wd 5 -cd 10
       }

Hey Please clear me below doubts.

1) I have run this script on windows server, but while checking from command line of same server It is giving
error mentioned earlier.
2)Why I am not geeting the required output through command line?

Kind regards,

-----Original Message-----
From: nagiosplug-help-request@...
[mailto:nagiosplug-help-request@...] 
Sent: Friday, April 27, 2012 1:21 AM
To: nagiosplug-help@...
Subject: Nagiosplug-help Digest, Vol 71, Issue 12

Send Nagiosplug-help mailing list submissions to
	nagiosplug-help@...

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@...

You can reach the person managing the list at
	nagiosplug-help-owner@...

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

Today's Topics:

   1. Re: help Check_time (Alex Griffin)
   2. check_time.vbs (abhay.kshinde@...)

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

Message: 1
Date: Wed, 25 Apr 2012 10:51:35 -0500
From: Alex Griffin <agriffin@...>
Subject: Re: [Nagiosplug-help] help Check_time
To: Nagios Plugin Help List <nagiosplug-help@...>
Message-ID: <4F981D87.90704@...>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Could you post your service definition? It seems you gave incorrect 
options to the plugin, but it's hard to tell what went wrong without 
seeing what you tried.

Alex Griffin
---
Tech Team
agriffin@...

abhay.kshinde@... wrote:
> Dear Alex,
>
> Thanx for replying.
>
> I am getting the below error while I am trying to use that script.
>
> Could you please suggest on this.
>
> Abhay

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

Message: 2
Date: Thu, 26 Apr 2012 19:50:26 +0000
From: <abhay.kshinde@...>
Subject: [Nagiosplug-help] check_time.vbs
To: <nagiosplug-help@...>
Message-ID:
	<8BB23A8F6FFF384096867BAF7D98ED2714D1AC@...>
Content-Type: text/plain; charset="us-ascii"

HI

While running check_time.vbs script from command line,I am getting below error.

[cid:image001.png@...]

Please suggest

Regards,

-----Original Message-----
From: nagiosplug-help-request@... [mailto:nagiosplug-help-request@...]
Sent: Monday, April 23, 2012 5:50 PM
To: nagiosplug-help@...
Subject: Nagiosplug-help Digest, Vol 71, Issue 8

Send Nagiosplug-help mailing list submissions to

      nagiosplug-help@...

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@...

You can reach the person managing the list at

      nagiosplug-help-owner@...

When replying, please edit your Subject line so it is more specific

than "Re: Contents of Nagiosplug-help digest..."

Today's Topics:

   1. Re: help (Alex Griffin)

   2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)

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

Message: 1

Date: Fri, 20 Apr 2012 09:19:42 -0500

From: Alex Griffin <agriffin@...>

Subject: Re: [Nagiosplug-help] help

To: Nagios Plugin Help List <nagiosplug-help@...>

Message-ID: <4F91707E.70300@...>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

There are a few NTP plugins on Nagios Exchange:

http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp

I haven't used any of them so I'm afraid I can't get more detailed than

that, but you'll need an NTP server to sync against. There are publicly

available servers you could try if your whole network has internet

access, otherwise you'll need to run your own.

Alex Griffin

---

Tech Team

agriffin@...

Abhay Shinde wrote:

> 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

>

>

>

> ------------------------------------------------------------------------------

> 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@...

> 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

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

Message: 2

Date: Mon, 23 Apr 2012 17:31:55 +0530

From: Kamlesh Verma <kamleshverma@...>

Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7

To: nagiosplug-help@...

Message-ID: <4F9544B3.8070101@...>

Content-Type: text/plain; charset="iso-8859-1"

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@... wrote:

> Send Nagiosplug-help mailing list submissions to

>     nagiosplug-help@...

>

> 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@...

>

> You can reach the person managing the list at

>     nagiosplug-help-owner@...

>

> 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@...)

>     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@...>

> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and

>     check_http

> To: Alex Griffin<agriffin@...>

> Cc: Nagios Plugin Help List<nagiosplug-help@...>

> Message-ID:

>     <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ@...>

> 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@...>  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 Team

>> agriffin@...

>>

>>

>> 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>

>>> **≥

>>>

>>>

>>> 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@...

>>> <mailto:eddy.blum@...>>  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/>  -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/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/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/>>

>>> -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>

>>>

>>>

>>>

>>> ______________________________**_________________

>>> Nagiosplug-help mailing list

>>> Nagiosplug-help <at> lists.**sourceforge.net<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@...>

> Subject: [Nagiosplug-help] help

> To:<nagiosplug-help@...>

> Message-ID:

>     <8BB23A8F6FFF384096867BAF7D98ED27131DD1@...>

> 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@...>

> Subject: [Nagiosplug-help] Nagiosplug Help,   Njlytoh Hotily left a

>     message for you...

> To: nagiosplug-help@...

> Message-ID:

>     <mailman.323859.1334927566.6384.nagiosplug-help@...>

> 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=nagiosplug-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 list

> Nagiosplug-help@...

> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

>

>

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

> **********************************************

>

-------------- 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 list

Nagiosplug-help@...

https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

End of Nagiosplug-help Digest, Vol 71, Issue 8

**********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1791 bytes
Desc: image001.png

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

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

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@...
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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

abhay.kshinde | 26 Apr 21:50

check_time.vbs

HI

 

While running check_time.vbs script from command line,I am getting below error.

 

 

Please suggest

 

Regards,

 

 

-----Original Message-----
From: nagiosplug-help-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:nagiosplug-help-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
Sent: Monday, April 23, 2012 5:50 PM
To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Nagiosplug-help Digest, Vol 71, Issue 8

 

Send Nagiosplug-help mailing list submissions to

      nagiosplug-help <at> 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

 

You can reach the person managing the list at

      nagiosplug-help-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of Nagiosplug-help digest..."

 

 

Today's Topics:

 

   1. Re: help (Alex Griffin)

   2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)

 

 

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

 

Message: 1

Date: Fri, 20 Apr 2012 09:19:42 -0500

From: Alex Griffin <agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

Subject: Re: [Nagiosplug-help] help

To: Nagios Plugin Help List <nagiosplug-help <at> lists.sourceforge.net>

Message-ID: <4F91707E.70300-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 

There are a few NTP plugins on Nagios Exchange:

http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp

 

I haven't used any of them so I'm afraid I can't get more detailed than

that, but you'll need an NTP server to sync against. There are publicly

available servers you could try if your whole network has internet

access, otherwise you'll need to run your own.

 

Alex Griffin

---

Tech Team

agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org

 

Abhay Shinde wrote:

> 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

>

 

>

 

>

 

> ------------------------------------------------------------------------------

> 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> 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

 

 

 

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

 

Message: 2

Date: Mon, 23 Apr 2012 17:31:55 +0530

From: Kamlesh Verma <kamleshverma-B24aHWx+/k3SCDK34cm6iQ@public.gmane.orgm>

Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7

To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

Message-ID: <4F9544B3.8070101-B24aHWx+/k2B+jHODAdFcQ@public.gmane.org>

Content-Type: text/plain; charset="iso-8859-1"

 

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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:

> Send Nagiosplug-help mailing list submissions to

>     nagiosplug-help-5NWGOfrQmneHXe+LvDLADg@public.gmane.orgrceforge.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 <at> lists.sourceforge.net

>

 

> You can reach the person managing the list at

>     nagiosplug-help-owner <at> 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org)

>     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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and

>     check_http

> To: Alex Griffin<agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

> Cc: Nagios Plugin Help List<nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> Message-ID:

>     <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

> 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-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>  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 Team

>> agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org

>>

 

>>

 

>> 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>

>>> **>

>>>

 

>>>

 

>>> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

>>> <mailto:eddy.blum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>>  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/>  -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/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/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/>>

>>> -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>

>>>

 

>>>

 

>>>

 

>>> ______________________________**_________________

>>> Nagiosplug-help mailing list

>>> Nagiosplug-help <at> lists.**sourceforge.net<Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

>>> 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>

> Subject: [Nagiosplug-help] help

> To:<nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> Message-ID:

>     <8BB23A8F6FFF384096867BAF7D98ED27131DD1-oXGDjV/NE2UbY4SgQXmYJoJt+NpFC6AG@public.gmane.org>

> 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 <at> badoo.com>

> Subject: [Nagiosplug-help] Nagiosplug Help,   Njlytoh Hotily left a

>     message for you...

> To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> Message-ID:

>     <mailman.323859.1334927566.6384.nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> 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=nagiosplug-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 list

> Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

>

 

>

 

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

> **********************************************

>

 

 

 

-------------- 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 list

Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

 

 

End of Nagiosplug-help Digest, Vol 71, Issue 8

**********************************************

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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
abhay.kshinde | 25 Apr 00:03

help Check_time

Dear Alex,

 

Thanx for replying.

 

I am getting the below error while I am trying to use that script.

 

Could you please suggest on this.

 

Abhay

 

-----Original Message-----
From: nagiosplug-help-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:nagiosplug-help-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
Sent: Monday, April 23, 2012 5:50 PM
To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Nagiosplug-help Digest, Vol 71, Issue 8

 

Send Nagiosplug-help mailing list submissions to

      nagiosplug-help <at> 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

 

You can reach the person managing the list at

      nagiosplug-help-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

 

When replying, please edit your Subject line so it is more specific

than "Re: Contents of Nagiosplug-help digest..."

 

 

Today's Topics:

 

   1. Re: help (Alex Griffin)

   2. Re: Nagiosplug-help Digest, Vol 71, Issue 7 (Kamlesh Verma)

 

 

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

 

Message: 1

Date: Fri, 20 Apr 2012 09:19:42 -0500

From: Alex Griffin <agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

Subject: Re: [Nagiosplug-help] help

To: Nagios Plugin Help List <nagiosplug-help <at> lists.sourceforge.net>

Message-ID: <4F91707E.70300-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 

There are a few NTP plugins on Nagios Exchange:

http://exchange.nagios.org/index.php?option=com_mtree&task=search&Itemid=74&searchword=ntp

 

I haven't used any of them so I'm afraid I can't get more detailed than

that, but you'll need an NTP server to sync against. There are publicly

available servers you could try if your whole network has internet

access, otherwise you'll need to run your own.

 

Alex Griffin

---

Tech Team

agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org

 

Abhay Shinde wrote:

> 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

>

 

>

 

>

 

> ------------------------------------------------------------------------------

> 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> 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

 

 

 

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

 

Message: 2

Date: Mon, 23 Apr 2012 17:31:55 +0530

From: Kamlesh Verma <kamleshverma-B24aHWx+/k3SCDK34cm6iQ@public.gmane.orgm>

Subject: Re: [Nagiosplug-help] Nagiosplug-help Digest, Vol 71, Issue 7

To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

Message-ID: <4F9544B3.8070101-B24aHWx+/k2B+jHODAdFcQ@public.gmane.org>

Content-Type: text/plain; charset="iso-8859-1"

 

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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:

> Send Nagiosplug-help mailing list submissions to

>     nagiosplug-help-5NWGOfrQmneHXe+LvDLADg@public.gmane.orgrceforge.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 <at> lists.sourceforge.net

>

 

> You can reach the person managing the list at

>     nagiosplug-help-owner <at> 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org)

>     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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and

>     check_http

> To: Alex Griffin<agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>

> Cc: Nagios Plugin Help List<nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> Message-ID:

>     <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

> 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-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org>  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 Team

>> agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org

>>

 

>>

 

>> 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>

>>> **>

>>>

 

>>>

 

>>> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

>>> <mailto:eddy.blum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>>  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/>  -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/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/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/>>

>>> -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>

>>>

 

>>>

 

>>>

 

>>> ______________________________**_________________

>>> Nagiosplug-help mailing list

>>> Nagiosplug-help <at> lists.**sourceforge.net<Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

>>> 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>

> Subject: [Nagiosplug-help] help

> To:<nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> Message-ID:

>     <8BB23A8F6FFF384096867BAF7D98ED27131DD1-oXGDjV/NE2UbY4SgQXmYJoJt+NpFC6AG@public.gmane.org>

> 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 <at> badoo.com>

> Subject: [Nagiosplug-help] Nagiosplug Help,   Njlytoh Hotily left a

>     message for you...

> To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> Message-ID:

>     <mailman.323859.1334927566.6384.nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>

> 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=nagiosplug-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 list

> Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

>

 

>

 

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

> **********************************************

>

 

 

 

-------------- 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 list

Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

https://lists.sourceforge.net/lists/listinfo/nagiosplug-help

 

 

End of Nagiosplug-help Digest, Vol 71, Issue 8

**********************************************

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagiosplug-help mailing list
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
Kamlesh Verma | 23 Apr 14:01

Re: Nagiosplug-help Digest, Vol 71, Issue 7

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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org wrote:
Send Nagiosplug-help mailing list submissions to nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org You can reach the person managing the list at nagiosplug-help-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org) 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: Re: [Nagiosplug-help] Strange problem with Bash, AWK and check_http To: Alex Griffin <agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org> Cc: Nagios Plugin Help List <nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Message-ID: <CADRL2VzjChqKwUTKj0MdxNDb333RfoSfEUuojYMDfKur3jAMXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 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-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org> 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 Team agriffin-cRTiucJEmYDQT0dZR+AlfA@public.gmane.org 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> **> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:eddy.blum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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/> -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/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/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/>> -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> ______________________________**_________________ Nagiosplug-help mailing list Nagiosplug-help <at> lists.**sourceforge.net<Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> 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-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> Subject: [Nagiosplug-help] help To: <nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Message-ID: <8BB23A8F6FFF384096867BAF7D98ED27131DD1-oXGDjV/NE2UbY4SgQXmYJoJt+NpFC6AG@public.gmane.org> 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-rSluqvnLCooAvxtiuMwx3w@public.gmane.org> Subject: [Nagiosplug-help] Nagiosplug Help, Njlytoh Hotily left a message for you... To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <mailman.323859.1334927566.6384.nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> 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=nagiosplug-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 list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://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@...
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
Badoo | 20 Apr 15:12
Favicon

Nagiosplug Help, Njlytoh Hotily left a message for you...

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:

Check your message...


Some other people in the area who are on Badoo

Quosho
Lviv, Ukraine
Vita
Lviv, Ukraine
 
Kristina
Lviv, Ukraine
 


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). If you do not wish to receive further email communications from Badoo, please click here to opt out.
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.

------------------------------------------------------------------------------
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@...
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
abhay.kshinde | 19 Apr 17:34

help

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

 

------------------------------------------------------------------------------
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@...
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
Edward Blum | 11 Apr 00:01
Picon

Strange problem with Bash, AWK and check_http

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 -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 :

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:

STATUS: HTTP/1.1 200 OK
**** HEADER ****
x-amz-id-2: lmJo9jgflJdp+ehTirekL19lXFY5KsNJ13UkiSWlNjiWzeYtVJ1OX7VIDZrsMNUJ
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: "ca684ddfa09409f8890e8c92bc68f619"
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 -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
_______________________________________________
Nagiosplug-help mailing list
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
federico.roggero | 4 Apr 11:42

Federico Roggero está ausente de la oficina

Estaré ausente de la oficina desde el  30/03/2012 y no volveré hasta el 16/04/2012.

Responderé a su mensaje cuando regrese.

"El emisor de este mensaje es responsable por su contenido y direccionamiento. Cabe al destinatario darle el tratamiento adecuado. Sin la debida autorización, su divulgación, reproducción, distribución o cualquier otra acción no conforme a las normas internas del Sistema Petrobras están prohibidas y serán pasibles de sanción disciplinaria, civil y penal."

"O emitente desta mensagem é responsável por seu conteúdo e endereçamento. Cabe ao destinatário cuidar quanto ao tratamento adequado. Sem a devida autorização, a divulgação, a reprodução, a distribuição ou qualquer outra ação em desconformidade com as normas internas do Sistema Petrobras são proibidas e passíveis de sanção disciplinar, cível e criminal."

"The sender of this message is responsible for its content and addressing. The receiver shall take proper care of it. Without due authorization, the publication, reproduction, distribution or the performance of any other action not conforming to Petrobras System internal policies and procedures is forbidden and liable to disciplinary, civil or criminal sanctions."

------------------------------------------------------------------------------
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
_______________________________________________
Nagiosplug-help mailing list
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

Gmane