Closed YogSottot closed 1 month ago
It seems that all is OK. You firstly got method enclosure, set it to lsi.pdsinfo item and get info. What question do you have?
What question do you have?
The question is what is causing these errors in the panel:
Preprocessing failed for: {"StorageControllers":[{"Id":0,"Model":"LSI MegaRAID 9361-8i","SerialNumber":"SV55347175","Firmwa...
1. Failed: cannot extract value from json by path "$["PhysicalDisks"]": no data matches the specified path
What question do you have?
The question is what is causing these errors in the panel:
Preprocessing failed for: {"StorageControllers":[{"Id":0,"Model":"LSI MegaRAID 9361-8i","SerialNumber":"SV55347175","Firmwa... 1. Failed: cannot extract value from json by path "$["PhysicalDisks"]": no data matches the specified path
It is OK too. This key got physical disks data when it is possible, if not - it is getting by other key
Please elaborate why it's not a error.
There are only two keys in the list to get information about Physical disks
. The keys are lsi.pdlld
and lsi.pdlld.ctl
.
Both keys give an error. So all Item prototypes
and Trigger prototypes
related to Physical disks
are not discovered.
Please elaborate why it's not a error.
There are only two keys in the list to get information about
Physical disks
. The keys arelsi.pdlld
andlsi.pdlld.ctl
.Both keys give an error. So all
Item prototypes
andTrigger prototypes
related toPhysical disks
are not discovered.
First item got error while method is not set. In you first message output of lsi.pdsinfo[storcli64, enclosure is OK and you should not get an error
First item got error while method is not set
How should it be set?
Is it related to the {$LSI_PD_METHOD}
macro?
In the template the default value of this macro is stub
.
Is it correct value?
First item got error while method is not set
How should it be set? Is it related to the
{$LSI_PD_METHOD}
macro?In the template the default value of this macro is
stub
. Is it correct value?
Yes, this macro. Did you read the instruction?
After specifying {$LSI_PD_METHOD} enclosure for the host, the error for lsi.pdlld disappeared.
I did not apply the updatehostmacro.py
script as I have only one host with such a controller. I didn't see the point and assumed that macros can be specified manually. The documentation clearly lacks information on the macros that need to be added.
Sorry for wasting your time.
After specifying {$LSI_PD_METHOD} enclosure for the host, the error for lsi.pdlld disappeared.
I did not apply the
updatehostmacro.py
script as I have only one host with such a controller. I didn't see the point and assumed that macros can be specified manually. The documentation clearly lacks information on the macros that need to be added.Sorry for wasting your time.
I forgot add about clearly set macro, it is good remark
Edited template. All macros necessary for work are included. Also renamed items. Example of new names on the screenshot.
May be useful to someone.
Installed plugin https://github.com/mykolq/zabbix_agent2_plugins/releases Installed template: https://github.com/mykolq/zabbix_lsi_template/blob/agent2_module_template/LSI_Perc_Lenovo%20agent%202%20module.json
zabbix-server 7.0.2 zabbix-agent2 7.0.2
for lsi.pdlld this in zabbix:
for lsi.pdlld.ctl
output of lsi.allinfo[storcli64]
output of lsi.pdsinfo[storcli64, enclosure]
no error in test