https://github.com/pschmitt/python-opsview
pip install opsview
from opsview import Opsview
o = Opsview(
'opsview.example.com',
verify_ssl=True,
username='pschmitt',
password='MySecretPassw0rd'
)
GPL3
Python REST API client for Opsview monitoring
License: GNU General Public License v3.0
https://github.com/pschmitt/python-opsview
pip install opsview
from opsview import Opsview
o = Opsview(
'opsview.example.com',
verify_ssl=True,
username='pschmitt',
password='MySecretPassw0rd'
)
GPL3
Hi,
I started using your modules which saved me a lot of time on a project I was working on. However, I'm having trouble using your update_host function. How should the put be structured? Something like:
o.update_host(<host_id>,<json>)
Thanks.
I get these errors when I try on Ubuntu 21.04
testing:/tmp$ python -m venv /tmp/opsview_venv
testing:/tmp$ cd /tmp/opsview_venv/
testing:/tmp/opsview_venv$ source ./bin/activate
(opsview_venv) testing:/tmp/opsview_venv$ python --version
Python 3.9.5
(opsview_venv) testing:/tmp/opsview_venv$ pip install opsview
Collecting opsview
Downloading opsview-0.9.0.tar.gz (18 kB)
ERROR: Command errored out with exit status 1:
command: /tmp/opsview_venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-io9mw4xi
cwd: /tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ydxw692w/opsview_a347bb61df4f479bb7dece71bd0a1a5d/setup.py", line 3, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.