<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks</id>
	<title>Nagios Plugin for SSL Certificate expiry Checks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks&amp;action=history"/>
	<updated>2026-07-25T09:12:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks&amp;diff=1474&amp;oldid=prev</id>
		<title>Biswajit at 11:23, 25 October 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks&amp;diff=1474&amp;oldid=prev"/>
		<updated>2013-10-25T11:23:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:23, 25 October 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[category:Nagios]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Nagios Plugin for SSL Certificate expiry Checks==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Nagios Plugin for SSL Certificate expiry Checks==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nagios should be enabled to check SSL certificate expiry dates remotely and alert on the time remaining if it is less than 30 days or so &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Download==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Download==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Biswajit</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks&amp;diff=1473&amp;oldid=prev</id>
		<title>Biswajit: Created page with &quot; ==Nagios Plugin for SSL Certificate expiry Checks==  ==Download==  http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert/details  ==Installation ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Nagios_Plugin_for_SSL_Certificate_expiry_Checks&amp;diff=1473&amp;oldid=prev"/>
		<updated>2013-10-25T11:19:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; ==Nagios Plugin for SSL Certificate expiry Checks==  ==Download==  http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert/details  ==Installation ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==Nagios Plugin for SSL Certificate expiry Checks==&lt;br /&gt;
&lt;br /&gt;
==Download==&lt;br /&gt;
&lt;br /&gt;
http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert/details&lt;br /&gt;
&lt;br /&gt;
==Installation ==&lt;br /&gt;
&lt;br /&gt;
Copy the check_ssl_cert ( nagios Plugin ) in /usr/local/nagios/libexec/ directory &lt;br /&gt;
&lt;br /&gt;
make it executable and owned by nagios user &lt;br /&gt;
&lt;br /&gt;
 chmod 755 /usr/local/nagios/libexec/check_ssl_cert&lt;br /&gt;
 chown nagios.nagios /usr/local/nagios/libexec/check_ssl_cert&lt;br /&gt;
&lt;br /&gt;
Then check an site / zimbra admin which has ssl certificate with command line , example for Zimbra internal certificate is shown below &lt;br /&gt;
&lt;br /&gt;
 /usr/local/nagios/libexec/check_ssl_cert -H webmail.phdcci.in -A -p 7071&lt;br /&gt;
&lt;br /&gt;
you will get a response like &lt;br /&gt;
&lt;br /&gt;
 SSL_CERT OK - X.509 certificate for &amp;#039;webmail.phdcci.in&amp;#039; from &amp;#039;webmail.phdcci.in&amp;#039; valid until &amp;#039;&amp;#039;&amp;#039;May  3 15:58:02 2014 GMT&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This gives the expiry date too. ( -A option is for not to check valid authority , -p is for specifying the port address ) &lt;br /&gt;
&lt;br /&gt;
Now , Please create a command for nagios in /usr/local/nagios/etc/objects/command.cfg as shown below &lt;br /&gt;
&lt;br /&gt;
 define command {&lt;br /&gt;
       command_name                             check_ssl_certificate_expiry&lt;br /&gt;
       command_line                             $USER1$/check_ssl_cert -H $HOSTADDRESS$ -A -p $ARG1$&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Reload the nagios with &lt;br /&gt;
&lt;br /&gt;
 service nagios reload&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
Now you are ready to configure services to check the ssl expiry . So add the following line in the host/service configuration files of the concerning hosts&lt;br /&gt;
&lt;br /&gt;
 define service {&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                webmail.phdcci.in&lt;br /&gt;
               service_description     SSL Certificate Expiry&lt;br /&gt;
               notification_options    w,u,c,r&lt;br /&gt;
               check_command            check_ssl_certificate_expiry!7071&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
Reload the Nagios service .&lt;br /&gt;
&lt;br /&gt;
Check the environment on the web GUI of Nagios&lt;/div&gt;</summary>
		<author><name>Biswajit</name></author>
	</entry>
</feed>