Ad Widget

Collapse

Template will not import due to missing value mappings, even when manually added.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcnx
    Junior Member
    • Jan 2011
    • 19

    #1

    Template will not import due to missing value mappings, even when manually added.

    Hi all,

    trying to monitor an LSI RAID controller on Linux with this project: https://github.com/Art3mK/Zabbix-LSI-RAID-Monitoring . Opted for this project as an SNMP agent for Debian does not seem to exist.
    The project seems to be geared towards Zabbix 3 and older. They instruct to first import a value mapping xml file ( https://raw.githubusercontent.com/Ar..._valuemaps.xml ), which it seems is not possible in Zabbix 5. I tried to resolve this by defining these value mappings manually at the level of the monitored host, but while importing the template ( https://raw.githubusercontent.com/Ar...D_template.xml ) I get:

    Cannot find value map "LSI RAID BBU & LD Status" used for item prototype "BBU state on adapter:{#ADAPTER_ID}" of discovery rule "RAID discovery bbu" on "Template LSI RAID".

    How can I circumvent this? I know the value mappings XML file can be imported in a template, but I cannot import the template without the value mappings. Seems like a chicken and egg dilemma.

    Thanks!

    BC
  • bcnx
    Junior Member
    • Jan 2011
    • 19

    #2
    I think I resolved this by editing the template XML file and replaces entries like:

    <valuemap> <name>LSI RAID BBU & LD Status</name> </valuemap>

    with:

    <valuemap/>

    I can then import the template, then add the value mappings manually and next import the original template (with value mappings) so the template is updated with the value mappings.
    Importing the template with value mappings deactivated does not seem to work, not sure why.

    Cheers,

    BC
    Last edited by bcnx; 08-03-2022, 19:40.

    Comment

    Working...