Re: How to Monitor URL certificate Expiration
Posted: Wed May 20, 2020 10:32 am
It appears that you have not installed it yet.
Please start by downloading the modified plugin attached to this reply. This way you won't have to make the edits I specified earlier.
Then navigate to the Admin section of XI using the bar on top > click Manage Plugins under System Extensions on the left pane > then click Browse... to upload the very same script you just downloaded.
You will also need to download the .crl file to the XI machine. You could do so with wget. Note the location so that you can pass it as an argument in the command later.
You should then see the plugin available in /usr/local/nagios/libexec. You could also have downloaded the script to that directory using wget, or moved it there using mv. Please run the script from the command line on your Nagios XI server to make sure it works before configuring a scheduled check.
Once the plugin is installed and verified to be working, you can use it in a command. Navigate to the Configure section of XI > click >_Commands under Commands on the left pane > then click + Add New and enter a name, line, and type for the command. The command line should be whatever you got working in the terminal earlier, and the other two values can be whatever makes sense to you.
DOC
Please start by downloading the modified plugin attached to this reply. This way you won't have to make the edits I specified earlier.
Then navigate to the Admin section of XI using the bar on top > click Manage Plugins under System Extensions on the left pane > then click Browse... to upload the very same script you just downloaded.
You will also need to download the .crl file to the XI machine. You could do so with wget. Note the location so that you can pass it as an argument in the command later.
You should then see the plugin available in /usr/local/nagios/libexec. You could also have downloaded the script to that directory using wget, or moved it there using mv. Please run the script from the command line on your Nagios XI server to make sure it works before configuring a scheduled check.
Code: Select all
LANG=C LC_ALL=C /usr/local/nagios/libexec/check_crl -f <location of certificate revocation list>.crlDOC