Nagios ssl

adding service ssl to nagios

/usr/local/nagios/etc

 

file checkcommands.cfg

# ‘check_ssl’ command definition

define command{

        command_name    check_ssl

        command_line    /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p 443

        }

then add the entries in services.cfg escalations.cfg 

services.cfg

 

# Service definition

define service{

        use                             generic-service         ; Name of service template to use

 

        host_name                       sun.inservers1.com

        service_description             SSL

        is_volatile                     0

        check_period                    24×7

        max_check_attempts              3

        normal_check_interval           3

        retry_check_interval            1

        contact_groups                  neutralweb-admins

        notification_interval           120

        notification_period             24×7

        notification_options            w,u,c,r

        check_command                   check_ssl

        }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s