Ad Widget

Collapse

SNMP Monitoring an Astaro Firewall (v7)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danny
    Junior Member
    • May 2009
    • 4

    #1

    SNMP Monitoring an Astaro Firewall (v7)

    Hi,

    I tried monitoring an Astaro firewall over SNMP.
    Basically I want to monitor CPU, RAM and Swap.

    When I executed 'snmpwalk -v2 -c trapname hostname > results.txt' I got a lot of SNMP-names.
    One of the names is 'hrMemorySize.0' whitch has got the integer value of '1036344 KBytes' - the Astaro has got 1GB RAM so the value is true.

    Then I defined an element in Zabbix with the snmp-key 'hrMemorySize.0'. Zabbix output of that value is: 3,44K.

    After that I defined an element in Zabbix with the snmp-key 'UCD-SNMP-MIB::memTotalReal.0' - Zabbix output of that value is: 3858735822.

    Did anyone tried to monitor an Astaro or got a klue why the output values are this strange?

    I tried for hours to get the value '1036344'....

    Thanks in advance,
    Danny
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    show full item configuration, especially units & multiplier used
    Zabbix 3.0 Network Monitoring book

    Comment

    • Danny
      Junior Member
      • May 2009
      • 4

      #3
      Here is the Item Config:




      It's very strange that the memory value is increasing - when I use 'snmpget -v2c -c scs 172.31.8.1 HOST-RESOURCES-MIB::hrMemorySize.0' I always get a value of HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 1036344 KBytes.

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        You're polling the ifInOctets on the first interface, hence the continually incrementing value. Change the SNMP OID field.

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          yeah, what he said
          for the record, 'key' for snmp items does nothing, it's just something you can reference in triggers. snmp oid is the important value, showing what entry from the mib to retrieve
          Zabbix 3.0 Network Monitoring book

          Comment

          • troffasky
            Senior Member
            • Jul 2008
            • 567

            #6
            The key field should be hidden and just made equal to the OID field, accessible via an 'Advanced...' screen or similar.

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              well... it would increase trigger length considerably, and readability migh decrease.
              though i like the idea about it being set to oid by default, and still accessibly with some control to enter custom key.
              Zabbix 3.0 Network Monitoring book

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 567

                #8
                For you, perhaps! Every time I create an object to monitor, I just paste the OID into the key field. It would probably be a 10 minute job to create a bit of Javascript that does it for me.

                Comment

                • Danny
                  Junior Member
                  • May 2009
                  • 4

                  #9
                  Thanks for your quick answers.
                  I'm new to snmp, so I mixed up the settings.
                  Now it works fine.

                  Comment

                  Working...