Here is a script that was posted by a user here a while back that does about what you are looking for it seems just make sure you set your directory path properly at the top of the script about line 8.
local h_resp,rc = nimbus.request("hub", "gethubs")
for h_row,h_entry in pairs (h_resp.hublist) do
local r_resp,rc = nimbus.request(h_entry.addr, "getrobots")
for r_row, r_entry in pairs (r_resp.robotlist) do
args = pds.create()
pds.putString (args,"name","cdm")
cfg,rc = nimbus.request ( r_entry.addr,"probe_config_get",args)
dir= "E://ProbeThresholds//cdm//"
file = r_entry.name..".txt"
io.output(dir..file)
io.write("<",r_entry.name,">")
print("Robot: ", r_entry.name)
cpu_error = cfg["/cpu/alarm/error"]
if cpu_error ~= nil and cpu_error.active == "yes" then
io.write("\n\tCPU Error=",cpu_error.threshold)
print("CPU Error=",cpu_error.threshold)
end
cpu_warning = cfg["/cpu/alarm/warning"]
if cpu_warning ~= nil and cpu_warning.active == "yes" then
io.write("\n\tCPU Warning=",cpu_warning.threshold)
print("CPU Warning=",cpu_warning.threshold)
end
cpu_multi_max_error = cfg["/cpu/alarm/multi_max_error"]
if cpu_multi_max_error ~= nil and cpu_multi_max_error.active == "yes" then
io.write("\n\tCPU Multi Max Error=",cpu_multi_max_error.threshold)
print("CPU Multi Max Error=",cpu_multi_max_error.threshold)
end
cpu_multi_diff_error = cfg["/cpu/alarm/multi_diff_error"]
if cpu_multi_diff_error ~= nil and cpu_multi_diff_error.active == "yes" then
io.write("\n\tCPU Multi Diff Error=",cpu_multi_diff_error.threshold)
print("CPU Multi Diff Error=",cpu_multi_diff_error.threshold)
end
cpu_specific_proc_q_len = cfg["/cpu/specific/proc_q_len"]
if cpu_specific_proc_q_len ~= nil and cpu_specific_proc_q_len.active == "yes" then
io.write("\n\tCPU Pro Queue Len=",cpu_specific_proc_q_len.threshold)
print("CPU Pro Queue Len=",cpu_specific_proc_q_len.threshold)
end
pagefile_error = cfg["/memory/alarm/pagefile error"]
if pagefile_error ~= nil and pagefile_error.active == "yes" then
io.write("\n\tPagefile Error=",pagefile_error.threshold)
print("Pagefile Error=",pagefile_error.threshold)
end
pagefile_warning = cfg["/memory/alarm/pagefile warning"]
if pagefile_warning ~= nil and pagefile_warning.active == "yes" then
io.write("\n\tPagefile Warning=",pagefile_warning.threshold)
print("Pagefile Warning=",pagefile_warning.threshold)
end
physical_error = cfg["/memory/alarm/physical error"]
if physical_error ~= nil and physical_error.active == "yes" then
io.write("\n\tPhysical Error=",physical_error.threshold)
print("Physical Error=",physical_error.threshold)
end
physical_warning = cfg["/memory/alarm/physical warning"]
if physical_warning ~= nil and physical_warning.active == "yes" then
io.write("\n\tPhysical Warning=",physical_warning.threshold)
print("Physical Warning=",physical_warning.threshold)
end
swap_error = cfg["/memory/alarm/swap error"]
if swap_error ~= nil and swap_error.active == "yes" then
io.write("\n\tSwap Error=",swap_error.threshold)
print("Swap Error=",swap_error.threshold)
end
swap_warning = cfg["/memory/alarm/swap warning"]
if swap_warning ~= nil and swap_warning.active == "yes" then
io.write("\n\tSwap Warning=",swap_warning.threshold)
print("Swap Warning=",swap_warning.threshold)
end
paging_error = cfg["/memory/alarm/paging error"]
if paging_error ~= nil and paging_error.active == "yes" then
io.write("\n\tPaging Error=",paging_error.threshold)
print("Paging Error=",paging_error.threshold)
end
paging_warning = cfg["/memory/alarm/paging warning"]
if paging_warning ~= nil and paging_warning.active == "yes" then
io.write("\n\tPaging Warning=",paging_warning.threshold)
print("Paging Warning=",paging_warning.threshold)
end
local filesystems = {}
for section,conf in pairs(cfg) do
local fs = string.match(section, "^/disk/alarm/fixed/([^/]+)$")
if fs ~= nil then
table.insert(filesystems, fs)
end
end
table.sort(filesystems)
for fs,x in pairs(filesystems) do
-- Filesystem names on Unix have the / replaced with # in the config
local fs_name = string.gsub(x, "#", "/")
disk_active = cfg["/disk/alarm/fixed/"..x..""]
if disk_active.active == "yes" then
print("Disk Active ",fs_name)
disk_alarm_fixed_error = cfg["/disk/alarm/fixed/"..x.."/error"]
if disk_alarm_fixed_error ~= nil and disk_alarm_fixed_error.active == "yes" then
io.write("\n\tDisk Alarm Fixed Error on ",fs_name,"=",disk_alarm_fixed_error.threshold)
print("Disk Alarm Fixed Error on ",fs_name,"=",disk_alarm_fixed_error.threshold)
end
disk_alarm_fixed_warning = cfg["/disk/alarm/fixed/"..x.."/warning"]
if disk_alarm_fixed_warning ~= nil and disk_alarm_fixed_warning.active == "yes" then
io.write("\n\tDisk Alarm Fixed Warning on ",fs_name,"=",disk_alarm_fixed_warning.threshold)
print("Disk Alarm Fixed Warning on ",fs_name,"=",disk_alarm_fixed_warning.threshold)
end
disk_alarm_fixed_inode_error = cfg["/disk/alarm/fixed/"..x.."/inode_error"]
if disk_alarm_fixed_inode_error ~= nil and disk_alarm_fixed_inode_error.active == "yes" then
io.write("\n\tDisk Alarm Fixed Inode Error on ",fs_name,"=",disk_alarm_fixed_inode_error.threshold)
print("Disk Alarm Fixed Inode Error on ",fs_name,"=",disk_alarm_fixed_inode_error.threshold)
end
disk_alarm_fixed_inode_warning = cfg["/disk/alarm/fixed/"..x.."/inode_warning"]
if disk_alarm_fixed_inode_warning ~= nil and disk_alarm_fixed_inode_warning.active == "yes" then
io.write("\n\tDisk Alarm Fixed Inode Warning on ",fs_name,"=",disk_alarm_fixed_inode_warning.threshold)
print("Disk Alarm Fixed Inode Warning on ",fs_name,"=",disk_alarm_fixed_inode_warning.threshold)
end
disk_alarm_fixed_delta_error = cfg["/disk/alarm/fixed/"..x.."/delta_error"]
if disk_alarm_fixed_delta_error ~= nil and disk_alarm_fixed_delta_error.active == "yes" then
io.write("\n\tDisk Alarm Fixed Delta Error on ",fs_name,"=",disk_alarm_fixed_delta_error.threshold)
print("Disk Alarm Fixed Delta Error on ",fs_name,"=",disk_alarm_fixed_delta_error.threshold)
end
disk_alarm_fixed_delta_warning = cfg["/disk/alarm/fixed/"..x.."/delta_warning"]
if disk_alarm_fixed_delta_warning ~= nil and disk_alarm_fixed_delta_warning.active == "yes" then
io.write("\n\tDisk Alarm Fixed Delta Warning on ",fs_name,"=",disk_alarm_fixed_delta_warning.threshold)
print("Disk Alarm Fixed Delta Warning on ",fs_name,"=",disk_alarm_fixed_delta_warning.threshold)
end
else
print ("Disk not Active ",fs_name)
end
end
disk_fixed_default_error = cfg["/disk/fixed_default/error"]
if disk_fixed_default_error ~= nil and disk_fixed_default_error.active == "yes" then
io.write("\n\tDisk Fixed Default Error=",disk_fixed_default_error.threshold)
print("Disk Fixed Default Error=",disk_fixed_default_error.threshold)
end
disk_fixed_default_warning = cfg["/disk/fixed_default/warning"]
if disk_fixed_default_warning ~= nil and disk_fixed_default_warning.active == "yes" then
io.write("\n\tDisk Fixed Default Warning=",disk_fixed_default_warning.threshold)
print("Disk Fixed Default Warning=",disk_fixed_default_warning.threshold)
end
disk_fixed_default_inode_error = cfg["/disk/fixed_default/inode_error"]
if disk_fixed_default_inode_error ~= nil and disk_fixed_default_inode_error.active == "yes" then
io.write("\n\tDisk Fixed Default Inode Error=",disk_fixed_default_inode_error.threshold)
print("Disk Fixed Default Inode Error=",disk_fixed_default_inode_error.threshold)
end
disk_fixed_default_inode_warning = cfg["/disk/fixed_default/inode_warning"]
if disk_fixed_default_inode_warning ~= nil and disk_fixed_default_inode_warning.active == "yes" then
io.write("\n\tDisk Fixed Default Inode Warning=",disk_fixed_default_inode_warning.threshold)
print("Disk Fixed Default Inode Warning=",disk_fixed_default_inode_warning.threshold)
end
disk_fixed_default_delta_error = cfg["/disk/fixed_default/delta_error"]
if disk_fixed_default_delta_error ~= nil and disk_fixed_default_delta_error.active == "yes" then
io.write("\n\tDisk Fixed Default Delta Error=",disk_fixed_default_delta_error.threshold)
print("Disk Fixed Default Delta Error=",disk_fixed_default_delta_error.threshold)
end
disk_fixed_default_delta_warning = cfg["/disk/fixed_default/delta_warning"]
if disk_fixed_default_delta_warning ~= nil and disk_fixed_default_delta_warning.active == "yes" then
io.write("\n\tDisk Fixed Default Delta Warning=",disk_fixed_default_delta_warning.threshold)
print("Disk Fixed Default Delta Warning=",disk_fixed_default_delta_warning.threshold)
end
print("\n")
io.write("\n</",r_entry.name,">\n")
end
end