Zabbix can't connect to asterisk

Experimenting with Zabbix to monitor my FreePBX systems. Got the zabbix server up and it’s monitoring the FreePBX system OS. Can’t seem to get it to connect to asterisk however. I don’t think it’s a firewall issue as dropping the firewall temporarily to test yields the same results.

installed the Zabbix asterisk template, created the asterisk manager user, restarted asterisk, ports seem right…

anyone currently using Zabbix with FreePBX that can offer any advice?

[root@vultr ~]# curl “http://mypbx:8088/rawman?action-login&username=Zabbix$secret=secretobscurred

404 Not Found

Not Found

The requested URL was not found on this server.


Asterisk/18.17.1

some progress…

[root@vultr zabbix]# curl -I http://mypbx:8088/rawman?action=login&username=zabbix&secret=zabbixsecret
[1] 11474
[2] 11475
[2]+ Done username=zabbix
[root@vultr zabbix]# HTTP/1.1 200 OK
Server: Asterisk/18.17.1
Date: Sat, 14 Oct 2023 22:09:18 GMT
Cache-Control: no-cache, no-store
Content-type: text/plain
Set-Cookie: mansession_id=“bb561041”; Version=1; Max-Age=60
Pragma: SuppressEvents

Still can’t get results in the zabbix interface though. error: could not perform request: couldn’t connect to server

  1. Zabbix firewall?
  2. Did you check Admin>System Admin>Intrusion Detection to ensure Fail2Ban has not flagged the Zabbix server(s)?

it’s not a firewall issue, temporarily turned off all firewalls and tested…
also, I can connect via curl from the same system

Did you check Admin>System Admin>Intrusion Detection to ensure Fail2Ban has not flagged the Zabbix server(s)?

yes, all the obvious was checked and again… I can connect using curl…

it looks like the PBX is only listening on IPV6 but the system doesn’t have an IPV6 address:

AshcorPBX*CLI> http show status
HTTP Server Status:
Prefix:
Server: Asterisk/18.17.1
Server Enabled and Bound to [::]:8088

HTTPS Server Enabled and Bound to [::]:8089

Enabled URI’s:
/httpstatus => Asterisk HTTP General Status
/amanager => HTML Manager Event Interface w/Digest authentication
/metrics/… => Prometheus Metrics URI
/arawman => Raw HTTP Manager Event Interface w/Digest authentication
/manager => HTML Manager Event Interface
/rawman => Raw HTTP Manager Event Interface
/amxml => XML Manager Event Interface w/Digest authentication
/mxml => XML Manager Event Interface
/ari/… => Asterisk RESTful API
/ws => Asterisk HTTP WebSocket

Enabled Redirects:
None.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.