Nagios-mattermost Integration issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Mutha2838
Posts: 1
Joined: Wed Jun 15, 2016 2:39 am

Nagios-mattermost Integration issue

Post by Mutha2838 »

I have installed Nagios 4.1.1 and Mattermost on Ubuntu 14.04. Also i have configured Ndrive plugin to send Nagios alerts to Mattermost. However i am not receiving any alerts on mattermost when there is an alert in Nagios. I am getting below log messages.


[1465976360] wproc: NOTIFY job 5371 from worker Core Worker 21631 is a non-check helper but exited with return code 1
[1465976360] wproc: host=winserver; service=Uptime; contact=nagiosadmin
[1465976360] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1465976360] wproc: stderr line 01: Traceback (most recent call last):
[1465976360] wproc: stderr line 02: File "/usr/local/nagios/libexec/mattermost.py", line 99, in <module>
[1465976360] wproc: stderr line 03: response = request(args.url, data)
[1465976360] wproc: stderr line 04: File "/usr/local/nagios/libexec/mattermost.py", line 92, in request
[1465976360] wproc: stderr line 05: response = urllib2.urlopen(req)
[1465976360] wproc: stderr line 06: File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
[1465976360] wproc: stderr line 07: return _opener.open(url, data, timeout)
[1465976360] wproc: stderr line 08: File "/usr/lib/python2.7/urllib2.py", line 404, in open
[1465976360] wproc: stderr line 09: response = self._open(req, data)
[1465976360] wproc: stderr line 10: File "/usr/lib/python2.7/urllib2.py", line 427, in _open
[1465976360] wproc: stderr line 11: 'unknown_open', req)
[1465976360] wproc: stderr line 12: File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
[1465976360] wproc: stderr line 13: result = func(*args)
[1465976360] wproc: stderr line 14: File "/usr/lib/python2.7/urllib2.py", line 1247, in unknown_open
[1465976360] wproc: stderr line 15: raise URLError('unknown url type: %s' % type)
[1465976360] wproc: stderr line 16: urllib2.URLError: <urlopen error unknown url type: [http>


Is anybody faced this issue? Any suggestion and configuration steps needs to be taken care? please help.


Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios-mattermost Integration issue

Post by rkennedy »

As the error isn't something obvious, and we didn't write the plugin, your best bet may be to contact them for support. The readme looks to have quite a bit of information - https://github.com/NDrive/nagios-matter ... /README.md
Former Nagios Employee
Locked