Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
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

Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
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

Re: [Nagios-users] check_http + headers

2011-07-29 Thread Ton Voon
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

Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
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

Re: [Nagios-users] check_http + headers

2011-07-29 Thread Gary Every
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

[Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
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

[Nagios-users] about:nagios.cmd get multi external command

2011-07-29 Thread k Dylan'
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