NetXMS Support Forum

English Support => General Support => Topic started by: Hanfelt on August 23, 2022, 11:05:15 AM

Title: Tip: Proxmox zpool status
Post by: Hanfelt on August 23, 2022, 11:05:15 AM
In agent configuration on the node add this:

[ExternalTable/ZpoolStatus]
Command = zpool status | tr -s ' ' | sed '1,5d' | sed 's/^[ \t]*//;s/[ \t]*$//' | sed 's/ /|/g' |  sed 'N;$!P;$!D;$d'
Separator = |
InstanceColumns = Index
Description = ZpoolStatus
PollingInterval = 320

Do a restart agent and then a config poll.

After that you should be able to go to Data Collection Configuration on that node and add a new Table.
Title: Re: Tip: Proxmox zpool status
Post by: Alex Kirhenshtein on August 25, 2022, 10:14:41 AM
thanks