Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
465 B
PHP
Raw Permalink Normal View History

<?php
\DeviceCache::getPrimary()->applications->each(function ($app) use ($device, $agent_data) {
echo 'Application: ' . $app->app_type . ', app_id=' . $app->app_id;
$app_include = base_path('includes/polling/applications/' . \LibreNMS\Util\Clean::fileName($app->app_type) . '.inc.php');
if (is_file($app_include)) {
include $app_include;
} else {
echo 'ERROR: ' . $app_include . ' include file missing!';
2011-03-23 09:54:56 +00:00
}
echo "\n";
});