CHeck_http -h -ssl gives wrong date when in config file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mpenland
Posts: 8
Joined: Tue Mar 15, 2011 10:59 am

CHeck_http -h -ssl gives wrong date when in config file

Post by mpenland »

I can run the following command from the libexec directory and get the right data.
./check_http -v -C 60 -ssl exch.ellijay.com
OK - Certificate will expire on 02/06/2013 13:36.

When I have it in a config file this is what I get -

exch.ellijay.com OK 04-13-2011 14:03:00 0d 0h 35m 58s 1/3 OK - Certificate will expire on 03/23/2012 13:30.

Here is my config file

###############################################################################
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
###############################################################################

# Define the switch that we'll be monitoring

define host{
use generic-switch ; Inherit default values from a template
host_name SSL-Cert ; The name we're giving to this switch
alias SSL Certificates ; A longer name associated with the switch
address 127.0.0.1 ; IP address of the switch
hostgroups SSL-Cert ; Host groups this switch is associated with
}




###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################

# Create a new hostgroup for switches



###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################


# Check SSL Certificates
define service{
use generic-service ; Inherit values from a template
host_name SSL-Cert
service_description ctx.ellijay.com
check_command check_http! -v -C 60 -ssl ctx.ellijay.com
}

define service{
use generic-service ; Inherit values from a template
host_name SSL-Cert
service_description exch.ellijay.com
check_command check_http! -v -C 60 -ssl exch.ellijay.com
}
Does anyone have any ideas?
Locked