SNMP & Nagios

aelhaino -  
Dell_prosupport Posted messages 81 Status Member -
Hello,

I am trying to retrieve information about some machines (CPU load, traffic, memory, etc.) using SNMP. I have added new SNMP plugins that work very well on localhost and on VMs that I created myself.
My problem is that I cannot obtain information from remote servers.

Do I need to configure the snmpd on the servers for this?
Could it be due to the difference in SNMP versions?
Will I need access to these machines for it to work?

If you have any ideas, I’m all ears.

Thank you in advance and have a great day.

Configuration: Windows 7 / Internet Explorer 8.0

6 answers

  1. lolilol
     
    Hello,

    Yes, you need to install snmpd on your server (where the Nagios core is located)
    Then to check if it works, you can do an snmpwalk

    snmpwalk -v 1 -c public <yourClientMachine>

    (the first parameter is the version of SNMP used and the 2nd is the community)

    If that works, you can then try a check_snmp
    1
  2. lolilol
     
    Hello,

    maybe you need to specify an "-o <oid>" (one of the values you see appearing with your snmpwalk, but specific to each device model)
    ./check_snmp -H <yourMachine> -v 1 -C public -o sysUpTimeInstance


    Indeed, the command above run without the -o returns "no counter specified"
    1
    1. aelhaino
       
      Thank you very much, the OID (1.3.6.1.2.1.1.3.0) "WORKS very well" on localhost and with the VM I created to test all this. However, I still can't query the servers
      I'm getting this error:
      External command execution error: Timeout: No Response from xxx.xxx.xxx.xxx:161.

      My server is a Dell Inc. PowerEdge R710, could you please give me the OID to use?

      Thank you again for your help.
      0
  3. Dell_prosupport Posted messages 81 Status Member 28
     
    Hello aelhaino,

    I am Eric from Dell technical support.

    If your software supports the import of MIB files, the easiest way is to download the MIBs for the PowerEdge R710; they contain all the necessary OIDs.
    (for the R710, the MIBs are available here: http://www.dell.com/support/drivers/en/en/rc1077983/DriverDetails/DriverFileFormats?DriverId=R298948&FileId=2731117105 )

    --
    Eric, Dell France
    Your Dell server and storage support on Twitter: @DellVousAidePRO
    1
  4. aelhaino
     
    Thank you for your response lolilol.

    My VM on which I installed Nagios does indeed have SNMP, and I've made some modifications to the configuration file, as well as a second VM that I created for this test. However, I don't have control over the other servers.

    I have 3 machines to query. The first one responds well to snmpwalk and snmpget, but not to check_snmp; it returns: "no counter specified".
    Whereas the other 2 machines don't even respond to snmpwalk.

    For your information, I am using "public" as the "community".
    0
  5. aelhaino
     
    Hi Eric, thanks for your help. But I'm not using any software, I do everything via command line... (for now)

    My goal is to query 3 remote servers. I only have the IP addresses.
    I know that one of the servers is a Dell Inc. PowerEdge R710. But I don't know anything about the others. And I don't have access rights...

    I'm using Nagios with plugins like check_snmp_cpu, check_snmp_memory...

    Everything works very well when I query my VM locally or another VM for which I have rights. But I'm getting errors for the servers.

    For:
    xx.xx.xx.26 --- the check_snmp works
    xx.xx.xx.27 --- External command execution error: Timeout: No Response from xx.xx.xx.27:161

    Same for xx.xx.xx.28

    Thanks in advance
    0
  6. Dell_prosupport Posted messages 81 Status Member 28
     
    Alright.

    Just in case, try looking in the MIBs using a tool like MIB explorer (you can find some for free online).

    The MIBs contain the OIDs, so you should find what you're looking for.
    --
    Eric, Dell France
    Your Dell server and storage support on Twitter: @DellVousAidePRO
    0