flowti/zabbix-bundle

Zabbix integration for Symfony

Installs: 855

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0 2022-01-20 19:25 UTC

This package is auto-updated.

Last update: 2024-03-27 14:16:07 UTC


README

Zabbix integration for Symfony

Obtaining monitoring data captured by Zabbix in a simple way, with easy configuration, requiring only the host name to return a list of the server's monitoring data.

Instalation:

composer require flowti/zabbix-bundle 

Generate a parameters file:

php bin/console config:dump-reference FlowtiZabbixBundle > config/packages/flowti_zabbix.yaml

Example: src/config/packages/flowti_zabbix.yaml

flowti_zabbix:
    client:
        host: "https://seu-servidor"
        username: "user"
        password: "pass"

Call Example:

/**
* @Route("/zabbix", name="zabbix-test")
*/
public function zabbixText(FlowtiZabbixClient $zabbix)
{
    dump($zabbix->getTrigger(629272));
    dd($zabbix->getHost('srvdata02rj-q01147'));
}