nic_monitor probe alert configuration for interface
search cancel

nic_monitor probe alert configuration for interface

book

Article ID: 282238

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Started monitoring network interface status with nic_monitor MCS profile

Making the interface down with the below command on the server.
 
ifdown eth1 
 
The interface does not show the IP for the interface which is made down with above command so should reflect as down.
The interface status is showing as UP(1) in above use case 
 

Environment

DX UIM 20.4 CUx

probe: nic_monitor (mcs)

OS RHEL 9.3

 

Resolution

The nic_monitor probe uses below file to get the operational status for the interface based on OS

For linux only

private final String SYS_CLASS_NET = "/sys/class/net";
This is the file from which probe is reading data


For windows it uses powershell


private final String SYS_CLASS_DEV_OPERSTATE = "/sys/class/net/{0}/operstate";
this is status
i.setStatus(status);

 

Also ifup /ifdown are deprecated linux commands

Can check with alternative newer commands for linux 

 $ ip link set <interface> down / up 

Additional Information