2019-05-16 09:09:39 -07:00
|
|
|
# XMPP Check
|
|
|
|
|
|
|
|
XMPP check is a tool to check TLS certificate on a remote server.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2019-06-18 08:18:17 -07:00
|
|
|
To install `xmpp-check` in your Go path:
|
|
|
|
|
2019-05-16 09:09:39 -07:00
|
|
|
```
|
2019-06-18 08:18:17 -07:00
|
|
|
$ go get -u gosrc.io/xmpp/...
|
2019-05-16 09:09:39 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
If you server is on standard port and XMPP domains matches the hostname you can simply use:
|
|
|
|
|
|
|
|
```
|
2019-05-16 09:10:06 -07:00
|
|
|
$ xmpp-check myhost.net
|
2019-05-16 09:09:39 -07:00
|
|
|
2019/05/16 16:04:36 All checks passed
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also pass the port and the XMPP domain if different from the server hostname:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ xmpp-check myhost.net:5222 xmppdomain.net
|
2019-05-16 09:10:06 -07:00
|
|
|
2019/05/16 16:05:21 All checks passed
|
2019-05-16 09:09:39 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
Error code will be non-zero in case of error. You can thus use it directly with your usual
|
|
|
|
monitoring scripts.
|