[Nagios-users] check_http issue

2012-03-12 Thread Sunny Jaisinghani
Hello,

I am using the check_http plugin for checking the SSL cert expiry. Even if the 
cert is not due to expire very soon, the plugin reports as CRITICAL.
I have few more certs for which the plugin reports correct status.

What could be going wrong over here. ??

BAD

# /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8001 -w 30 -c 30 
-C 30
CRITICAL - Certificate expired on 02/17/2062 22:44.

# openssl x509 -in abc.example.com.crt -noout –enddate
notAfter=Feb 17 22:57:24 2062 GMT

GOOD

# /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8000 -w 30 -c 30 
-C 30
OK - Certificate will expire on 02/09/2013 23:59.

# openssl x509 -in xyz.example.com.crt -noout –enddate
notAfter=Feb 10 23:59:59 2013 GMT


Thanks
Sunny






--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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 issue

2012-03-12 Thread Claudio Kuenzler
I know this doesn't answer your questions, but did you give the
check_ssl_cert plugin a try?

https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert

I'm using this plugin to check ssl certificates, not only on http but also
tls

On Mon, Mar 12, 2012 at 10:04 AM, Sunny Jaisinghani 
sunny_jaisingh...@symantec.com wrote:

 Hello,

 I am using the check_http plugin for checking the SSL cert expiry. Even if
 the cert is not due to expire very soon, the plugin reports as CRITICAL.
 I have few more certs for which the plugin reports correct status.

 What could be going wrong over here. ??

 BAD

 # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8001 -w 30
 -c 30 -C 30
 CRITICAL - Certificate expired on 02/17/2062 22:44.

 # openssl x509 -in abc.example.com.crt -noout –enddate
 notAfter=Feb 17 22:57:24 2062 GMT

 GOOD

 # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8000 -w 30
 -c 30 -C 30
 OK - Certificate will expire on 02/09/2013 23:59.

 # openssl x509 -in xyz.example.com.crt -noout –enddate
 notAfter=Feb 10 23:59:59 2013 GMT


 Thanks
 Sunny








 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 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

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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 issue

2012-03-12 Thread Jeffrey Watts
I wonder if it's an epoch thing...   Are all of the certs that are failing
ones in which the expiry year is 2038 or greater?

Jeffrey.

On Mon, Mar 12, 2012 at 4:04 AM, Sunny Jaisinghani 
sunny_jaisingh...@symantec.com wrote:

 Hello,

 I am using the check_http plugin for checking the SSL cert expiry. Even if
 the cert is not due to expire very soon, the plugin reports as CRITICAL.
 I have few more certs for which the plugin reports correct status.

 What could be going wrong over here. ??

 BAD

 # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8001 -w 30
 -c 30 -C 30
 CRITICAL - Certificate expired on 02/17/2062 22:44.

 # openssl x509 -in abc.example.com.crt -noout –enddate
 notAfter=Feb 17 22:57:24 2062 GMT

 GOOD

 # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX  -p 8000 -w 30
 -c 30 -C 30
 OK - Certificate will expire on 02/09/2013 23:59.

 # openssl x509 -in xyz.example.com.crt -noout –enddate
 notAfter=Feb 10 23:59:59 2013 GMT


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
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

[Nagios-users] check_http issue

2010-04-08 Thread Shashank Kamble
Hello,



I am newbie to Nagios. I successfully installed Nagios and its monitoring
most of our windows and Linux servers. Currently, I am having issues with
the one of the website we support for our client. I defined a host and also
defined an http service to monitor the website:



Here is host and service definition to monitor a website.



define host{

 use  windows-server

 host_name   illinoistollway

 aliasillinoistollway

 addresswww.illinoistollway.com

 contact_groups  admins

 }



define service {

use   local-service

host_name   IllionisHighway

service_description HTTP

check_command  check_http

}



But I am getting an error that host is down and service is not monitored as
well.



Could you please guide me how to resolve this issue?



Thanks,

Shashank
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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 issue

2010-04-08 Thread Assaf Flatto
Shashank Kamble wrote:

 Hello,

  

 I am newbie to Nagios. I successfully installed Nagios and its 
 monitoring most of our windows and Linux servers. Currently, I am 
 having issues with the one of the website we support for our client. I 
 defined a host and also defined an http service to monitor the website:

  

 Here is host and service definition to monitor a website.

  

 define host{

  use  windows-server

  host_name   illinoistollway

  aliasillinoistollway

  addresswww.illinoistollway.com 
 http://www.illinoistollway.com/

  contact_groups  admins

  }

  

 define service {

 use   local-service

 host_name   IllionisHighway

 service_description HTTP

 check_command  check_http

 }

  

 But I am getting an error that host is down and service is not 
 monitored as well.

  

 Could you please guide me how to resolve this issue?

  

 Thanks,

 Shashank

 

Before you added the host , did you make sure you can ping it ?
did you also try to manually as the user nagios can execute the 
check_http script and get a proper response ?

By default check_host_alive and check_http expect an IP address in the  
address  Feild , not a FQDN .
and that might be what is throwing your nagios of game.

Change the address  to the IP address and see what response you get .

Assaf


-- 
Never,Ever Cut A Deal With a Dragon 


I am doing a Charity Bike ride On the 27 of June for the
Capital to Coast Charity. Please help by Donating
http://www.justgiving.com/Lovefilm-capital-to-coast



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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 issue

2010-04-08 Thread Shashank Kamble
Bingo, thanx Assaf. It worked.

Cheers,
Shashank

On Thu, Apr 8, 2010 at 10:14 AM, Assaf Flatto nag...@flatto.net wrote:

 Shashank Kamble wrote:
 
  Hello,
 
 
 
  I am newbie to Nagios. I successfully installed Nagios and its
  monitoring most of our windows and Linux servers. Currently, I am
  having issues with the one of the website we support for our client. I
  defined a host and also defined an http service to monitor the website:
 
 
 
  Here is host and service definition to monitor a website.
 
 
 
  define host{
 
   use  windows-server
 
   host_name   illinoistollway
 
   aliasillinoistollway
 
   addresswww.illinoistollway.com
  http://www.illinoistollway.com/
 
   contact_groups  admins
 
   }
 
 
 
  define service {
 
  use   local-service
 
  host_name   IllionisHighway
 
  service_description HTTP
 
  check_command  check_http
 
  }
 
 
 
  But I am getting an error that host is down and service is not
  monitored as well.
 
 
 
  Could you please guide me how to resolve this issue?
 
 
 
  Thanks,
 
  Shashank
 
  

 Before you added the host , did you make sure you can ping it ?
 did you also try to manually as the user nagios can execute the
 check_http script and get a proper response ?

 By default check_host_alive and check_http expect an IP address in the 
 address  Feild , not a FQDN .
 and that might be what is throwing your nagios of game.

 Change the address  to the IP address and see what response you get .

 Assaf


 --
 Never,Ever Cut A Deal With a Dragon


 I am doing a Charity Bike ride On the 27 of June for the
 Capital to Coast Charity. Please help by Donating
 http://www.justgiving.com/Lovefilm-capital-to-coast




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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