ashcortech
(AshCorTech)
October 14, 2023, 3:12pm
1
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
ashcortech
(AshCorTech)
October 14, 2023, 10:10pm
2
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
ashcortech
(AshCorTech)
October 16, 2023, 5:41pm
4
it’s not a firewall issue, temporarily turned off all firewalls and tested…
also, I can connect via curl from the same system
comtech
(Com Tech)
October 16, 2023, 7:40pm
5
Did you check Admin>System Admin>Intrusion Detection to ensure Fail2Ban has not flagged the Zabbix server(s)?
ashcortech
(AshCorTech)
October 16, 2023, 7:55pm
6
yes, all the obvious was checked and again… I can connect using curl…
ashcortech
(AshCorTech)
October 16, 2023, 7:57pm
7
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.
system
(system)
Closed
November 16, 2023, 7:57pm
8
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.