RRDTool exits with errors -> ERROR: can't make a graph

Navdeep Sidhu Navdeep.Sidhu at tatatel.co.in
Thu Aug 4 11:10:12 CEST 2011


Hi Mathew

Thanks for your response. I have also deleted the existing RRD files so
that fresh data can be captured through check commands but error is
still the same.

However while running check commands manually, I'm getting required
output but not getting the content in graph.

Any help would be greatly appreciated.

Regards
Navdeep Sidhu

-----Original Message-----
From: nagios-users-request at lists.sourceforge.net
[mailto:nagios-users-request at lists.sourceforge.net] 
Sent: Monday, August 01, 2011 7:02 AM
To: nagios-users at lists.sourceforge.net
Subject: Nagios-users Digest, Vol 63, Issue 1

Send Nagios-users mailing list submissions to
	nagios-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
	nagios-users-request at lists.sourceforge.net

You can reach the person managing the list at
	nagios-users-owner at lists.sourceforge.net

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


Today's Topics:

   1. Re: RRDTool exits with errors -> ERROR: can't make a graph
      without contents (Mathew Walker)
   2. Re: Event Handler Question (Mathew Walker)
   3. windows.cfg (Craig Niedringhaus)
   4. Re: windows.cfg (Jonathan Angliss)
   5. AUTO: Eliot Picken is out of the office (returning
      01/08/2011) (Eliot.Picken at wenaas.co.uk)
   6. Re: windows.cfg (Craig Niedringhaus)
   7. about:nagios.cmd get multi external command (k Dylan')
   8. check_http + headers (af.at.work at gmail.com)
   9. Re: check_http + headers (Gary Every)
  10. Re: check_http + headers (af.at.work at gmail.com)
  11. Re: check_http + headers (Ton Voon)
  12. Re: check_http + headers (af.at.work at gmail.com)
  13. Re: check_http + headers (af.at.work at gmail.com)
  14. Re: check http port 80 warning on a site that	actually
      exists. (Frank Bulk)
  15. Determine previous service state in notification	script
      (Jonathan Thorpe)
  16. Re: Determine previous service state in	notification	script
      (Joseph L. Casale)
  17. Re: Determine previous service state in notification	script
      (Jonathan Thorpe)


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

Message: 1
Date: Thu, 28 Jul 2011 08:40:42 -0400
From: Mathew Walker <lmw94002 at hotmail.com>
Subject: Re: [Nagios-users] RRDTool exits with errors -> ERROR: can't
	make a graph without contents
To: <nagios-users at lists.sourceforge.net>
Message-ID: <SNT116-W35DAF8BFABA2BB8E269D0586340 at phx.gbl>
Content-Type: text/plain; charset="windows-1252"


I recently ran into a similar testing Nagios/NagVis/PnP4Nagios.

To throw it out there... you are using an older version of PNP as
they're beyond 0.6 now.

I was trying to add a new service and testing.  I had been tweaking the
check's command line options to find the write output I wanted.  Once
the check worked how I wanted, I noticed I was getting an error on the
graph.  Since this was a new check, I deleted the existing RRD files
that had been created and let new ones get created.  That corrected the
issue.  I assume the RRD file was initially created with incorrect
parameters as I was changing the check during my initial testing.

-- 
Mat W.

Date: Thu, 28 Jul 2011 17:18:58 +0530
From: Navdeep.Sidhu at tatatel.co.in
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] RRDTool exits with errors -> ERROR: can't make a
graph without contents



Hi I'm using Nagios 2.8 with RRD tool version 1.0.50 & PNP version
0.3installed. Nagios is running on RHEL-4. I'm facing an issue in RRD
Tool. Recently I have configured this toolfor Cisco devices (under
serviceextinfo.cfg file) so that memory & CPUutilization should be
available in graphs however I'm getting followingerror when trying to
view the graphs. RRDTool exits with errors -> ERROR: can't make a graph
without contents.  This tool is working fine with Intel platform servers
& displaying thegraphs however not working in Cisco devices. I?m pasting
excerpt of my host configuration & serviceextinfo file to provide clear
picture. In fact, in Nagios web console, I?m able to see Memory & CPU
utilization of Cisco devices however unable to view the graphs. I?m
using check_snmp_mem.pl plugin to capture Memory utilization of Cisco
devices. Let me know if any other info required from me.   Excerpts of
host Configuration File define command{        command_name
process-service-perfdata        command_line    /usr/bin/perl
/usr/local/nagios/libexec/process_perfdata.pl        } Excerpts of
Serviceextinfo File define serviceextinfo{              host_name
L3-Switch              service_description               MEM
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$              } I
would really appreciate your help in this regard. RegardsNavdeep  
 
 
======================================
i-choose 
online store at www.tataindicom.com
Your Comfort. Your 
Convenience. Your Choice.
======================================
DISCLAIMER:
The information contained in this 
message (including any attachments) is confidential and may be
privileged. If 
you have received it by mistake please notify the sender by return
e-mail and 
permanently delete this message and any attachments from your system.
Any 
dissemination, use, review, distribution, printing or copying of this
message in 
whole or in part is strictly prohibited. Please note that e-mails are 
susceptible to change. TATA TELESERVICES LTD. (including its group
companies) 
shall not be liable for the improper or incomplete transmission of the 
information contained in this communication nor for any delay in its
receipt or 
damage to your system. TATA TELESERVICES LTD. (or its group companies)
does not 
guarantee that the integrity of this communication has been maintained
or that 
this communication is free of viruses, interceptions or interferences. 



------------------------------------------------------------------------
------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin 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, 28 Jul 2011 08:51:15 -0400
From: Mathew Walker <lmw94002 at hotmail.com>
Subject: Re: [Nagios-users] Event Handler Question
To: Nagios Users <nagios-users at lists.sourceforge.net>
Message-ID: <SNT116-W2796752E49FF69D23A2DE186340 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


May or may not be related... When testing new plugins and scripts, make
sure you're testing them as the "nagios" user the scripts will be
running as when integrated w/ Nagios.

I documented what I did for a previous employer awhile back here:
http://www.techadre.com/content/nagios-event-handler-restarting-service

Perhaps something in there may be useful.

-- 
Mat W. 

> From: Marcel.Galke at trans4mation.de
> To: nagios-users at lists.sourceforge.net
> Date: Wed, 27 Jul 2011 11:46:18 +0200
> Subject: Re: [Nagios-users] Event Handler Question
> 
> Hey Chris,
> 
> have you taken a look into the Docu and verified that the used macros
are available in your context? Have you tried the debug option?
> 
> Marcel
> 
> 
> >From: Chris Zimmerman [mailto:czimmer at wczimmerman.dyndns.org] 
> >Sent: Wednesday, July 27, 2011 12:27 AM
> >To: nagios-users at lists.sourceforge.net
> >Subject: [Nagios-users] Event Handler Question
> >
> >I am having an issue with a very basic event handler on Nagios 3.2.3.
I have the event handler defined with 3 macros: $HOSTSTATE$
$HOSTSTATETYPE$ $HOSTADDRESS$ all passed to a wrapper shell script that
takes each macro as $1, $2, and $3.  In the >wrapper script I added some
echo statements as part of my troubleshooting to figure out why my
script wasn't working.  If I run the script manually and pass the
arguments as I expect, the script runs fine.  When Nagios executes it,
as verified in the log, >nothing is happening and it is because the
first 2 arguments are not being passed to the script.  Interestingly,
the third one is passed to the script.  
> >
> >So, what could be the issue with the command definition not passing
the first 2 arguments?
> >
> >Thanks,
> >Chris
> 
>
------------------------------------------------------------------------
------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin 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: 3
Date: Thu, 28 Jul 2011 18:22:19 -0500
From: "Craig Niedringhaus" <craig at milwaukeenet.net>
Subject: [Nagios-users] windows.cfg
To: <nagios-users at lists.sourceforge.net>
Message-ID: <029101cc4d7d$32d36fb0$987a4f10$@milwaukeenet.net>
Content-Type: text/plain; charset="us-ascii"

Hi

I think I have a corrupt windows.cfg   When I enable the windows.cfg in
nagios.cfg Nagios will kick back an error when I try to restart it.

Any suggestions or is there a clean windows.cfg I could try?

 

Thanks

 

 

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

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

Message: 4
Date: Thu, 28 Jul 2011 18:40:03 -0500
From: Jonathan Angliss <jon at netdork.net>
Subject: Re: [Nagios-users] windows.cfg
To: nagios-users at lists.sourceforge.net
Message-ID: <j0ss0p$kmc$1 at dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 07/28/11 18:22, Craig Niedringhaus wrote:
> Hi
>
> I think I have a corrupt windows.cfg When I enable the windows.cfg in
> nagios.cfg Nagios will kick back an error when I try to restart it.
>
> Any suggestions or is there a clean windows.cfg I could try?

What is the error you're getting?  What happens when you tell nagios to 
validate the config?

   nagios -v /path/to/nagios.cfg

The file windows.cfg is a conventional name to hint there might be 
windows based computers in there.  However that's for you, not Nagios. 
Nagios reads them all, and processes them afterwards.  There is likely 
an error, maybe a missing reference, so full details on the error is 
important.

-- 
Jonathan Angliss




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

Message: 5
Date: Fri, 29 Jul 2011 00:39:46 +0100
From: Eliot.Picken at wenaas.co.uk
Subject: [Nagios-users] AUTO: Eliot Picken is out of the office
	(returning	01/08/2011)
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<OF08DAF280.C0BC761A-ON802578DB.0081FBF5-802578DB.0081FBF5 at kwintet.com>
	
Content-Type: text/plain; charset=US-ASCII


I am out of the office until 01/08/2011.

I am currently out of the office, and your email has not been forwarded.







Note: This is an automated response to your message  "[Nagios-users]
windows.cfg" sent on 7/29/2011 12:22:19 AM.

This is the only notification you will receive while this person is
away.




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

Message: 6
Date: Thu, 28 Jul 2011 21:41:47 -0500
From: "Craig Niedringhaus" <craig at milwaukeenet.net>
Subject: Re: [Nagios-users] windows.cfg
To: "'Nagios Users List'" <nagios-users at lists.sourceforge.net>
Message-ID: <02a801cc4d99$10a49ba0$31edd2e0$@milwaukeenet.net>
Content-Type: text/plain;	charset="us-ascii"

   It did find an error,  could not expand host group on line 139.
Checking that now
Thanks!

-----Original Message-----
From: Jonathan Angliss [mailto:jon at netdork.net] 
Sent: Thursday, July 28, 2011 6:40 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] windows.cfg

On 07/28/11 18:22, Craig Niedringhaus wrote:
> Hi
>
> I think I have a corrupt windows.cfg When I enable the windows.cfg in 
> nagios.cfg Nagios will kick back an error when I try to restart it.
>
> Any suggestions or is there a clean windows.cfg I could try?

What is the error you're getting?  What happens when you tell nagios to
validate the config?

   nagios -v /path/to/nagios.cfg

The file windows.cfg is a conventional name to hint there might be
windows
based computers in there.  However that's for you, not Nagios. 
Nagios reads them all, and processes them afterwards.  There is likely
an
error, maybe a missing reference, so full details on the error is
important.

--
Jonathan Angliss


------------------------------------------------------------------------
----
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null




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

Message: 7
Date: Fri, 29 Jul 2011 17:31:32 +0800
From: "k Dylan'" <dylanklc at gmail.com>
Subject: [Nagios-users] about:nagios.cmd get multi external command
To: nagios-users at lists.sourceforge.net
Message-ID:
	
<CADDKgvHG0UST=_umryLUBiW9LpkSutmNwYu0NOP3sa2xW9Voxw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I have a problem about file: nagios.cmd.I wanna write mutil external
command
to nagios.cmd at the same time.But nagios will report problem to me.And
then
i put sleep(1) within write every externl command to nagios.cmd;That
will be
OK.But i think here will be better idea to slove this problem.
Does anybody has better idea to solve this problem?
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 8
Date: Fri, 29 Jul 2011 09:35:32 -0400
From: af.at.work at gmail.com
Subject: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<CABJ=0o5V3+3=JiyZxjak5Y0S+X40yQPeer4z-mg2E6MkNfQwfQ at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

With cURL, I can successfully log into the website I ultimately want
have Nagios test by passing --cookies.

Something like this: curl --cookie
"user=4reqrerqwr;userlogin=123adsfjlk324"
http://mysite.com/home/index.aspx -v | grep Welcome

I know it is successful because, 1, I can visually see the rendered
code and 2, the grep search for Welcome would only be seen if the
authentication was successful.

I am trying to mimic this in Nagios with check_http like so:

./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
follow -s Welcome -k 'Cookie: user=4reqrerqwr;userlogin=123adsfjlk324'
-v

One big difference I see is that in cURL the cookie is set on 1 line
but the verbose response from check_http shows the cookie on two
lines.

Cookie: user=4reqrerqwr;userlogin=123adsfjlk324 vs

Cookie: user=4reqrerqwr
userlogin=123adsfjlk324

I am open to suggestions and of course alternatives. I have checked
out WebInject but this seems to be SO close I hate to drop it.

Lastly, I have tried check_curl, and extended it to support cookies.
This DOES work but I am getting (null) on the responses and the grep
never causes Nagios to fail regardless of a valid result being
returned.



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

Message: 9
Date: Fri, 29 Jul 2011 07:03:45 -0700
From: Gary Every <gevery at gmail.com>
Subject: Re: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<CANfN5U7YYrAFYTVA4P1Sv7A2TzqX0EdQqFnnpWdtK0c5EkT3Nw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Try using something besides  a ; to separate the user and userlogin or
better yet encapsulate them in quotes???

 'Cookie: "user=4reqrerqwr;userlogin=123adsfjlk324"'

On Fri, Jul 29, 2011 at 6:35 AM, <af.at.work at gmail.com> wrote:

> With cURL, I can successfully log into the website I ultimately want
> have Nagios test by passing --cookies.
>
> Something like this: curl --cookie
> "user=4reqrerqwr;userlogin=123adsfjlk324"
> http://mysite.com/home/index.aspx -v | grep Welcome
>
> I know it is successful because, 1, I can visually see the rendered
> code and 2, the grep search for Welcome would only be seen if the
> authentication was successful.
>
> I am trying to mimic this in Nagios with check_http like so:
>
> ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
> follow -s Welcome -k 'Cookie: user=4reqrerqwr;userlogin=123adsfjlk324'
> -v
>
> One big difference I see is that in cURL the cookie is set on 1 line
> but the verbose response from check_http shows the cookie on two
> lines.
>
> Cookie: user=4reqrerqwr;userlogin=123adsfjlk324 vs
>
> Cookie: user=4reqrerqwr
> userlogin=123adsfjlk324
>
> I am open to suggestions and of course alternatives. I have checked
> out WebInject but this seems to be SO close I hate to drop it.
>
> Lastly, I have tried check_curl, and extended it to support cookies.
> This DOES work but I am getting (null) on the responses and the grep
> never causes Nagios to fail regardless of a valid result being
> returned.
>
>
>
------------------------------------------------------------------------
------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Gary Every
"Pay it Forward!"
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 10
Date: Fri, 29 Jul 2011 10:14:50 -0400
From: af.at.work at gmail.com
Subject: Re: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<CABJ=0o6PpG4DYRYwBw0xpNcNegM7fHA9NZeF35eTT8rpf-Ksgg at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Wrapping in quotes still made pushed the second value to another line.
Cookie:
"AwarenessNETUserLogin_8800=04dDHmcJjn2vfcvP97i+z9yBGic0y4BIhNfDo8wN1fE=
username=admin"

Can the ; be escaped? I can't pass anything else.

On Fri, Jul 29, 2011 at 10:03 AM, Gary Every <gevery at gmail.com> wrote:
> Try using something besides ?a ; to separate the user and userlogin or
> better yet encapsulate them in quotes???
> ?'Cookie: "user=4reqrerqwr;userlogin=123adsfjlk324"'
>
> On Fri, Jul 29, 2011 at 6:35 AM, <af.at.work at gmail.com> wrote:
>>
>> With cURL, I can successfully log into the website I ultimately want
>> have Nagios test by passing --cookies.
>>
>> Something like this: curl --cookie
>> "user=4reqrerqwr;userlogin=123adsfjlk324"
>> http://mysite.com/home/index.aspx -v | grep Welcome
>>
>> I know it is successful because, 1, I can visually see the rendered
>> code and 2, the grep search for Welcome would only be seen if the
>> authentication was successful.
>>
>> I am trying to mimic this in Nagios with check_http like so:
>>
>> ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
>> follow -s Welcome -k 'Cookie:
user=4reqrerqwr;userlogin=123adsfjlk324'
>> -v
>>
>> One big difference I see is that in cURL the cookie is set on 1 line
>> but the verbose response from check_http shows the cookie on two
>> lines.
>>
>> Cookie: user=4reqrerqwr;userlogin=123adsfjlk324 vs
>>
>> Cookie: user=4reqrerqwr
>> userlogin=123adsfjlk324
>>
>> I am open to suggestions and of course alternatives. I have checked
>> out WebInject but this seems to be SO close I hate to drop it.
>>
>> Lastly, I have tried check_curl, and extended it to support cookies.
>> This DOES work but I am getting (null) on the responses and the grep
>> never causes Nagios to fail regardless of a valid result being
>> returned.
>>
>>
>>
------------------------------------------------------------------------
------
>> Got Input? ? Slashdot Needs You.
>> Take our quick survey online. ?Come on, we don't ask for help often.
>> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
>> http://p.sf.net/sfu/slashdot-survey
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to
/dev/null
>
>
>
> --
> Gary Every
> "Pay it Forward!"
>
>
>
------------------------------------------------------------------------
------
> Got Input? ? Slashdot Needs You.
> Take our quick survey online. ?Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



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

Message: 11
Date: Fri, 29 Jul 2011 15:49:20 +0100
From: Ton Voon <tonvoon at gmail.com>
Subject: Re: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID: <76369EA1-6D5E-41BA-BBCD-A151497A9AFE at gmail.com>
Content-Type: text/plain; charset=us-ascii


On 29 Jul 2011, at 14:35, af.at.work at gmail.com wrote:

> I am trying to mimic this in Nagios with check_http like so:
> 
> ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
> follow -s Welcome -k 'Cookie: user=4reqrerqwr;userlogin=123adsfjlk324'
> -v

You should use multiple -k to add more headers.

Ton




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

Message: 12
Date: Fri, 29 Jul 2011 10:53:00 -0400
From: af.at.work at gmail.com
Subject: Re: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<CABJ=0o7q40N87JyccFfP1HbESJpbkhS=+MKjkvaO+0bArPRrkg at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Per the Nagios doc, I also tried putting the ; in a $USERn$ variable &
passed that in my check but it still drops the second cookie value to
another line.

On Fri, Jul 29, 2011 at 10:14 AM,  <af.at.work at gmail.com> wrote:
> Wrapping in quotes still made pushed the second value to another line.
> Cookie:
"AwarenessNETUserLogin_8800=04dDHmcJjn2vfcvP97i+z9yBGic0y4BIhNfDo8wN1fE=
> username=admin"
>
> Can the ; be escaped? I can't pass anything else.
>
> On Fri, Jul 29, 2011 at 10:03 AM, Gary Every <gevery at gmail.com> wrote:
>> Try using something besides ?a ; to separate the user and userlogin
or
>> better yet encapsulate them in quotes???
>> ?'Cookie: "user=4reqrerqwr;userlogin=123adsfjlk324"'
>>
>> On Fri, Jul 29, 2011 at 6:35 AM, <af.at.work at gmail.com> wrote:
>>>
>>> With cURL, I can successfully log into the website I ultimately want
>>> have Nagios test by passing --cookies.
>>>
>>> Something like this: curl --cookie
>>> "user=4reqrerqwr;userlogin=123adsfjlk324"
>>> http://mysite.com/home/index.aspx -v | grep Welcome
>>>
>>> I know it is successful because, 1, I can visually see the rendered
>>> code and 2, the grep search for Welcome would only be seen if the
>>> authentication was successful.
>>>
>>> I am trying to mimic this in Nagios with check_http like so:
>>>
>>> ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
>>> follow -s Welcome -k 'Cookie:
user=4reqrerqwr;userlogin=123adsfjlk324'
>>> -v
>>>
>>> One big difference I see is that in cURL the cookie is set on 1 line
>>> but the verbose response from check_http shows the cookie on two
>>> lines.
>>>
>>> Cookie: user=4reqrerqwr;userlogin=123adsfjlk324 vs
>>>
>>> Cookie: user=4reqrerqwr
>>> userlogin=123adsfjlk324
>>>
>>> I am open to suggestions and of course alternatives. I have checked
>>> out WebInject but this seems to be SO close I hate to drop it.
>>>
>>> Lastly, I have tried check_curl, and extended it to support cookies.
>>> This DOES work but I am getting (null) on the responses and the grep
>>> never causes Nagios to fail regardless of a valid result being
>>> returned.
>>>
>>>
>>>
------------------------------------------------------------------------
------
>>> Got Input? ? Slashdot Needs You.
>>> Take our quick survey online. ?Come on, we don't ask for help often.
>>> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
>>> http://p.sf.net/sfu/slashdot-survey
>>> _______________________________________________
>>> Nagios-users mailing list
>>> Nagios-users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>> ::: Please include Nagios version, plugin version (-v) and OS when
>>> reporting any issue.
>>> ::: Messages without supporting info will risk being sent to
/dev/null
>>
>>
>>
>> --
>> Gary Every
>> "Pay it Forward!"
>>
>>
>>
------------------------------------------------------------------------
------
>> Got Input? ? Slashdot Needs You.
>> Take our quick survey online. ?Come on, we don't ask for help often.
>> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
>> http://p.sf.net/sfu/slashdot-survey
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
reporting
>> any issue.
>> ::: Messages without supporting info will risk being sent to
/dev/null
>>
>



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

Message: 13
Date: Fri, 29 Jul 2011 11:35:18 -0400
From: af.at.work at gmail.com
Subject: Re: [Nagios-users] check_http + headers
To: Nagios Users List <nagios-users at lists.sourceforge.net>
Message-ID:
	
<CABJ=0o5jmthb3gmYiZHha0nA+CaQdjWx-6N6D-2V2OX78mTn7A at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I tried multiple -k parameters to add more headers with the same
result.  This is the output from Nagios with a 400 Bad Request status.
I assume that is because the cookie is effectively broken.

GET http://mywebsite.com/home.aspx HTTP/1.1
User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)
Connection: close
Host: mywebsite.com
Cookie: user=4reqrerqwr
userlogin=123adsfjlk324


cURL via the CLI is almost identical, but the Cookie: is kept on one
line.

GET http://mywebsite.com/home.aspx HTTP/1.1
Connection: close
Host: mywebsite.com
Cookie: user=4reqrerqwr;userlogin=123adsfjlk324



On Fri, Jul 29, 2011 at 10:49 AM, Ton Voon <tonvoon at gmail.com> wrote:
>
> On 29 Jul 2011, at 14:35, af.at.work at gmail.com wrote:
>
>> I am trying to mimic this in Nagios with check_http like so:
>>
>> ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f
>> follow -s Welcome -k 'Cookie:
user=4reqrerqwr;userlogin=123adsfjlk324'
>> -v
>
> You should use multiple -k to add more headers.
>
> Ton
>
>
>
------------------------------------------------------------------------
------
> Got Input? ? Slashdot Needs You.
> Take our quick survey online. ?Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



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

Message: 14
Date: Sat, 30 Jul 2011 20:19:17 -0500
From: "Frank Bulk" <frnkblk at iname.com>
Subject: Re: [Nagios-users] check http port 80 warning on a site that
	actually	exists.
To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
Message-ID: <005c01cc4f1f$ddfd5790$99f806b0$@iname.com>
Content-Type: text/plain;	charset="us-ascii"

Can you share the URL?

Frank

-----Original Message-----
From: Jonathan Aquilina [mailto:eagles051387 at gmail.com] 
Sent: Monday, July 25, 2011 7:18 AM
To: Nagios Users List
Subject: [Nagios-users] check http port 80 warning on a site that
actually
exists.

I am workign with a site which i have being monitored by nagios, and for

some reason when check_http runs it gets a 404, but if you go to the 
domain the page exists and the site exists.

Would this be a false positive, and if so how can i fix it.

Also another interesting matter is that when i try and run the script to

check http from command line it times out even after increasing the time

out timefrom the default 10 seconds to 20 for instance. Any ideas would 
be greatly appreciated.

------------------------------------------------------------------------
----
--
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization
engage-
ments, worldwide.  Store less, Store more with what you own, Move data
to 
the right place. Try It Now!
http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null




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

Message: 15
Date: Sun, 31 Jul 2011 23:34:29 +0000
From: Jonathan Thorpe <jthorpe at Conexim.com.au>
Subject: [Nagios-users] Determine previous service state in
	notification	script
To: "nagios-users at lists.sourceforge.net"
	<nagios-users at lists.sourceforge.net>
Message-ID:
	
<98518DB27649AF4EAFB2E355F71E605059AA5F1B at ISRV-EXCH-1.conexim.local>
Content-Type: text/plain; charset="us-ascii"

Hi All,

I run a Nagios 2.6 installation and have a custom notification script
for sending out SMSes.

A common complaint I have from people on-call is the fact they receive
warnings for servers that reach warning level for storage.

What I'd like to do is customise my notification script so that it only
sends storage warnings (and their accompanying recoveries) as SMSes
during business hours only.

Effectively, I'd like it to do the following (only for services of type
"STORAGE"):

OK -> WARNING: No Alert
WARNING -> OK: No Alert

WARNING -> CRITICAL: Alert
CRITICAL -> WARNING: Alert

OK -> CRITICAL: Alert
CRITICAL -> OK: Alert

I have no problem implementing this functionality, provided I can work
out what the previous state is. Is there a way through the Nagios API
that would allow me to query what the previous state was before the
current level, or would I be better off tracking this through the
notification script?

Thanks,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 16
Date: Mon, 1 Aug 2011 00:24:12 +0000
From: "Joseph L. Casale" <jcasale at activenetwerx.com>
Subject: Re: [Nagios-users] Determine previous service state in
	notification	script
To: 'Nagios Users List' <nagios-users at lists.sourceforge.net>
Message-ID:
	
<assp.0194474e9f.92097A6A775D5147B1078E3F15430B928E3086 at prato.activenetw
erx.local>
	
Content-Type: text/plain; charset="us-ascii"

>What I'd like to do is customise my notification script so that it only
sends storage
>warnings (and their accompanying recoveries) as SMSes during business
hours only.

How comes you don't simply make a service template for these checks, or
simply
add the notification particulars to the storage based services? My guess
is a one
time tweak of the service def to a new template might allow you to solve
this and
adjust easily in the future.

jlc



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

Message: 17
Date: Mon, 1 Aug 2011 01:32:02 +0000
From: Jonathan Thorpe <jthorpe at Conexim.com.au>
Subject: Re: [Nagios-users] Determine previous service state in
	notification	script
To: "nagios-users at lists.sourceforge.net"
	<nagios-users at lists.sourceforge.net>
Message-ID:
	
<98518DB27649AF4EAFB2E355F71E605059AA6126 at ISRV-EXCH-1.conexim.local>
Content-Type: text/plain; charset="us-ascii"

Hi Joseph,

Thanks for the reply.

This would make sense, however I still want to make sure we get email
notifications when warnings occur.

Unless there's a way we can do this with a services template as well?

Thanks,
Jonathan


>What I'd like to do is customise my notification script so that it only
sends storage
>warnings (and their accompanying recoveries) as SMSes during business
hours only.

How comes you don't simply make a service template for these checks, or
simply
add the notification particulars to the storage based services? My guess
is a one
time tweak of the service def to a new template might allow you to solve
this and
adjust easily in the future.

jlc



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

------------------------------------------------------------------------
------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey


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

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest, Vol 63, Issue 1
*******************************************
======================================
i-choose online store at www.tataindicom.com
Your Comfort.Your Convenience.YourChoice.
====================================== 

DISCLAIMER:
The information contained in this message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.TATATELESERVICES LTD. (including its group companies) shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. TATA TELESERVICES LTD. (or its group companies) does not guarantee that the integrity of this communication has been maintained nor tha
 t this communication is free of viruses, interceptions or interference.

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list