Add initial support for Proxmox VM network traffic. [WIP]

This commit is contained in:
Mark Schouten
2015-08-27 13:18:53 +02:00
parent 3798a0f569
commit bf913f5a3b
7 changed files with 248 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ if ($device['os_group'] == 'unix') {
"mysql",
"nginx",
"bind",
"proxmox",
"tinydns");
if (in_array($section, $agentapps)) {
@@ -99,7 +100,7 @@ if ($device['os_group'] == 'unix') {
if (file_exists("includes/polling/applications/$key.inc.php")) {
d_echo("Enabling $key for ".$device['hostname']." if not yet enabled\n");
if (in_array($key, array('apache', 'mysql', 'nginx'))) {
if (in_array($key, array('apache', 'mysql', 'nginx', 'proxmox'))) {
if (dbFetchCell('SELECT COUNT(*) FROM `applications` WHERE `device_id` = ? AND `app_type` = ?', array($device['device_id'], $key)) == '0') {
echo "Found new application '$key'\n";
dbInsert(array('device_id' => $device['device_id'], 'app_type' => $key), 'applications');