![]() |
![]() |
Subject: | Need Help with Notification methods |
Author: | [Not Specified] |
Posted: | 2016-09-09 12:54 |
Hello Everyone,
I was hoping you guys could point me in the right direction to add a notification method.
I need to add a notiffcaiton method so Zenoss 5.1 will send notifications using a REST API
Problem I have is that VictorOps does not currently install in Zenoss 5.1 and I need to send things to them.
I could technically do it via email however, if my email goes down I am SOL hahahaha
So I guess 2 options would fix my problem.
1.) point me to adding a REST API (https push) notification method
or
2.) help me fix the install of VictorOps
for the people that are interested here is what happened when I tried to install the victor ops egg file from inside a docker container snapshot. YES i know you install egg files differently in 5.x this was my way of kind of hacking it in an attempt to get it to work lol
I got the following errors:
[root@f44eee4c7b73 /]# wget http://software.victorops.com/VictorOps-Public.repo
[root@f44eee4c7b73 /]# mv VictorOps-Public.repo /etc/yum.repos.d/
[root@f44eee4c7b73 /]# ll /etc/yum.repos.d/
Enter Zenoss password for user admin:
[root@f44eee4c7b73 /]# /opt/victorops/zenoss_plugin/bin/configure.sh
Enter Zenoss server URL [http://localhost:8080/]:
Enter Zenoss user: admin
Enter Zenoss password for user admin:
Your zenoss key is shown on the VictorOps Zenoss integration page.
Enter your VictorOps Zenoss key:
Configuring Zenoss templates and notifications VictorOps.
Traceback (most recent call last):
File "/opt/victorops/zenoss_plugin/bin/configure.py", line 22, in
z = ZenossAPI(instance, username, password)
File "/opt/victorops/zenoss_plugin/bin/zenoss_api.py", line 56, in __init__
self.urlOpener.open(self.instance + '/zport/acl_users/cookieAuthHelper/login', loginParams)
File "/usr/lib64/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 469, in error
result = self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 656, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib64/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
raise URLError(err)
urllib2.URLError:
I verified that the port for access was open
[root@f44eee4c7b73 /]# netstat -ano | grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN off (0.00/0/0)
I even attempted using a FQDN that resolves to a public IP outside of the docker containers but that actually failed as it could not connect.
Subject: | Have a look at Jan's post |
Author: | Jane Curry |
Posted: | 2016-09-12 04:49 |
Have a look at Jan's post here -http://www.zenoss.org/forum/9051 for installing Python modules.
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | Seems to complain about DNS |
Author: | Jay Stanley |
Posted: | 2016-09-12 08:50 |
Seems to complain about DNS lookup failure.
urlopen error [Errno -2] Name or service not known
Try loading it with the IP instead
< |
Previous Upgrading from 5.0.10 to 5.1.1 |
Next Migrate Database and Zenoss to different server |
> |