Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hobbyquaker/check_nextcloud
Nagios/Icinga Nextcloud Security Check :cloud: :closed_lock_with_key: :ballot_box_with_check:
https://github.com/hobbyquaker/check_nextcloud
icinga monitoring nagios nextcloud security
Last synced: 3 months ago
JSON representation
Nagios/Icinga Nextcloud Security Check :cloud: :closed_lock_with_key: :ballot_box_with_check:
- Host: GitHub
- URL: https://github.com/hobbyquaker/check_nextcloud
- Owner: hobbyquaker
- License: mit
- Created: 2017-03-20T17:07:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T13:46:55.000Z (over 6 years ago)
- Last Synced: 2024-10-01T10:05:34.414Z (3 months ago)
- Topics: icinga, monitoring, nagios, nextcloud, security
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check_nextcloud
[![NPM version](https://badge.fury.io/js/check_nextcloud.svg)](http://badge.fury.io/js/check_nextcloud)
[![Dependency Status](https://img.shields.io/gemnasium/hobbyquaker/check_nextcloud.svg?maxAge=2592000)](https://gemnasium.com/github.com/hobbyquaker/check_nextcloud)
[![License][mit-badge]][mit-url]> Nagios/Icinga Nextcloud Security Check
Uses the API on [https://scan.nextcloud.com](scan.nextcloud.com) to check your Nextclouds Security with Nagios/Icinga.
For further information see [https://nextcloud.com/blog/nextcloud-releases-security-scanner-to-help-protect-private-clouds/](https://nextcloud.com/blog/nextcloud-releases-security-scanner-to-help-protect-private-clouds/).
Mind that this API has a rate limit, so don't run this check too frequently.![Nagios Screenshot](check_nextcloud.png)
## Installation
Prerequisites: [Node.js](https://nodejs.org)
`npm install -g check_nextcloud`
## Usage
Example: `check_nextcloud -u https://example.com/nextcloud`
```
check_nextcloud-u, --nextcloud-url Nextcloud URL [required]
-h, --hardening-warning Number of missing Hardenings that
generate Warning [default: 2]
-c, --hardening-critical Number of missing Hardenings that
generate Critical [default: 4]
-l, --disable-latestversion-warning Don't generate Warning if not latest
Version [boolean]
-r, --requeue-minutes Requeue Scan if older than given minutes
[default: 720]
-s, --scan-age-warn Warn if Scan is older than given days
[default: 3]
-t, --scan-age-critical Critical if Scan is older than given days
[default: 5]
--help Show help [boolean]
--version Show version number [boolean]
```Nagios Command Definition Example:
```
define command {
command_name check_nextcloud
command_line /usr/local/bin/check_nextcloud -u $ARG1$
}
```Nagios Service Definition Example:
```
define service {
use generic-service
host_name example
service_description Nextcloud Security
check_command check_nextcloud!https://example.com/nextcloud
}
```## Credits
Inspired by [https://github.com/janvonde/check_nextcloud](https://github.com/janvonde/check_nextcloud)
## License
MIT (c) Sebastian Raff
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: LICENSE