Re: [Nagios-users] check_http script is not working

2012-05-09 Thread Claudio Kuenzler

 Hello ,

 ** **

 I’m Sankar testing nagios scripts. I have tried to ping URL check from
 check_http script from nagios.

 ** **

 http://nagiosplugins.org/man/check_http (URL) = Reference

 ** **

 Root# check_http -w 5 -c 10 --ssl -H www.verisign.com 

  Name or service not known

 HTTP CRITICAL - Unable to open TCP socket

 ** **

 **

You're using a wrong order... See here the difference:

# ./check_http -w 5 -c 10 --ssl -H www.verisisgn.com
Name or service not known
HTTP CRITICAL - Unable to open TCP socket

# ./check_http -H www.verisign.com --ssl -w 5 -c 10
HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.822 second response time
|time=0.821882s;5.00;10.00;0.00 size=42718B;;;0

I know the way you tried it is shown in the --help but it obviously doesn't
work.



 **

 Please help us in checking whether URL is up or down. How efficiently this
 script can be used ?

 Is there any way to find out URL availability ? with port ? or ping ? can
 we pass proxy ?

 ** **

 Thanks in advance.

 ** **

 Best regards, Sankar 


 --
 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/
 ___
 Nagios-users mailing list
 Nagios-users@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

--
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/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] check_http script is not working

2012-05-09 Thread Claudio Kuenzler
Jeez. I should drink a coffee before responding... ouch.

The syntax is correct, as you see in my post I had a typo in the verisign
domain name.

# ./check_http -w 5 -c 10 --ssl -H www.verisign.com
HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.830 second response time
|time=0.830120s;5.00;10.00;0.00 size=42718B;;;0

So it works. Sorry for false information.

Do as Bram suggested, try to open the website with lynx or curl.

Hello ,

 ** **

 I’m Sankar testing nagios scripts. I have tried to ping URL check from
 check_http script from nagios.

 ** **

 http://nagiosplugins.org/man/check_http (URL) = Reference

 ** **

 Root# check_http -w 5 -c 10 --ssl -H www.verisign.com 

  Name or service not known

 HTTP CRITICAL - Unable to open TCP socket

 ** **

 **

 You're using a wrong order... See here the difference:

 # ./check_http -w 5 -c 10 --ssl -H www.verisisgn.com

 Name or service not known
 HTTP CRITICAL - Unable to open TCP socket

 # ./check_http -H www.verisign.com --ssl -w 5 -c 10
 HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.822 second response time
 |time=0.821882s;5.00;10.00;0.00 size=42718B;;;0

 I know the way you tried it is shown in the --help but it obviously
 doesn't work.



 **

 Please help us in checking whether URL is up or down. How efficiently
 this script can be used ?

 Is there any way to find out URL availability ? with port ? or ping ? can
 we pass proxy ?

 ** **

 Thanks in advance.

 ** **

 Best regards, Sankar 


 --
 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/
 ___
 Nagios-users mailing list
 Nagios-users@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



--
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/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] check_http script is not working

2012-05-08 Thread Bram Gillemon
Hi,

Can you visit the url using lynx / curl / ..., your syntax is correct. So it 
looks like another problem.

Kr,
Bram

On 08 May 2012, at 09:01, Sankar, Bheemarasetty wrote:

 Hello ,
  
 I’m Sankar testing nagios scripts. I have tried to ping URL check from 
 check_http script from nagios.
  
 http://nagiosplugins.org/man/check_http (URL) = Reference
  
 Root# check_http -w 5 -c 10 --ssl -H www.verisign.com
  Name or service not known
 HTTP CRITICAL - Unable to open TCP socket
  
  
 Please help us in checking whether URL is up or down. How efficiently this 
 script can be used ?
 Is there any way to find out URL availability ? with port ? or ping ? can we 
 pass proxy ?
  
 Thanks in advance.
  
 Best regards, Sankar
 --
 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/___
 Nagios-users mailing list
 Nagios-users@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

--
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/___
Nagios-users mailing list
Nagios-users@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