I'm tring to create a DCI to monitor all server's network interface adaptors. I can get this to work but needs to be setup for each server. I would like the DCI to scan for all Network Adaptors (Instances) and report the Bytes or bits per sec on each. Below is what i have tried so far and I believe I am close to having this figured out but need some advice. I know how to set it up for incoming/outgoing and also the conversion to Bytes to bits but I need DCIs that can report all the interfaces and the network traffic.
1. Open the "Data Collection Configuration" for the template
2. Create a new parameter.
3. On the "General" tab. PARAMETER: Net.Interface.BytesIn64(*) DATA TYPE: Unsigned Interger 64 bit
4. On the "Instance Discovery" tab. INSTANCE DISCOVERY: Agent List. LIST NAME: Net.InterfaceList
Any help is greatly Appreciated.
Thanks! Russ
Step 3 should look like this:
3. On the "General" tab. PARAMETER: Net.Interface.BytesIn64({instance}) DATA TYPE: Unsigned Interger 64 bit
Add instance discovery script:
if ($1 ~= "^([0-9]+) .*")
{
return %(true, $1); // at this point $1 contains first matching group
}
return false;
It's required because this list return more data than interface index:
AirAlk:~() $ nxget -l 10.5.0.111 Net.InterfaceList
1 127.0.0.1/8 772 000000000000 lo
2 10.5.0.111/24 1 00163E000009 eth0
Instance discovery is performed on configuration poll.