Add wifi and a switch on Nagios

Neslye Posted messages 109 Status Member -  
IvyAlice Posted messages 397 Status Member -
Hello,

after several searches, I cannot find an answer to my problem.
I will explain quickly, on Nagios I was able to integrate the Wi-Fi point and the switch for "PING," but I can't do it for "traffic." However, I used the same command on Centreon for the router, and everything works very well for "traffic."
Do you have any advice for my problem?

Thank you in advance.

Neslye

Configuration: Mac OS X / Safari 533.19.4

3 answers

  1. IvyAlice Posted messages 397 Status Member 32
     
    Hi,

    In principle, to measure the traffic, the switch/router needs to have SNMP, which you can enable.

    Well, SNMP only provides the number of bytes received/sent in input/output on a port, and you need to create/find the plugin that converts it into a usable value.

    If your switch only has RMON, you can still find a Perl program somewhere on the internet that will retrieve the values via the device's administration web page, but personally, I don't have a good experience with it (it caused the monitoring machine to lag, which wasn't very powerful).
    0
  2. Neslye Posted messages 109 Status Member
     
    Hello,

    thank you for your response. I actually don't know how to proceed after activating SNMP on the network devices...

    so I am still open to any advice if there is someone who can help me.

    thank you.
    0
  3. IvyAlice Posted messages 397 Status Member 32
     
    Hi,

    SNMP works on MIB and OID bases
    MIB: different databases containing OIDs (which can be given as a series of numbers like 1.2.4.12.34... or as a word like sysDescr.0)
    each OID represents 1 specific piece of information (and they vary depending on the equipment, otherwise it wouldn’t be fun)

    Normally you should be able to obtain a (very long) list of OIDs by doing something like
    snmpwalk -v 1 -c public <ipSwitch>

    -v is the version of SNMP and -c is the community (generally 'public' by default).
    ( you can grep for ifIn or ifOut which will give you the parameters related to the input and output of interfaces)

    then with your check_snmp you can do
    check_snmp -H <ipswitch> -P 2c -C <community> -o sysDescr.0

    -P is the version of SNMP and -o is the OID (that you will have chosen from the list obtained earlier).

    For example, sysDescr.0 is the description of the system on most equipment.

    afterwards I believe there’s a plugin called check_snmp_int that you can find online which calculates bandwidth based on the times and values of the OIDs

    Ivy
    0