0.0.2 • Published 8 years ago
hubot-ssl-certificate-expiration-check v0.0.2
hubot-ssl-certificate-expiration-check
SSL expiration check
Getting Started
Setup your hubot
Add the script to your hubot.
npm install hubot-ssl-certificate-expiration-check --save
- Add
hubot-ssl-certificate-expiration-check
toexternal-scripts.json
, like:
["hubot-ssl-certificate-expiration-check"]
Scheduler
- agenda example
agenda = new Agenda({db:{address: process.env.MONGO_URL}})
module.exports = (robot) ->
agenda.define 'agenda:check:ssl:certificate:expiration:date', (job, done) ->
robot.emit 'check:ssl:certificate:expiration:date', ['example1.com', 'example2.com'], {room: 'example@conference.example.xmpp.slack.com', expire: 30}
done()
agenda.every('0 10 * * *', 'agenda:check:ssl:certificate:expiration:date')
agenda.start()