https://github.com/aabouzaid/add-host-to-opsview
Automate adding a new host with templates via Opsview API.
https://github.com/aabouzaid/add-host-to-opsview
automation monitoring opsview
Last synced: about 1 year ago
JSON representation
Automate adding a new host with templates via Opsview API.
- Host: GitHub
- URL: https://github.com/aabouzaid/add-host-to-opsview
- Owner: aabouzaid
- License: gpl-3.0
- Created: 2016-04-10T21:47:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T10:21:57.000Z (almost 10 years ago)
- Last Synced: 2025-02-05T11:36:34.977Z (over 1 year ago)
- Topics: automation, monitoring, opsview
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Python script to automate adding a new host with templates via Opsview API.
=========================================
I wrote this script two years ago, and then updated it on year ago or so ... I'm not sure who is still using Opsview, but at least it's here if any one need it.
This script is simply used to add a new host to Opsview automatically. It can be used independently or as I used to use it as part of automation tool like Ansible.
How to use?
-------------------
```
python add_host_to_opsview.py --group-name GROUP_NAME --server-name SERVER_NAME --server-ip SERVER_IP --ini-file PATH_TO_INI_FILE
```
The ini file has info that will used to connect to Opsview Server (Opsview URL, user, password, and host templates).
Requirement.
-------------------
No special requirements, just the user that used to connect to Opsview should have administration privileges.
Compatibility.
-------------------
This script is tested with latest Open Source version of Opsview!