Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There were three other plugins in the package.  These are utility plugins that can invert a response or check if the response falls within a range.  To check how the check_http plugin works run it with the --help flag.  An example of this can be found in Appendix A of this article.  From the The help output we can determine that in order to check an SSL certificate expiration date we should run it states check_http should be run with the -C flag .  Notice this statement in the help output:in order to check SSL certificate status.

-C <warn_age>[,<crit_age>]

So with With a command such as:

[root@opmantek ~]# /usr/lib64/nagios/plugins/check_http -I demo.opmantek.com -C 30, 15

...

Code Block
languagebash
[root@opmantek ~]# /usr/lib64/nagios/plugins/check_http -I demo.opmantek.com -C 30, 15
OK - Certificate '*.opmantek.com' will expire on 2017-11-16 15:16 +0900/KST.

Observe that the -C flag will will check the certificates expiration date and provide a warning if it's less that 30 days away.

...

Via the top menu bar navigate to System -> System Configuration > NMIS Nodes.  A new 'NMIS Nodes' window will render.  For this example we will assign the checkDemoCert to the node localhost.  Find the node localhost and click 'edit' on the right hand side.  A new window will render.  Find the Advanced Options Section.  Creatively using the shift and mouse left clicker, select the service checkdemocert, careful not to de-select any other provisioned servcies, indeed a feat in mouse prowess and dexterity.

At the bottom of the window click the 'Edit and Update Node' button.  After some processing time a new window will render with debug detail of the update process.  Feel free to close this window.

...