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)
Conn
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, wrote:
> Wrapping in quotes still made pushed the second value to another line.
> Cookie:
> "AwarenessNETU
On 29 Jul 2011, at 14:35, af.at.w...@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
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 wrote:
> Try using something besi
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, wrote:
> With cURL, I can successfully log into the website I ultimately want
> have Nagios test
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 r
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