Skip to content

Instantly share code, notes, and snippets.

@ppmathis
Created December 10, 2016 17:19
Show Gist options
  • Select an option

  • Save ppmathis/b03eaafd70983b50039a211ce215b279 to your computer and use it in GitHub Desktop.

Select an option

Save ppmathis/b03eaafd70983b50039a211ce215b279 to your computer and use it in GitHub Desktop.
(venv)[pmathis@aegon monitoring-plugins]$ ./check_xmpp -s chat.core.mx -H core.mx -w 1 -c 2 --warning-days 14 --critical-days 7
XMPP OK - Request took 0.461139s, Certificate valid for 89 days | certificate_days_left=89 time=0.461139s;1;2;0
(venv)[pmathis@aegon monitoring-plugins]$ ./check_xmpp -s chat.core.mx -H core.mx -w 1 -c 2 --warning-days 14 --critical-days 7 -vvv
XMPP OK - Request took 0.438377s, Certificate valid for 89 days
XMPP server announced capability: ver => bKWQ/I2e7tJ4xSNQWnLztA/YZco=
XMPP server announced capability: hash => sha-1
XMPP server announced capability: node => http://www.process-one.net/en/ejabberd/
XMPP server offers StartTLS.
XMPP server requires the other side to use StartTLS.
Ignored XMPP stream content in (u'http://jabber.org/features/compress', u'method'): zlib
Certificate store statistics: {'x509': 157, 'x509_ca': 157, 'crl': 0}
TLS socket setup was successful.
Received certificate info from XMPP server: {'subjectAltName': (('DNS', 'anon.core.mx'), ('DNS', 'chat.core.mx'), ('DNS', 'core.mx')), 'notBefore': u'Dec 10 12:19:00 2016 GMT', 'caIssuers': (u'http://cert.int-x3.letsencrypt.org/',), 'OCSP': (u'http://ocsp.int-x3.letsencrypt.org/',), 'serialNumber': u'034384AB74EA10A7ED4B40CA1551A00F6025', 'notAfter': 'Mar 10 12:19:00 2017 GMT', 'version': 3L, 'subject': ((('commonName', u'chat.core.mx'),),), 'issuer': ((('countryName', u'US'),), (('organizationName', u"Let's Encrypt"),), (('commonName', u"Let's Encrypt Authority X3"),))}
Certificate is valid from Dec 10 12:19:00 2016 GMT until Mar 10 12:19:00 2017 GMT
Certificate lifetime: 89 days left
XMPP server announced capability: ver => bKWQ/I2e7tJ4xSNQWnLztA/YZco=
XMPP server announced capability: hash => sha-1
XMPP server announced capability: node => http://www.process-one.net/en/ejabberd/
Ignored XMPP stream content in (u'http://jabber.org/features/compress', u'method'): zlib
| certificate_days_left=89 time=0.438377s;1;2;0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment