intellitrend / zabbixapi-php

Zabbix API client for PHP with session cache and SSL management
GNU Lesser General Public License v3.0
56 stars 10 forks source link

Installation #1

Closed danboid closed 5 years ago

danboid commented 5 years ago

I don't understand how this is supposed to work with Zabbix. The installation instructions say:

Installation

There is no installation required. Simply copy the file Zabbixapi.php and use the class.

If you just did that, I don't see how the PHP server would know how or what to send to the Zabbix server or zabbix agent? I cannot see a Zabbix template to import in this repo so I'm not sure how to hook it up to Zabbix (4.0)?

I want to monitor the health of a PHP server with Zabbix but maybe this doesn't do what I want anyway?

intellitrend-team commented 5 years ago

Hello, zabbixapi-php is not intended to monitor a webserver or php/php-fpm itself.

zabbixapi-php is to be used to communicate with the Zabbix-API.

More info on the Zabbix API can be found here: https://www.zabbix.com/documentation/4.0/manual/api

I want to monitor the health of a PHP server with Zabbix but maybe this doesn't do what I want anyway?

No- it is not intended to do this.

danboid commented 5 years ago

OK thanks!

I am now using a Zabbix systemd monitoring template to monitor php-fpm:

https://github.com/MogiePete/zabbix-systemd-service-monitoring

intellitrend-team commented 5 years ago

Great this works for you - closing now.