0.0.2 • Published 8 years ago

hubot-ssl-certificate-expiration-check v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hubot-ssl-certificate-expiration-check

wercker status

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 to external-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()
0.0.2

8 years ago

0.0.1

8 years ago