diff options
author | M.Gergő | 2020-04-07 00:51:26 +0200 |
---|---|---|
committer | M.Gergő | 2020-04-07 00:51:26 +0200 |
commit | b71aec751deb8e6bf5a08760050c2c9149f53cb5 (patch) | |
tree | c87e47ccab6a1d7f89767033b7d43dc74715fd4d /nextcloud_munin.php | |
parent | 6956ad74c93efbbe9ff30b81fea2b68258b5cb99 (diff) | |
download | munin-nextcloud-b71aec751deb8e6bf5a08760050c2c9149f53cb5.tar.gz munin-nextcloud-b71aec751deb8e6bf5a08760050c2c9149f53cb5.zip |
Munin graphs for Nextcloud
Diffstat (limited to 'nextcloud_munin.php')
-rwxr-xr-x | nextcloud_munin.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nextcloud_munin.php b/nextcloud_munin.php index e813436..b27e35f 100755 --- a/nextcloud_munin.php +++ b/nextcloud_munin.php @@ -96,7 +96,7 @@ $time_req = time()-60*$set['diff_minutes']; $ret['g_info'] = "nextcloud_events"; $ret['g_order'] = "nxt_evt_all nxt_evt_files nxt_evt_share"; // skeleton for returning - foreach(array_merge(array('all', 'files', 'share', 'pub', 'comm', 'cal', 'other'), $set['nxt_plugins']) as $key => $val){ + foreach(array_merge(array('all', 'files', 'share', 'pub', 'comm', 'cal'), $set['nxt_plugins'], array( 'other')) as $key => $val){ // Order -> merge(arr(),arr(), arr( 'other')) $ret['data'][$d_pfx.$val]['value'] = 0; $ret['data'][$d_pfx.$val]['draw'] = "LINE1.2"; $ret['data'][$d_pfx.$val]['type'] = "GAUGE"; @@ -113,14 +113,13 @@ $time_req = time()-60*$set['diff_minutes']; $ret['data'][$d_pfx.'comm']['info'] = "Comments"; $ret['data'][$d_pfx.'cal']['label'] = "Calendar actions"; $ret['data'][$d_pfx.'cal']['info'] = "Calendar actions/operations"; + $ret['data'][$d_pfx.'other']['label'] = "Other actions"; + $ret['data'][$d_pfx.'other']['info'] = "Other actions"; //------------ Applications enabled ------------// $ret['data'][$d_pfx.'talk']['label'] = "Talk events"; $ret['data'][$d_pfx.'talk']['info'] = "Nextcloud Talk events"; $ret['data'][$d_pfx.'antivirus']['label'] = "Virus detect"; $ret['data'][$d_pfx.'antivirus']['info'] = "Virus Detections by files_antivirus"; - //------------------ Others --------------------// - $ret['data'][$d_pfx.'other']['label'] = "Other actions"; - $ret['data'][$d_pfx.'other']['info'] = "Other actions"; mysqli_set_charset($l, "utf8"); $r = mysqli_query($l, " SELECT * FROM ".mysqli_real_escape_string($l, $set['db_db']).".".mysqli_real_escape_string($l, $set['db_prefix'])."activity |