Files
librenms-librenms/includes/polling/applications.inc.php
Mark Westerterp 8a6f158ab8 fix: Add consistent output of name and app_id to Poller for all Applications (fixes #13641) (#13648)
* Add echo of name and app_id to all Applications

* Make echo not application specifc

* Fix echo

* Do spaces make StyleCI happy?

* Not spaces, but the type of quotes makes StyleCI happy
2022-01-06 12:08:52 +01:00

19 lines
593 B
PHP

<?php
$app_rows = dbFetchRows('SELECT * FROM `applications` WHERE `device_id` = ?', [$device['device_id']]);
if (count($app_rows) > 0) {
foreach ($app_rows as $app) {
echo 'Application: ' . $app['app_type'] . ', app_id=' . $app['app_id'];
$app_include = \LibreNMS\Config::get('install_dir') . '/includes/polling/applications/' . $app['app_type'] . '.inc.php';
if (is_file($app_include)) {
include $app_include;
} else {
echo 'ERROR: ' . $app_include . ' include file missing!';
}
}
echo "\n";
}
unset($app_rows);