nagios historian plugin
Project description
Title1
Checks historian tags and samples.
Install
Linux:
sudo pip3 install nagios_historian --upgrade
Also is possible to use:
sudo python3 -m pip install nagios_historian --upgrade
On windows with python3.5:
pip install nagios_historian --upgrade
For proxies add:
--proxy='http://user:passw@server:port'
Usage
Use the command line:
> nagios_historian --help usage: nagios_historian [-h] [-u [URL]] [-e [EXTRA_ARGS]] optional arguments: -h, --help show this help message and exit -u [URL], --url [URL] url to check --client_id oauth2 client_id example client id: user01 --client_secret oauth2 client_secret client password --auth_url oauth2 auth_url example: https://login.microsoftonline.com/company.onmicrosoft.com/oauth2/v2.0/token --instance instance name of historian --oauth2 Flag to use or not token for oauth2 before creating the request, used to check published services that uses azure oauth2 -e [EXTRA_ARGS], --extra_args [EXTRA_ARGS] extra args
Example usage
Example use:
> nagios_historian -u “https://xxx/yyy/currentvalue?tagNames=” –client_id “admin1234” –client_secret “pass1234” –auth_url “https://xxxx/oauth/token” –oauth2 –instance “instancename”
Nagios config
Example command:
define command{ command_name check_nagios_historian command_line /usr/local/bin/nagios_historian -u "$ARG1$" --client_id "$ARG2$" --client_secret "$ARG3$" --auth_url "$ARG4$" --oauth2 --instance "$ARG5$" --extra_args='$ARG6$' }
Example service:
define service { host_name SERVERX service_description service_name check_command check_nagios_historian!http://url/path!admin123!pass1234!http://authurl/oauth2!instancename use generic-service notes some useful notes }
You can use ansible role that already has the installation and command: https://github.com/CoffeeITWorks/ansible_nagios4_server_plugins
TODO
Use hash passwords
Add Unit tests?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nagios_historian-0.6.5.tar.gz
.
File metadata
- Download URL: nagios_historian-0.6.5.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 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 | 6652363ee951f36306289a806267f385568413f5e16727779745bcc3e035795d |
|
MD5 | 6092f974c16105d6b47b0ee1bcb28d40 |
|
BLAKE2b-256 | 583a7edc4ae897531c0cc5d4d733823c6bd060832506bebc85fe254b84c7aad0 |
File details
Details for the file nagios_historian-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: nagios_historian-0.6.5-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 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 | ae80932d048d50f138274564fbcf831c56b0ccf4ef016cfcdc106dad51a8cb44 |
|
MD5 | 3586737c0971bd3496a2bbee0235a7db |
|
BLAKE2b-256 | 71b83f7c6a38bf981138cc687bbba3cca81cc3c295ec1aca841016230f8f3e0a |