preliminary support for unix agent. probably will eat your cat and rape your dog, at this point.

git-svn-id: http://www.observium.org/svn/observer/trunk@2923 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-03-26 09:37:55 +00:00
parent b86abdba7c
commit 98ffa46ea0
6 changed files with 223 additions and 0 deletions
+9
View File
@@ -215,6 +215,15 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
</li>');
}
if ($config['poller_modules']['unix-agent'] && @dbFetchCell("SELECT COUNT(*) FROM `packages` WHERE device_id = '".$device['device_id']."'") > '0')
{
echo('<li class="' . $select['packages'] . '">
<a href="'.generate_device_url($device, array('tab' => 'packages')).'">
<img src="images/16/box.png" align="absmiddle" border="0" /> Packages
</a>
</li>');
}
if ($config['enable_inventory'] && @dbFetchCell("SELECT * FROM `entPhysical` WHERE device_id = '".$device['device_id']."'") > '0')
{
echo('<li class="' . $select['entphysical'] . '">