Nagios NCPA linux network counter check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lobr1
Posts: 1
Joined: Thu Mar 24, 2022 4:26 am

Nagios NCPA linux network counter check

Post by lobr1 »

Hello,

i am wondering if ther is any possibility to do the same on Linux like this metric on windows:

Code: Select all

/windowscounters/Network Interface(*)/Bytes Received/sec
to check the counters on all NICs on a machine without needing to define every by hand.

Code: Select all

/interface/ens192/bytes_recv
with a wildcard or so?
JamesZimmerman
Posts: 10
Joined: Wed Mar 23, 2022 8:00 am

Re: Nagios NCPA linux network counter check

Post by JamesZimmerman »

Network devices, as in appliances like a Cisco firewall, in contrast to Windows/Linux hosts, usually support SNMP out of the box and that is normally suitable to monitor them adequately (perhaps in combination with SNMP traps). Also, you couldn't install an agent in most cases. There are SNMP plugins for Nagios.

Windows/Linux hosts, as pointed in some other comment, require something to provide monitoring. In Windows this can be WMI, which is built in (although it has its quirks- IIRC Microsoft's own monitoring solution didn't use WMI and used an NCPA-like agent when I looked at that). On Linux you can use ssh to invoke plugins without an agent, or other solutions like snmpd, but they also are not perfect. I'd recommend using a monitoring agent on Windows and omegleshagle Linux.
Locked