Ad Widget

Collapse

configuration.import not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mysterysmith
    Junior Member
    • Jul 2016
    • 12

    #1

    configuration.import not working

    I have the following serialized XML that I'm attempting to upload via the API:

    Code:
    <zabbix_export><version>2.0</version><date>2013-02-25T18:09:01Z</date><groups><group><name>Templates</name></group></groups><templates><template><template>Templace_Ceph_Cluster</template><name>Ceph Cluster</name><groups><group><name>Templates</name></group></groups><applications><application><name>Ceph Cluster</name></application></applications><items><item><name>Ceph Cluster health</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.health</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_contextname/><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authprotocol>0</snmpv3_authprotocol><snmpv3_authpassphrase/><snmpv3_privprotocol>0</snmpv3_privprotocol><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>HEALTH_OK: 1
    HEALTH_WARN: 2
    HEALTH_ERR: 3
    other status 255</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/><logtimefmt/></item><item><name>Ceph active MON</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.mon</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph Operation</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.ops</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>op/s</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph OSD count</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.count</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_contextname/><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authprotocol>0</snmpv3_authprotocol><snmpv3_authpassphrase/><snmpv3_privprotocol>0</snmpv3_privprotocol><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/><logtimefmt/></item><item><name>Ceph OSD in %</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.osd_in</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>0</value_type><allowed_hosts/><units>%</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph OSD up %</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.osd_up</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>0</value_type><allowed_hosts/><units>%</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG active</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.active</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph will process requests to the placement group.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG backfill</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.backfill</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is scanning and synchronizing the entire contents of a placement group instead of inferring what contents need to be synchronized from the logs of recent operations. Backfill is a special case of recovery.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG clean</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.clean</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph replicated all objects in the placement group the correct number of times.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG creating</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.creating</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is still creating the placement group.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG degraded</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.degraded</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph has not replicated some objects in the placement group the correct number of times yet.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG degraded %</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.degraded_percent</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>0</value_type><allowed_hosts/><units>%</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph has not replicated some objects in the placement group the correct number of times yet.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG down</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.down</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>A replica with necessary data is down, so the placement group is offline.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG incomplete</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.incomplete</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph detects that a placement group is missing a necessary period of history from its log. If you see this state, report a bug, and try to start any failed OSDs that may contain the needed information.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG inconsistent</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.inconsistent</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph detects inconsistencies in the one or more replicas of an object in the placement group (e.g. objects are the wrong size, objects are missing from one replica after recovery finished, etc.).</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG peering</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.peering</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>The placement group is undergoing the peering process</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG recovering</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.recovering</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is migrating/synchronizing objects and their replicas.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG remapped</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.remapped</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>The placement group is temporarily mapped to a different set of OSDs from what CRUSH specified.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG repair</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.repair</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is checking the placement group and repairing any inconsistencies it finds (if possible).</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG replay</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.replay</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>The placement group is waiting for clients to replay operations after an OSD crashed.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG scrubbing</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.scrubbing</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is checking the placement group for inconsistencies.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG splitting</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.splitting</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph is splitting the placment group into multiple placement groups. (functional?)</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG stale</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.stale</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>The placement group is in an unknown state - the monitors have not received an update for it since the placement group mapping changed.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG total</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.pgtotal</key><delay>300</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>Ceph total placement group number.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph PG wait-backfill</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.waitBackfill</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units/><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description>The placement group is waiting in line to start backfill.</description><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph rados free space</name><type>0</type><snmp_community/><multiplier>1</multiplier><snmp_oid/><key>ceph.rados_free</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>B</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1024</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph rados total space</name><type>0</type><snmp_community/><multiplier>1</multiplier><snmp_oid/><key>ceph.rados_total</key><delay>300</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>B</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1024</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph rados used space</name><type>0</type><snmp_community/><multiplier>1</multiplier><snmp_oid/><key>ceph.rados_used</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>B</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1024</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph Write Speed</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.wrbps</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>B/s</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item><item><name>Ceph Read Speed</name><type>0</type><snmp_community/><multiplier>0</multiplier><snmp_oid/><key>ceph.rdbps</key><delay>30</delay><history>90</history><trends>365</trends><status>0</status><value_type>3</value_type><allowed_hosts/><units>B/s</units><delta>0</delta><snmpv3_securityname/><snmpv3_securitylevel>0</snmpv3_securitylevel><snmpv3_authpassphrase/><snmpv3_privpassphrase/><formula>1</formula><delay_flex/><params/><ipmi_sensor/><data_type>0</data_type><authtype>0</authtype><username/><password/><publickey/><privatekey/><port/><description/><inventory_link>0</inventory_link><applications><application><name>Ceph Cluster</name></application></applications><valuemap/></item></items><discovery_rules/><macros/><templates/><screens/></template></templates><triggers><trigger><expression>{Templace_Ceph_Cluster:ceph.degraded.last(0)}&gt;0</expression><name>Ceph cluster has degraded PGs</name><url/><status>0</status><priority>2</priority><description>Ceph has not replicated some objects in the placement group the correct number of times yet.</description><type>0</type><dependencies/></trigger><trigger><expression>{Templace_Ceph_Cluster:ceph.down.last(0)}&gt;0</expression><name>Ceph cluster has down PGs</name><url/><status>0</status><priority>3</priority><description>At least a replica with necessary data is down, so the placement group is offline.</description><type>0</type><dependencies/></trigger></triggers><graphs><graph><name>Ceph cluster storage</name><width>500</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>0</show_work_period><show_triggers>0</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>1</drawtype><color>00EE00</color><yaxisside>0</yaxisside><calc_fnc>1</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.rados_total</key></item></graph_item><graph_item><sortorder>1</sortorder><drawtype>1</drawtype><color>EE0000</color><yaxisside>0</yaxisside><calc_fnc>4</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.rados_used</key></item></graph_item></graph_items></graph><graph><name>Ceph Load</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>1</sortorder><drawtype>1</drawtype><color>C80000</color><yaxisside>1</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.ops</key></item></graph_item><graph_item><sortorder>0</sortorder><drawtype>0</drawtype><color>00C800</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.wrbps</key></item></graph_item><graph_item><sortorder>0</sortorder><drawtype>0</drawtype><color>0000C8</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.rdbps</key></item></graph_item></graph_items></graph><graph><name>Ceph space repartition</name><width>500</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>0.0000</yaxismax><show_work_period>0</show_work_period><show_triggers>0</show_triggers><type>2</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>0</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>0</drawtype><color>00EE00</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.rados_free</key></item></graph_item><graph_item><sortorder>1</sortorder><drawtype>0</drawtype><color>EE0000</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.rados_used</key></item></graph_item></graph_items></graph><graph><name>Degraded %</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>5</drawtype><color>CC0000</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.degraded_percent</key></item></graph_item></graph_items></graph><graph><name>Moving PGs</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>0</drawtype><color>C80000</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.recovering</key></item></graph_item><graph_item><sortorder>1</sortorder><drawtype>0</drawtype><color>00C800</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.remapped</key></item></graph_item><graph_item><sortorder>2</sortorder><drawtype>0</drawtype><color>0000C8</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.peering</key></item></graph_item></graph_items></graph><graph><name>OSDs</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>1</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>5</drawtype><color>00EE00</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.osd_up</key></item></graph_item><graph_item><sortorder>1</sortorder><drawtype>2</drawtype><color>CC0000</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.osd_in</key></item></graph_item></graph_items></graph><graph><name>PGS</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>1</sortorder><drawtype>2</drawtype><color>00EE00</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.clean</key></item></graph_item><graph_item><sortorder>0</sortorder><drawtype>5</drawtype><color>0000EE</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.active</key></item></graph_item></graph_items></graph><graph><name>Problem PGs</name><width>900</width><height>200</height><yaxismin>0.0000</yaxismin><yaxismax>100.0000</yaxismax><show_work_period>1</show_work_period><show_triggers>1</show_triggers><type>0</type><show_legend>1</show_legend><show_3d>0</show_3d><percent_left>0.0000</percent_left><percent_right>0.0000</percent_right><ymin_type_1>1</ymin_type_1><ymax_type_1>0</ymax_type_1><ymin_item_1>0</ymin_item_1><ymax_item_1>0</ymax_item_1><graph_items><graph_item><sortorder>0</sortorder><drawtype>0</drawtype><color>00EE00</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.degraded</key></item></graph_item><graph_item><sortorder>3</sortorder><drawtype>0</drawtype><color>EE0000</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.down</key></item></graph_item><graph_item><sortorder>1</sortorder><drawtype>0</drawtype><color>0000C8</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.incomplete</key></item></graph_item><graph_item><sortorder>2</sortorder><drawtype>0</drawtype><color>C800C8</color><yaxisside>0</yaxisside><calc_fnc>2</calc_fnc><type>0</type><item><host>Templace_Ceph_Cluster</host><key>ceph.inconsistent</key></item></graph_item></graph_items></graph></graphs></zabbix_export>
    The XML uploads successfully however none of the "Applications", "Items", or "Triggers" show up properly. They show up just fine if I import the non serialized version of the XML via the UI. Here's the code I'm using:

    Code:
    def uploadTemplate(url, token, xml):
    
        template_data = '{"jsonrpc" : "2.0", "method": "configuration.import", "params": {"format" : "xml", "rules" : { "templates": { "createMissing": "true", "updateExisting": "true"}}, "source": "' + xml + '"}, "auth": "' + token + '", "id": 1}'
        json_header = {'content-type': 'application/json-rpc'}
    
        try:
            xml_payload = requests.post(url,
                                          data=template_data,
                                          headers=json_header)
            print xml_payload.text
            print xml_payload.status_code
            print xml_payload.json()
            return xml_payload.json()
        except:
            print "Unexpected error: %s" % sys.exc_info()[0]
            raise
    This is the output I receive from the API:

    {u'jsonrpc': u'2.0', u'result': True, u'id': 1}

    Do I need to use a different ID or something?
Working...