This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tests and sets HTTP Header status code based on the response from the | |
* $urlToTest. | |
* | |
* Optionally waits $maxTimeout seconds and uses $defaultStatusCode in | |
* order to overwrite status code from $urlToTest. In addition, optionally | |
* $printStatusCode to response. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Sabre\DAV\Client; | |
include 'vendor/autoload.php'; | |
/** | |
* NextCloud WebDAV client. Abstraction layer that uses sabre/webdav for the | |
* actual WebDAV communication. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Simple script to determine the disk usage in percent for a given source path. | |
# Optionally uses disk usage to run additional web service call for further | |
# processing. | |
# Specify the minimum usage percentage to trigger the alert. | |
# | |
# @version 1.0.0 | |
# @author Matthias Kerstner <matthias@kerstner.at> | |
############################################################################### |