fix path related issues for ss and systemd applications (#16045)

* fix path related issues for ss and systemd

* ensure / is before include

* re-order use order
This commit is contained in:
Zane C. Bowers-Hadley
2024-05-21 07:33:02 -05:00
committed by GitHub
parent 2a42bf714f
commit 3491f3d704
2 changed files with 6 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
<?php
require_once 'includes/ss-shared.inc.php';
use LibreNMS\Config;
use LibreNMS\Exceptions\JsonAppException;
use LibreNMS\Exceptions\JsonAppMissingKeysException;
use LibreNMS\RRD\RrdDefinition;
require_once Config::get('install_dir') . '/includes/ss-shared.inc.php';
$name = 'ss';
$output_success = 'OK';
$polling_type = 'app';

View File

@@ -1,11 +1,12 @@
<?php
require_once 'includes/systemd-shared.inc.php';
use LibreNMS\Config;
use LibreNMS\Exceptions\JsonAppException;
use LibreNMS\Exceptions\JsonAppMissingKeysException;
use LibreNMS\RRD\RrdDefinition;
require_once Config::get('install_dir') . '/includes/systemd-shared.inc.php';
$name = 'systemd';
$output = 'OK';
$polling_type = 'app';