Would someone be able to help me out with getting the monitoring to automatically select all hard drives?
I have used the script CRUD.AddWMINode.ps1 to add the node into Solarwinds and been able to add a custom property but it is only monitoring the CPU & Memory.
How can I enable the monitoring for the following items?
I have the following script to add the pollers but this only works if the disks have been ticked in the above window?
#get volume id of the volumes added to the node
$Node = Get-SwisData $swis "Select nodeid From Orion.Nodes Where Caption = '$SystemName'"
$VolumeId = Get-SwisData $swis "SELECT volumeID FROM Orion.volumes where NodeID = '$Node'"
#add pollers to the volumes
foreach ($volume in $VolumeId) {
$poller = @{
NetObject="V:"+$volume;
NetObjectType="V";
NetObjectID=$volume;
}
$poller["PollerType"]="V.Statistics.WMI.Windows";
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
}