Ad Widget

Collapse

Problem with snmp (add other hosts)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fege
    Member
    • Dec 2008
    • 34

    #1

    Problem with snmp (add other hosts)

    how can I monitor other hosts using snmp?
    I have to change the configuration file snmpd.conf? how to change?
  • troffasky
    Senior Member
    • Jul 2008
    • 567

    #2
    The package with snmpd in [at least on Debian and Fedora] comes with a configurator called 'snmpconf'. It asks you questions about what aspects of the system you want to monitor with SNMP, and then creates an snmpd.conf accordingly. That would be a good place to start.

    Comment

    • fege
      Member
      • Dec 2008
      • 34

      #3
      ok, but I have to use snmpconf on the host to control, right?
      zabbix on how I going to take that particular host? Only through the ip address?

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        Originally posted by fege
        ok, but I have to use snmpconf on the host to control, right?
        Yes, you run snmpconf on the host where you intend to run snmpd. snmpd.conf is the config file for snmpd. If you're struggling with SNMP, you might find it easier to use the Zabbix agent, assuming there's a package available for the platform you want to monitor.

        zabbix on how I going to take that particular host? Only through the ip address?
        That depends on your network setup. If you can resolve the target host by name, use the hostname. If you can't, use the IP address. If you want to use the hostname but can't set up DNS, add it to /etc/hosts.

        Comment

        • fege
          Member
          • Dec 2008
          • 34

          #5
          I had also thought of using the zabbix agent, but since it is for a university stage in the company have asked me connect with snmp

          Comment

          • fege
            Member
            • Dec 2008
            • 34

            #6
            if I create an item for SysDescr.0 for the hosts must monitor their OID taken by the command snmpget works, but if I try another OID always taken with the command snmpget tells me that the OID is not supported.
            From the terminal will not be any problem.
            how can I do?

            Comment

            • troffasky
              Senior Member
              • Jul 2008
              • 567

              #7
              Have you tried the numeric OID in Zabbix? To get a numeric OID, use 'snmptranslate -On oidname'.

              Comment

              • fege
                Member
                • Dec 2008
                • 34

                #8
                I use snmpwalk-On-v 2c-c public x.x.x.x OID and take the first column
                ex.
                .1.3.6.1.2.1.1.1.0 = STRING: Linux localhost.localdomain 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:30:27 EST 2008 i686
                .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.10
                .1.3.6.1.2.1.1.3.0 = Timeticks: (229683) 0:38:16.83
                .1.3.6.1.2.1.1.4.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
                .1.3.6.1.2.1.1.5.0 = STRING: localhost.localdomain
                .1.3.6.1.2.1.1.6.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
                .1.3.6.1.2.1.1.8.0 = Timeticks: (13) 0:00:00.13
                .1.3.6.1.2.1.1.9.1.2.1 = OID: .1.3.6.1.6.3.1
                .1.3.6.1.2.1.1.9.1.2.2 = OID: .1.3.6.1.2.1.49
                .1.3.6.1.2.1.1.9.1.2.3 = OID: .1.3.6.1.2.1.4
                .1.3.6.1.2.1.1.9.1.2.4 = OID: .1.3.6.1.2.1.50
                .1.3.6.1.2.1.1.9.1.2.5 = OID: .1.3.6.1.6.3.16.2.2.1
                .1.3.6.1.2.1.1.9.1.2.6 = OID: .1.3.6.1.6.3.10.3.1.1
                .1.3.6.1.2.1.1.9.1.2.7 = OID: .1.3.6.1.6.3.11.3.1.1
                .1.3.6.1.2.1.1.9.1.2.8 = OID: .1.3.6.1.6.3.15.2.1.1
                .1.3.6.1.2.1.1.9.1.3.1 = STRING: The MIB module for SNMPv2 entities
                .1.3.6.1.2.1.1.9.1.3.2 = STRING: The MIB module for managing TCP implementations
                .1.3.6.1.2.1.1.9.1.3.3 = STRING: The MIB module for managing IP and ICMP implementations
                .1.3.6.1.2.1.1.9.1.3.4 = STRING: The MIB module for managing UDP implementations
                .1.3.6.1.2.1.1.9.1.3.5 = STRING: View-based Access Control Model for SNMP.
                .1.3.6.1.2.1.1.9.1.3.6 = STRING: The SNMP Management Architecture MIB.
                .1.3.6.1.2.1.1.9.1.3.7 = STRING: The MIB for Message Processing and Dispatching.
                .1.3.6.1.2.1.1.9.1.3.8 = STRING: The management information definitions for the SNMP User-based Security Model.
                .1.3.6.1.2.1.1.9.1.4.1 = Timeticks: (10) 0:00:00.10
                .1.3.6.1.2.1.1.9.1.4.2 = Timeticks: (10) 0:00:00.10
                .1.3.6.1.2.1.1.9.1.4.3 = Timeticks: (10) 0:00:00.10
                .1.3.6.1.2.1.1.9.1.4.4 = Timeticks: (10) 0:00:00.10
                .1.3.6.1.2.1.1.9.1.4.5 = Timeticks: (10) 0:00:00.10
                .1.3.6.1.2.1.1.9.1.4.6 = Timeticks: (13) 0:00:00.13
                .1.3.6.1.2.1.1.9.1.4.7 = Timeticks: (13) 0:00:00.13
                .1.3.6.1.2.1.1.9.1.4.8 = Timeticks: (13) 0:00:00.13
                .1.3.6.1.2.1.25.1.1.0 = Timeticks: (521656) 1:26:56.56
                .1.3.6.1.2.1.25.1.1.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

                and for .1.3.6.1.2.1.1.1.0 ther aren't problem but for .1.3.6.1.2.1.1.2.0 zabbix tell me OID [.1.3.6.1.2.1.1.2.0] value has unknow type [6]

                Comment

                • troffasky
                  Senior Member
                  • Jul 2008
                  • 567

                  #9
                  You need to configure the 'Type of information' field on the Zabbix item to match what type of data you'll expect to get from the host, eg SysDescr would be 'Text'.

                  Comment

                  • fege
                    Member
                    • Dec 2008
                    • 34

                    #10
                    I tried with all types of data, the error code 6 is noAcces

                    Comment

                    Working...