-
Notifications
You must be signed in to change notification settings - Fork 6
/
wp-zabbix.php
33 lines (26 loc) · 1.03 KB
/
wp-zabbix.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Plugin Name: WordPress Zabbix Monitoring Client
* Plugin URI: https://wappler.systems/wordpress/plugins/wp-zabbix/
* Description: This is a REST API client for the Zabbix Monitoring system.
* Version: 0.0.2
* Requires at least: 4.4
* Requires PHP: 7.0
* Author: Sven Wappler
* Author URI: https://wappler.systems/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-zabbix
* Domain Path: /languages
*/
define( 'WPZABBIX_VERSION', '0.0.1' );
define( 'WPZABBIX_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once WPZABBIX_PLUGIN_DIR . 'class.wpzabbix.php';
require_once WPZABBIX_PLUGIN_DIR . 'endpoints' . DIRECTORY_SEPARATOR . 'class-wp-rest-site-health-controller.php';
require_once WPZABBIX_PLUGIN_DIR . 'endpoints' . DIRECTORY_SEPARATOR . 'class-wp-rest-updates-controller.php';
function run_zabbix_client()
{
$plugin = new WpZabbix();
$plugin->init();
}
run_zabbix_client();