diff --git a/zabbix-templates/nextcloud-by-rcasystems.json b/zabbix-templates/nextcloud-by-rcasystems.json deleted file mode 100644 index 3b936bf..0000000 --- a/zabbix-templates/nextcloud-by-rcasystems.json +++ /dev/null @@ -1,1340 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", - "name": "Templates/Applications" - } - ], - "templates": [ - { - "uuid": "eddea30a51d94d56875d2dd78fab8120", - "template": "Nextcloud by RCA Systems", - "name": "Nextcloud by RCA Systems", - "description": "Nextcloud by RCA Systems", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Applications" - } - ], - "items": [ - { - "uuid": "ca01b1ae4af04990b8ddcbb06482e5f3", - "name": "User Agent - Chrome browser", - "key": "apache2_user_agent_metric[Chrome_browser]", - "delay": "1d", - "description": "User Agent - Chrome browser - Last 24h" - }, - { - "uuid": "579e468d8ea74a05be501afefc0573bc", - "name": "User Agent - Desktop Client Linux", - "key": "apache2_user_agent_metric[Desktop_Client_Linux]", - "delay": "1d", - "description": "User Agent - Desktop Client Linux - Last 24h" - }, - { - "uuid": "87ac9ddd75f24d209d631ce1226402ea", - "name": "User Agent - Desktop Client Mac", - "key": "apache2_user_agent_metric[Desktop_Client_Mac]", - "delay": "1d", - "description": "User Agent - Desktop Client Mac - Last 24h" - }, - { - "uuid": "455b5838ca7248c98779e122232ec11a", - "name": "User Agent - Desktop Client Windows", - "key": "apache2_user_agent_metric[Desktop_Client_Windows]", - "delay": "1d", - "description": "User Agent - Desktop Client Windows - Last 24h" - }, - { - "uuid": "773a49e0bb9a44ee920510b4a73449d7", - "name": "User Agent - Edge browser", - "key": "apache2_user_agent_metric[Edge_browser]", - "delay": "1d", - "description": "User Agent - Edge browser - Last 24h" - }, - { - "uuid": "a8558f5b2dd64d0bb596c3057ff754ff", - "name": "User Agent - Firefox browser", - "key": "apache2_user_agent_metric[Firefox_browser]", - "delay": "1d", - "description": "User Agent - Firefox browser - Last 24h" - }, - { - "uuid": "62b0b00d10f6478e98775308849f9308", - "name": "User Agent - Nextcloud Talk Android", - "key": "apache2_user_agent_metric[Nextcloud_Talk_Android]", - "delay": "1d", - "description": "User Agent - Nextcloud Talk Android - Last 24h" - }, - { - "uuid": "7f9286df05da4fe6af8b44f247f730db", - "name": "User Agent - Nextcloud Talk iOS", - "key": "apache2_user_agent_metric[Nextcloud_Talk_iOS]", - "delay": "1d", - "description": "User Agent - Nextcloud Talk iOS - Last 24h" - }, - { - "uuid": "83b408e385af4de2982cba7eec7ab210", - "name": "User Agent - Safari browser", - "key": "apache2_user_agent_metric[Safari_browser]", - "delay": "1d", - "description": "User Agent - Safari browser - Last 24h" - }, - { - "uuid": "b7dac9facd27414da6710117d61ba6af", - "name": "Database Full Version", - "key": "db_full_version", - "delay": "1d", - "trends": "0", - "value_type": "TEXT" - }, - { - "uuid": "8bfc17be6a414c5ca715e46ebca038f8", - "name": "Active Users (Last Hour)", - "key": "nc_metric[ocs.data.activeUsers.last1hour]", - "delay": "1h", - "description": "Active users in the last hour" - }, - { - "uuid": "280c9c2ea30f4f97b1167e7d07cb7c0f", - "name": "Active Users (Last 5 Minutes)", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]", - "delay": "5m", - "description": "Active users in the last 5 minutes" - }, - { - "uuid": "cae212b94b404cb1b816825839a6643e", - "name": "Active Users (Last 24 Hours)", - "key": "nc_metric[ocs.data.activeUsers.last24hours]", - "delay": "1d", - "description": "Active users in the last 24 hours" - }, - { - "uuid": "dd6ca0d93db54819811a7d07d5c06981", - "name": "Number of Shares", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]", - "description": "Total number of shares" - }, - { - "uuid": "4f732d5bcc504eed92b6402cfd2e4e06", - "name": "Number of Group Shares", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]", - "delay": "1h", - "description": "Number of shares (group)" - }, - { - "uuid": "66db9033e1a34bfba2fd81575bab9544", - "name": "Number of Shares by Link", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]", - "delay": "1h", - "description": "Number of shares (link)" - }, - { - "uuid": "415b19a45d5c47d6835bc2dbdcfe4c51", - "name": "Number of Shares by Email", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]", - "delay": "1h", - "description": "Number of shares (mail)" - }, - { - "uuid": "c60c6369bda4415e924d49211f9e79f6", - "name": "Number of Shares in Talk Room", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]", - "delay": "1h", - "description": "Number of shares (room)" - }, - { - "uuid": "648dff6d0c594164b1fdd2635e3c1d9c", - "name": "Number of Shares with user", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]", - "delay": "1h", - "description": "Number of Shares (User)" - }, - { - "uuid": "169a4440fd86493e97dc15821a89458c", - "name": "Number of Files", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]", - "delay": "1h", - "description": "Total number of files" - }, - { - "uuid": "2e7c235636db40dc9299854cfb8170c6", - "name": "Number of Storage Areas", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]", - "delay": "1h", - "description": "Number of Storages" - }, - { - "uuid": "4948262dfc4645a7bd0b71d2ba62477f", - "name": "Number of Storage Homes", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]", - "delay": "1h", - "description": "Number of Storages (Home)" - }, - { - "uuid": "4b1f627d3d404a839c15e68aa6fad8eb", - "name": "Number of Local Storage Areas", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]", - "delay": "1h", - "description": "Number of Storages (Local)" - }, - { - "uuid": "538fa8eb57d744b9a9bf021b69383d80", - "name": "Number of External Storage Areas", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]", - "delay": "1h", - "description": "Number of Storages (Other)" - }, - { - "uuid": "cca6fc0764e542afa65c3296311be7bc", - "name": "Number of Installed Applications", - "key": "nc_metric[ocs.data.nextcloud.system.apps.num_installed]", - "delay": "1d", - "description": "Number of installed applications" - }, - { - "uuid": "30b554fb5c2845439e3486b6a0927c1a", - "name": "Database Size (reported by Nextcloud)", - "key": "nc_metric[ocs.data.server.database.size]", - "delay": "1h", - "value_type": "FLOAT", - "description": "Database Size (in bytes)", - "preprocessing": [ - { - "type": "MULTIPLIER", - "parameters": [ - "9.5367431640625E-7" - ] - } - ] - }, - { - "uuid": "209893b4f7764f45a26afcf055dbd5cd", - "name": "Database (reported by Nextcloud)", - "key": "nc_metric[ocs.data.server.database.type]", - "delay": "1d", - "trends": "0", - "value_type": "TEXT", - "description": "Database Type" - }, - { - "uuid": "f8b1b78f1ed7472ba73e5bdb031577a2", - "name": "Database Version (reported by Nextcloud)", - "key": "nc_metric[ocs.data.server.database.version]", - "delay": "1d", - "trends": "0", - "value_type": "TEXT", - "description": "Database Version" - }, - { - "uuid": "93f98339a7004028a3bbc4dff71e4e0e", - "name": "Data Directory Size", - "key": "storage_metric[total_size]", - "delay": "10m", - "units": "bytes", - "description": "Nextcloud data directory storage size", - "preprocessing": [ - { - "type": "MULTIPLIER", - "parameters": [ - "1024" - ] - } - ] - }, - { - "uuid": "2cc43d1dbefd4a109ec8406e2899654b", - "name": "Data Directory Size (GB)", - "key": "storage_metric[total_size_gb]", - "delay": "10m", - "trends": "0", - "value_type": "TEXT", - "description": "Nextcloud data directory storage size (in Gigabytes)" - } - ], - "discovery_rules": [ - { - "uuid": "3f2820db83ff4b2fb87013d3d6fcd0be", - "name": "Largest database tables", - "key": "db_metric_discovery", - "delay": "1h", - "item_prototypes": [ - { - "uuid": "1e53988836eb465eb220402a6721df4d", - "name": "Number of rows {#TABLENAME}", - "key": "db_metric[{#TABLENAME},nr_rows]", - "delay": "1h" - }, - { - "uuid": "6d82cf7849154cb3859001cfa86fff9c", - "name": "Size of {#TABLENAME}", - "key": "db_metric[{#TABLENAME},size_mb]", - "delay": "1h", - "value_type": "FLOAT" - } - ], - "graph_prototypes": [ - { - "uuid": "bc89e54de2e143d19b5623c40cbb666f", - "name": "Number of rows in {#TABLENAME}", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "db_metric[{#TABLENAME},nr_rows]" - } - } - ] - }, - { - "uuid": "1eb51c1032034c50b2b887ebc31f660e", - "name": "Size of {#TABLENAME} in MB", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "db_metric[{#TABLENAME},size_mb]" - } - } - ] - } - ] - } - ], - "dashboards": [ - { - "uuid": "e7808bdb7dc64e23a3d5e8edd8ac4e59", - "name": "Nextcloud Dashboard", - "pages": [ - { - "name": "Application", - "widgets": [ - { - "type": "item", - "name": "Total Number of Shares", - "width": "4", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Number of Shares" - }, - { - "type": "INTEGER", - "name": "desc_h_pos", - "value": "0" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - } - ] - }, - { - "type": "graph", - "name": "Database Size", - "y": "3", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Database size" - } - } - ] - }, - { - "type": "graph", - "name": "Active Users", - "y": "8", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Active users" - } - } - ] - }, - { - "type": "graph", - "y": "13", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Total Storage in Data Directory" - } - } - ] - }, - { - "type": "graph", - "y": "18", - "width": "5", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "User Agent - Last Natural Day" - } - } - ] - }, - { - "type": "item", - "name": "Total Number of Files", - "x": "4", - "width": "4", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Number of Files (including previews and folders)" - }, - { - "type": "INTEGER", - "name": "desc_h_pos", - "value": "0" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - } - ] - }, - { - "type": "graph", - "name": "User Agent - Average per Natural Day", - "x": "5", - "y": "18", - "width": "7", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "User Agent - Average per Natural Day" - } - } - ] - }, - { - "type": "item", - "name": "Total Storage in Data Directory", - "x": "8", - "width": "4", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Storage in Data Directory" - }, - { - "type": "INTEGER", - "name": "desc_h_pos", - "value": "0" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud by RCA Systems", - "key": "storage_metric[total_size_gb]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - } - ] - }, - { - "type": "graph", - "name": "Number of Files", - "x": "12", - "y": "3", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of Files" - } - } - ] - }, - { - "type": "graph", - "name": "Number of Shares (by type)", - "x": "12", - "y": "8", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of Shares (by Type)" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "13", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of Storage Areas" - } - } - ] - }, - { - "type": "graph", - "x": "16", - "y": "8", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of Shares (by Type) - Last Value - Pie Chart" - } - } - ] - }, - { - "type": "clock", - "name": "clock", - "x": "18", - "width": "6", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "clock_type", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "3" - }, - { - "type": "INTEGER", - "name": "tzone_format", - "value": "1" - } - ] - }, - { - "type": "graph", - "name": "Number of Shares (by Type) - Average Value - Pie Chart", - "x": "20", - "y": "8", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of Shares (by Type) - Average Value - Pie Chart" - } - } - ] - } - ] - }, - { - "name": "Database", - "widgets": [ - { - "type": "item", - "name": "Database", - "width": "4", - "height": "3", - "fields": [ - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud by RCA Systems", - "key": "db_full_version" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - } - ] - }, - { - "type": "graphprototype", - "name": "Number of rows in {#TABLENAME}", - "y": "4", - "width": "24", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "5" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Number of rows in {#TABLENAME}" - } - } - ] - }, - { - "type": "graphprototype", - "name": "Size of {#TABLENAME}", - "y": "10", - "width": "24", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "5" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Nextcloud by RCA Systems", - "name": "Size of {#TABLENAME} in MB" - } - } - ] - }, - { - "type": "item", - "name": "Database Size", - "x": "4", - "width": "4", - "height": "3", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.server.database.size]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "MB" - } - ] - } - ] - } - ] - } - ] - } - ], - "graphs": [ - { - "uuid": "20779ff8bc3346fe8b9af74240d515d3", - "name": "Active users", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last1hour]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last24hours]" - } - } - ] - }, - { - "uuid": "00e76bf39d854e09bd19bb3dea9f616f", - "name": "Active users in the last 5 minutes", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]" - } - } - ] - }, - { - "uuid": "ed6d0e653d4a43ecbc06c393c0c396d8", - "name": "Active users in the last 24 hours", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last24hours]" - } - } - ] - }, - { - "uuid": "287f84b0347a42179c137019e4f9f6e5", - "name": "Active users in the last hour", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.activeUsers.last1hour]" - } - } - ] - }, - { - "uuid": "4c5580f5314a4ad58e327f7d47ca4301", - "name": "Database size", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.server.database.size]" - } - } - ] - }, - { - "uuid": "015188c05e794bf08643394ab9fa7e53", - "name": "Number of Files", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" - } - } - ] - }, - { - "uuid": "ad1a59aeb6464aca86c7d7249752dcc1", - "name": "Number of Shares", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" - } - } - ] - }, - { - "uuid": "0a408360b58246d1b74caedb3216b969", - "name": "Number of Shares (by Type)", - "graph_items": [ - { - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "2774A4", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "FC6EA3", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "0f40359cd9b6470d85c277015346ab27", - "name": "Number of Shares (by Type) - Average Value - Pie Chart", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "EXPLODED", - "show_3d": "YES", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "274482", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "d709c34ece094f8d815cd5d8169287aa", - "name": "Number of Shares (by Type) - Last Value - Pie Chart", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "EXPLODED", - "show_3d": "YES", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "628b4299c4a9492682f76dd9747da276", - "name": "Number of Storage Areas", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]" - } - } - ] - }, - { - "uuid": "c95d504d0c43436698723d96f5c698d1", - "name": "Total Storage in Data Directory", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "storage_metric[total_size]" - } - } - ] - }, - { - "uuid": "51561be9b54e4c629a461f851f7e5464", - "name": "User Agent - Average per Natural Day", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "PIE", - "show_3d": "YES", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Chrome_browser]" - } - }, - { - "sortorder": "1", - "color": "274482", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Linux]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Mac]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Windows]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Edge_browser]" - } - }, - { - "sortorder": "5", - "color": "FC6EA3", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Firefox_browser]" - } - }, - { - "sortorder": "6", - "color": "6C59DC", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Nextcloud_Talk_Android]" - } - }, - { - "sortorder": "7", - "color": "AC8C14", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Nextcloud_Talk_iOS]" - } - }, - { - "sortorder": "8", - "color": "611F27", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Safari_browser]" - } - } - ] - }, - { - "uuid": "f99a3f8da4d24919a735fab0bdbc7014", - "name": "User Agent - Last Natural Day", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "PIE", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Chrome_browser]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Linux]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Mac]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Desktop_Client_Windows]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Edge_browser]" - } - }, - { - "sortorder": "5", - "color": "FC6EA3", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Firefox_browser]" - } - }, - { - "sortorder": "6", - "color": "6C59DC", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Nextcloud_Talk_Android]" - } - }, - { - "sortorder": "7", - "color": "AC8C14", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Nextcloud_Talk_iOS]" - } - }, - { - "sortorder": "8", - "color": "611F27", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud by RCA Systems", - "key": "apache2_user_agent_metric[Safari_browser]" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/nextcloud-zabbix-template.json b/zabbix-templates/nextcloud-zabbix-template.json index f2a18da..8d3de6d 100644 --- a/zabbix-templates/nextcloud-zabbix-template.json +++ b/zabbix-templates/nextcloud-zabbix-template.json @@ -109,7 +109,7 @@ }, { "uuid": "8bfc17be6a414c5ca715e46ebca038f8", - "name": "Active Users (Last Hour)", + "name": "Number of Users - Active in Last Hour", "type": "ZABBIX_ACTIVE", "key": "nc_metric[ocs.data.activeUsers.last1hour]", "delay": "1h", @@ -117,7 +117,7 @@ }, { "uuid": "280c9c2ea30f4f97b1167e7d07cb7c0f", - "name": "Active Users (Last 5 Minutes)", + "name": "Number of Users - Active in Last 5 Minutes", "type": "ZABBIX_ACTIVE", "key": "nc_metric[ocs.data.activeUsers.last5minutes]", "delay": "5m", @@ -125,7 +125,7 @@ }, { "uuid": "cae212b94b404cb1b816825839a6643e", - "name": "Active Users (Last 24 Hours)", + "name": "Number of Users - Active in Last 24 Hours", "type": "ZABBIX_ACTIVE", "key": "nc_metric[ocs.data.activeUsers.last24hours]", "delay": "1d", @@ -264,18 +264,48 @@ "description": "Database Version" }, { - "uuid": "93f98339a7004028a3bbc4dff71e4e0e", - "name": "Data Directory Size", + "uuid": "469923464ff240988bccddba5671b9d5", + "name": "Storage Quota (GB) - Assigned Total", "type": "ZABBIX_ACTIVE", - "key": "storage_metric[total_size]", - "delay": "10m", - "units": "bytes", - "description": "Nextcloud data directory storage size", + "key": "nc_quota_metric[total_assigned_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", "preprocessing": [ { - "type": "MULTIPLIER", + "type": "JSONPATH", "parameters": [ - "1024" + "$.total_assigned_quota_gb" + ] + } + ] + }, + { + "uuid": "d15f720b1d1e49cbaaa8220f094cc5ec", + "name": "Number of Users - Total", + "type": "ZABBIX_ACTIVE", + "key": "nc_quota_metric[total_number_of_users]", + "delay": "1h", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_number_of_users" + ] + } + ] + }, + { + "uuid": "fdcdce5456c449b5a153c07b12cd86b9", + "name": "Storage Quota (GB) - Used Total", + "type": "ZABBIX_ACTIVE", + "key": "nc_quota_metric[total_used_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_used_quota_gb" ] } ] @@ -286,8 +316,7 @@ "type": "ZABBIX_ACTIVE", "key": "storage_metric[total_size_gb]", "delay": "10m", - "trends": "0", - "value_type": "TEXT", + "value_type": "FLOAT", "description": "Nextcloud data directory storage size (in Gigabytes)" } ], @@ -357,7 +386,7 @@ { "type": "item", "name": "Total Number of Shares", - "width": "4", + "width": "3", "height": "3", "hide_header": "YES", "fields": [ @@ -372,6 +401,11 @@ "value": "0" }, { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { "type": "STRING", "name": "description", "value": "Total Number of Shares" @@ -408,12 +442,27 @@ "type": "INTEGER", "name": "show", "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" } ] }, { "type": "graph", - "name": "Database Size", + "name": "Users", "y": "3", "width": "12", "height": "5", @@ -423,16 +472,15 @@ "name": "graphid", "value": { "host": "Nextcloud", - "name": "Database size" + "name": "Users" } } ] }, { "type": "graph", - "name": "Active Users", "y": "8", - "width": "12", + "width": "5", "height": "5", "fields": [ { @@ -440,7 +488,7 @@ "name": "graphid", "value": { "host": "Nextcloud", - "name": "Active users" + "name": "User Agent - Last Natural Day" } } ] @@ -456,23 +504,7 @@ "name": "graphid", "value": { "host": "Nextcloud", - "name": "Total Storage in Data Directory" - } - } - ] - }, - { - "type": "graph", - "y": "18", - "width": "5", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "User Agent - Last Natural Day" + "name": "Number of Storage Areas" } } ] @@ -480,8 +512,8 @@ { "type": "item", "name": "Total Number of Files", - "x": "4", - "width": "4", + "x": "3", + "width": "3", "height": "3", "hide_header": "YES", "fields": [ @@ -496,9 +528,14 @@ "value": "0" }, { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { "type": "STRING", "name": "description", - "value": "Total Number of Files (including previews and folders)" + "value": "Total Number of Files\n(incl. previews and folders)" }, { "type": "INTEGER", @@ -532,6 +569,21 @@ "type": "INTEGER", "name": "show", "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" } ] }, @@ -539,7 +591,7 @@ "type": "graph", "name": "User Agent - Average per Natural Day", "x": "5", - "y": "18", + "y": "8", "width": "7", "height": "5", "fields": [ @@ -556,8 +608,8 @@ { "type": "item", "name": "Total Storage in Data Directory", - "x": "8", - "width": "4", + "x": "6", + "width": "3", "height": "3", "hide_header": "YES", "fields": [ @@ -572,9 +624,14 @@ "value": "0" }, { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { "type": "STRING", "name": "description", - "value": "Total Storage in Data Directory" + "value": "Total Storage \nin Data Directory" }, { "type": "INTEGER", @@ -610,14 +667,190 @@ "value": "4" }, { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { "type": "INTEGER", "name": "units_bold", "value": "0" }, { "type": "INTEGER", - "name": "units_show", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Assigned Storage Quota", + "x": "9", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Assigned \nStorage Quota" + }, + { + "type": "INTEGER", + "name": "desc_h_pos", + "value": "0" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_assigned_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Used Storage Quota", + "x": "12", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Used Storage Quota" + }, + { + "type": "INTEGER", + "name": "desc_h_pos", + "value": "0" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_used_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" } ] }, @@ -658,19 +891,80 @@ ] }, { - "type": "graph", - "x": "12", - "y": "13", - "width": "12", - "height": "5", + "type": "item", + "name": "Total Number of Users", + "x": "15", + "width": "3", + "height": "3", + "hide_header": "YES", "fields": [ { - "type": "GRAPH", - "name": "graphid", + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Users" + }, + { + "type": "INTEGER", + "name": "desc_h_pos", + "value": "0" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", "value": { "host": "Nextcloud", - "name": "Number of Storage Areas" + "key": "nc_quota_metric[total_number_of_users]" } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" } ] }, @@ -692,10 +986,28 @@ ] }, { + "type": "graph", + "name": "Number of Shares (by Type) - Average Value - Pie Chart", + "x": "20", + "y": "8", + "width": "4", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type) - Average Value - Pie Chart" + } + } + ] + }, + { "type": "clock", "name": "clock", - "x": "18", - "width": "6", + "x": "22", + "width": "2", "height": "3", "hide_header": "YES", "fields": [ @@ -726,26 +1038,8 @@ }, { "type": "INTEGER", - "name": "tzone_format", - "value": "1" - } - ] - }, - { - "type": "graph", - "name": "Number of Shares (by Type) - Average Value - Pie Chart", - "x": "20", - "y": "8", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Shares (by Type) - Average Value - Pie Chart" - } + "name": "time_size", + "value": "20" } ] } @@ -905,38 +1199,6 @@ ], "graphs": [ { - "uuid": "20779ff8bc3346fe8b9af74240d515d3", - "name": "Active users", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last1hour]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last24hours]" - } - } - ] - }, - { "uuid": "00e76bf39d854e09bd19bb3dea9f616f", "name": "Active users in the last 5 minutes", "graph_items": [ @@ -1217,20 +1479,6 @@ ] }, { - "uuid": "c95d504d0c43436698723d96f5c698d1", - "name": "Total Storage in Data Directory", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "storage_metric[total_size]" - } - } - ] - }, - { "uuid": "51561be9b54e4c629a461f851f7e5464", "name": "User Agent - Average per Natural Day", "yaxismax": "0", @@ -1401,6 +1649,47 @@ } } ] + }, + { + "uuid": "20779ff8bc3346fe8b9af74240d515d3", + "name": "Users", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last1hour]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last24hours]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_number_of_users]" + } + } + ] } ] }