Page 1 of 1

Nagios-mattermost Integration issue

Posted: Wed Jun 15, 2016 4:13 am
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.

Re: Nagios-mattermost Integration issue

Posted: Wed Jun 15, 2016 9:55 am
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