I get "Sorry, the content could not be loaded." when I mouse over devices in the Web GUI that were added with a powershell script.
Please post the script. The usual cause of this is that the script is not providing a value for some properties that the website is expecting to be non-NULL.
A future release of NPM improves this situation - SWIS will automatically fill in default values for properties when you are adding nodes through the API instead of requiring the scripts to provide them.
function AddPoller($PollerType)
{
$poller["PollerType"]=$PollerType;
$pollerUri = New-SwisObject $swis -EntityType "Orion.Pollers" -Properties $poller
}
# add a node
$newNodeProps = @{
EntityType="Orion.Nodes";
IPAddress=$ip;
IPAddressGUID=[System.Guid]$ipGuid;
Caption="Node";
DynamicIP=$False;
EngineID=1;
Status=1;
UnManaged=$False;
Allow64BitCounters=$True;
SysObjectID="";
MachineType="";
VendorIcon="";
# SNMP v2 specific
ObjectSubType="SNMP";
SNMPVersion=2;
Community="public";
# polling timing (optional)
RediscoveryInterval=5; # minutes (5..525600=1 year)
PollInterval=120; # seconds (1..1200)
StatCollection=10; # minutes (1..600)
BufferNoMemThisHour=-2;
BufferNoMemToday=-2;
BufferSmMissThisHour=-2;
BufferSmMissToday=-2;
BufferMdMissThisHour=-2;
BufferMdMissToday=-2;
BufferBgMissThisHour=-2;
BufferBgMissToday=-2;
BufferLgMissThisHour=-2;
BufferLgMissToday=-2;
BufferHgMissThisHour=-2;
BufferHgMissToday=-2;
External=$False;
$newNodeUri = New-SwisObject $swis –EntityType "Orion.Nodes" –Properties $newNodeProps
$nodeProps = Get-SwisObject $swis -Uri $newNodeUri
# register specific pollers for the node
$poller = @{
NetObject="N:"+$nodeProps["NodeID"];
NetObjectType="N";
NetObjectID=$nodeProps["NodeID"];
# Details
AddPoller("N.Details.SNMP.Generic");
# Uptime
AddPoller("N.Uptime.SNMP.Generic");
# CPU
AddPoller("N.Cpu.SNMP.CiscoGen3");
# Memory
AddPoller("N.Memory.SNMP.CiscoGen3");
You must set "PercentMemoryUsed", "CPULoad", "MemoryUsed" values to "-2" or "-1" . I had problem like this.
NCM Node Details