mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
add applications polling infrastructure (OH YEAH!)
git-svn-id: http://www.observium.org/svn/observer/trunk@1217 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `applications` WHERE `device_id` = '".$device['device_id']."'";
|
||||
if($debug) { echo($sql."\n"); }
|
||||
$app_data = mysql_query($sql);
|
||||
|
||||
if(mysql_affected_rows())
|
||||
{
|
||||
echo('Applications: ');
|
||||
while($app = mysql_fetch_array($app_data)) {
|
||||
$app_include = $config['install_dir'].'/includes/polling/applications/'.$app['app_type'].'.inc.php';
|
||||
if(is_file($app_include))
|
||||
{
|
||||
include($app_include);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo($app['app_type'].' include missing! ');
|
||||
}
|
||||
}
|
||||
echo("\n");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user