https://github.com/sensu-plugins/sensu-plugins-ups
https://github.com/sensu-plugins/sensu-plugins-ups
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sensu-plugins/sensu-plugins-ups
- Owner: sensu-plugins
- License: mit
- Created: 2015-07-23T23:08:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:17:42.000Z (about 4 years ago)
- Last Synced: 2024-04-24T17:09:01.085Z (about 1 year ago)
- Language: Ruby
- Homepage: http://sensu-plugins.io
- Size: 36.1 KB
- Stars: 2
- Watchers: 8
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Sensu-Plugins-ups
[](https://travis-ci.org/sensu-plugins/sensu-plugins-ups)
[](http://badge.fury.io/rb/sensu-plugins-ups)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ups)
[](https://gemnasium.com/sensu-plugins/sensu-plugins-ups)## Functionality
**check-nut**
Checks each NUT (http://www.networkupstools.org/) managed UPS unit for the "OL" status
**metrics-nut**
Polls metrics from NUT (http://www.networkupstools.org/) monitored UPS units
**apcupsd checks**
Uses apcupsd (http://www.apcupsd.org/) to check battery time and levels
## Files
* bin/check-nut.rb
* bin/metrics-nut.rb
* bin/check-apcupsd-bcharge.rb
* bin/check-apcupsd-timeleft.rb## Usage
**check-apcupsd-timeleft**
```
{
"checks": {
"check-apcupsd-timeleft": {
"command": "check-apcupsd-timeleft.rb -w 5 -c 1"
}
}
}
```**check-apcupsd-bcharge**
```
{
"checks": {
"check-apcupsd-bcharge": {
"command": "check-apcupsd-bcharge.rb -w 80 -c 50"
}
}
}
```## Installation
To use the NUT checks, NUT must be installed and configured. See [this guide](http://bernaerts.dyndns.org/linux/75-debian/335-debian-wheezy-install-monitor-eaton-ups) to setting up NUT.
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
## Notes