var pgStates = []string{"creating", "activating", "active", "clean", "down", "laggy", "wait", "scrubbing", "deep",
** Copyright (C) 2001-2023 Zabbix SIA
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"git.zabbix.com/ap/plugin-support/zbxerr"
StateName string `json:"state_name"`
Count uint64 `json:"count"`
NumPgs uint64 `json:"num_pgs"`
Status string `json:"status"`
NumOsds uint64 `json:"num_osds"`
NumInOsds uint64 `json:"num_in_osds"`
NumUpOsds uint64 `json:"num_up_osds"`
NumMons uint64 `json:"num_mons"`
MinMonReleaseName string `json:"min_mon_release_name"`
OverallStatus int8 `json:"overall_status"`
NumMon uint64 `json:"num_mon"`
NumOsd uint64 `json:"num_osd"`
NumOsdIn uint64 `json:"num_osd_in"`
NumOsdUp uint64 `json:"num_osd_up"`
NumPg uint64 `json:"num_pg"`
PgStates map[string]uint64 `json:"pg_states"`
MinMonReleaseName string `json:"min_mon_release_name"`
// pgStates is a list of all possible placement group states according to the Ceph's documentation.