Commit Graph

5 Commits

Author SHA1 Message Date
86436ef1f0 Merge pull request 'Add unixtime option' (#2) from faust/check_expire:add-output into master
Reviewed-on: bortzmeyer/check_expire#2
2021-07-07 11:00:41 +02:00
342f89844b
Add unixtime option
Add an option to return the expiration date in unixtime (time since
epoch).

  ./check_expire -H domain -u

It's particularly useful for alerting or monitoring systems that do
their own calculation based on the metric they receive (and not based on
exit codes).

For instance you can use the following in zabbix 5.4:
- item: check_expire["-H","{HOST.CONN}","-u"]
- trigger: last(/check_expire["-H","{HOST.CONN}","-u"])-now()<2592000

Where 2592000 is 30 days in seconds.
2021-07-07 10:13:50 +02:00
Stephane Bortzmeyer
5c8a6af546 Icinga template 2021-07-05 21:04:34 +02:00
Stephane Bortzmeyer
ab3feeec4a First version 2021-07-05 20:49:49 +02:00
887e30d86a Initial commit 2021-07-05 19:56:43 +02:00