aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnextcloud_munin.php7
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