Zabbix http template

Hello everyone, does anyone use the official template template_tel_asterisk_http.yaml? I set it up with freepbx, I get data but I need to get the IAX trunk status. The manual says that Discovery should work but it doesn’t work for me and I don’t see any errors. What should I do? Does Discovery work for anyone?
I have 38 item and they work but new ones don’t appear.

This XML file does not appear to have any style information associated with it. The document tree is shown below.

]<ajax-response>
<script/>
<response type="object" id="unknown">
<generic response="Success" eventlist="start" message="Peer status list will follow"/>
</response>
<response type="object" id="unknown">
<generic event="PeerEntry" channeltype="IAX2" objectname="iax_dtc_idp/iax_dtc_idp" chanobjecttype="peer" ipaddress="192.168.98.14" ipport="4569" dynamic="no" trunk="yes" encryption="(aes128,keyrotate)" status="OK (20 ms)" description=""/>
</response>
<response type="object" id="unknown">
<generic event="PeerEntry" channeltype="IAX2" objectname="iax_dtc_idp_test/iax_dtc_idp_test" chanobjecttype="peer" ipaddress="192.168.98.114" ipport="4569" dynamic="no" trunk="yes" encryption="(aes128,keyrotate)" status="UNREACHABLE" description=""/>
</response>
<response type="object" id="unknown">
<generic event="PeerEntry" channeltype="IAX2" objectname="iax_idp_avto_pbx02/iax_idp_avto_pbx02" chanobjecttype="peer" ipaddress="192.168.1.14" ipport="4569" dynamic="no" trunk="yes" encryption="(aes128,keyrotate)" status="OK (20 ms)" description=""/>
</response>
<response type="object" id="unknown">
<generic event="PeerlistComplete" eventlist="Complete" listitems="3"/>
</response>
</ajax-response>

I modified the Zabbix Asterisk template for use with FreePBX. Since it works through the active agent and FreePBX, you do not need to open AMI or HTTP for it.

1 Like

Thanks for the template. I’ll try to use it. I’m just wondering why the official template doesn’t work, as described here. I tried it on different freepbx and different zabbix servers. The result is the same. Am I the only one with this?

This is awesome, thanks Bill. Puts the implementation I had to shame.

1 Like

Hello my friend. I have problems with your template. I have zabbix version 7.4. I installed zabbix agent as described in your instructions. But on the zabbix server I do not receive data. I went to my freepbx via ssh and executed the command php /etc/zabbix/zabbix_agent2.d/zabbix-stats.php
locale: Cannot set LC_CTYPE to default locale: No such file or directory
{“version”:“18.20.2”,“freepbx_version”:"16.0.40.13. I received a lot of data about my system.

Also on the zabbix server as soon as I add a template to my server the state becomes unknown. Can you tell me what I’m doing wrong?

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