Submitted by: Christopher Hubbard
This ZenPack check on the expiration date of domain and ssl certificates. The ZenPack will create /Devices/Ping/Domain and /Devices/Ping/Domain/SSL. Since zProperties are inherited, this isolates domain checks that dont necessairly have SSL from SSL enabled domains.
Ping checks have been disabled for both Domain and SSL. Second level domains (ie. theregister.co.uk) are supported.
Both show a boring countdown graph to doomsday in days..
Currently the ZenPack is configured to behave in this way (thresholds can be adjusted as needed):
1) 30 days before expiration, Yellow alarms (warnings).
2) 2 days before expiration it will cross the RRD threshold and you will ALSO start getting criticals for that threshold, as well as the Yellow warning alarms.
3) After expiration you will get both Nagios and Thresholds as critical events.
Missing manditory binary files also generate a Nagios class error (warn Retval 1) Threshold crossing is retval 1, Expired domains are retval 2.
GOOD threshold NOT crossed:
./check_domain.sh -x 30 -d theregister.co.uk -n
Status OK | theregister.co.uk Valid 14-Mar-2010 Days=135 NetNames Limited
BAD threshold crossed:
/check_domain.sh -x 300 -d theregister.co.uk -n
Status Warn Domain expire days=135 | Domain theregister.co.uk will expire in 300 -days or less. Days=135
- Zenoss Version: 2.2 (py2.4 file), 3.0 (py2.6 file)
- ZenPack Dependencies: none
- External Dependencies: The jwhois command is used by default. The scripts can be modified to use whois
- Installation: zopectl restart after installing
- 1.0.3 initial release
- 1.0.4 fixed path to scripts
- 1.0.5 relocated scripts to libexec dir
- 1.0.6 Zenoss 3.0 compatibility
Trac tickets: http://zenpacks.zenoss.org/trac-zenpacks/report/1