Install
Linux:
sudo pip3 install sp-health --upgrade
Also is possible to use:
sudo python3 -m pip install sp-health --upgrade
On windows with python3.5:
pip install sp-health --upgrade
For proxies add:
--proxy='http://user:passw@server:port'
Usage
Use the command line:
sphealth --help
usage: sphealth [-h] [-u [USER]] [-p [PASSWORD]] [-s [SITE_URL]]
optional arguments:
-h, --help show this help message and exit
-u [USER], --user [USER]
Username for Ntlm auth like domain\user
-p [PASSWORD], --password [PASSWORD]
Password for Ntlm Auth like
-s [SITE_URL], --site [SITE_URL]
site url for sharepoint HealthMonitor, ex: http://site:9876
Example usage
Example use:
> sphealth -u domain\user -p pass -s http://spurl:9876 Information: http://spurl:9876 |alerts=9;1;2;0;
Example Command and service
Example host:
# https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/macros.html#Custom%20Variable%20Macros
# we use CUSTOM MACRO for these Sharepoint SERVERS
# ADD _SPURLMON for each host
# Where _SPURLMON is the name of the root URL for Sharepoint Central Administration (without /HealthReports)
# Also add _SPUSER and _SPPASSWORD
# https://github.com/pablodav/sharepoint_health_mon_plugin
define host
host_name HOSTXX1
alias Sharepoint Host XX1
parents SOMEDEVICE
_SPURLMON http://spurlfqdn:9876
_SPUSER domain\username
_SPPASSWORD somepassword
address IP.ADD.RR.ESS
use generic-host
}
Example group:
define hostgroup {
hostgroup_name sharepoint_servers
alias Sharepoint servers
members HOSTXX1,HOSTXX2
}
Example command:
define command{
command_name check_sphealth
command_line /usr/local/bin/sphealth -u '$ARG1$' -p '$ARG2$' -s '$ARG3$'
}
Example service:
define service {
hostgroup_name sharepoint_servers
service_description Sharepoint_HealthMonitor
check_command check_sphealth!$_HOSTSPUSER$!$_HOSTSPPASSWORD$!$_HOSTSPURLMON$
notes Check the alerts from $_HOSTSPURLMON$ for sharepoint HealthMonitor
use generic-service
}
TODO
Use hash passwords
Add Unit tests?
Notes
This command is installed and added in project: https://github.com/CoffeeITWorks/ansible_nagios4_server_plugins
Metadata
Release files for sp-health 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sp_health-0.2.8.tar.gz | 5.5 kB | Without provenance | Details for sp_health-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sp_health-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for sp_health-0.2.8-py3-none-any.whl |
Total release size: 13.3 kB
Release files / sp_health-0.2.8.tar.gz
| Download URL | sp_health-0.2.8.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9cc6faa944fc163fc06880101f3982029c689071ccede50b23c8d1c0127777d
|
|
BLAKE2b-256 checksum How to use checksums |
e130355c6d9eab46141102be4176ea3776b380cc44618a3d91917e83cb1c54a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.5.2
|
Release files / sp_health-0.2.8-py3-none-any.whl
| Download URL | sp_health-0.2.8-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d878006cf757e7bc185bdabde1bda4f0788c9de6e9ace7f41e5e276400fa73a9
|
|
BLAKE2b-256 checksum How to use checksums |
2d14d68006911c1afde15d022f582c00b304aae4c4723eef68931641395a27da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.5.2
|
Security for sp-health 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.