Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dpoper/check_nextcloud

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check_nextcloud

NPM version Dependency Status License

Nagios/Icinga Nextcloud Security Check

Uses the API on https://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/. Mind that this API has a rate limit, so don't run this check too frequently.

Nagios Screenshot

Installation

Prerequisites: Node.js

npm install -g check_nextcloud

Usage

Example: check_nextcloud -u https://example.com/nextcloud

check_nextcloud <options>

  -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

License

MIT (c) Sebastian Raff

About

Nagios/Icinga Nextcloud Security Check ☁️ 🔐 ☑️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.