Great analysis, thank you!
Forwarded to developers.
Forwarded to developers.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu\l+//t = GetDCIValue($node, $dci.id); // for use in script called on threshold violation
t = GetDCIValue($node, 13741); // for testing - use via Execute Script on node
//row = $event.getParameter(4); // for use in script called on threshold violation
row = t.findRowIndexByInstance("/sys"); // for testing
return t.get(row, 1);Quote from: rainerh on January 09, 2025, 05:57:21 PMconsole output:looks like awk part did not work at all. How is it specified in agent config file, could be some issue with quotes.
root@pve110:~# zpool status rpool | grep -E "raid|mirror" | awk '{print $2}'
ONLINE
root@pve110:~# zpool status datastore01 | grep -E "raid|mirror" | awk '{print $2}'
ONLINE
NetXMS output:
zpoolStateRAID(datastore01) = raidz2-0 ONLINE 0 0 0
zpoolStateRAID(rpool) = mirror-0 ONLINE 0 0 0
zpool status datastore01 | grep -E "raid|mirror" | tr -s " " | cut -d" " -f 4Another option is to have all the command in a separate .sh file and just call that. zpool_influxdb | "vdev=root/raidz-0\ " | cut -d',' -f 3 | cut -d'=' -f 2