Sharepoint health monitor nagios plugin
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sp_health-0.2.8.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file sp_health-0.2.8.tar.gz
.
File metadata
- Download URL: sp_health-0.2.8.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cc6faa944fc163fc06880101f3982029c689071ccede50b23c8d1c0127777d |
|
MD5 | fb46c8010400d852d102ba67dbb9aa20 |
|
BLAKE2b-256 | e130355c6d9eab46141102be4176ea3776b380cc44618a3d91917e83cb1c54a1 |
File details
Details for the file sp_health-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: sp_health-0.2.8-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d878006cf757e7bc185bdabde1bda4f0788c9de6e9ace7f41e5e276400fa73a9 |
|
MD5 | 5e2b4f858f138100ccbcc9ebe7d95ffb |
|
BLAKE2b-256 | 2d14d68006911c1afde15d022f582c00b304aae4c4723eef68931641395a27da |