Rrdcached application monitoring

Can collect data from the agent or by connecting directly
This commit is contained in:
Tony Murray
2016-06-08 20:40:51 -05:00
parent a68687de5e
commit 60624c1ac0
8 changed files with 207 additions and 10 deletions

View File

@@ -52,20 +52,21 @@ if ($device['os_group'] == 'unix') {
$graphs['agent'] = true;
$agentapps = array(
"apache",
"bind",
"ceph",
"mysql",
"nginx",
"powerdns",
"proxmox",
"rrdcached",
"tinydns");
foreach (explode('<<<', $agent_raw) as $section) {
list($section, $data) = explode('>>>', $section);
list($sa, $sb) = explode('-', $section, 2);
$agentapps = array(
"apache",
"ceph",
"mysql",
"nginx",
"bind",
"powerdns",
"proxmox",
"tinydns");
if (in_array($section, $agentapps)) {
$agent_data['app'][$section] = trim($data);
}