Ad Widget

Collapse

New item based on snmp items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oct
    Junior Member
    • Dec 2009
    • 22

    #1

    New item based on snmp items

    Hello

    I need to monitor % of used disk space of several servers using SNMP. I created two new items, one using the hrStorageSize (.1.3.6.1.2.1.25.2.3.1.5.1) and another on using htStorageUsed (.1.3.6.1.2.1.25.2.3.1.6.1). Both MIB's are included into de host-resources mib file. My question is, if it is possible to create a 3rd item that records de following: (hrStorageUsed/hrStorageSize)*100
    This could be useful also to monitor other percentages.

    Another question i how is the best way to monitor if a node is down? I have created a Linlkdown item to monitor ifOperStatus MIB (1=up, 2=down), but if the node is disconnected I don't receive this value, so I'd like to monitor if the node is down from the Zabbix server or the zabbix proxies.

    Thanks

    Oct
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by oct
    I need to monitor % of used disk space of several servers using SNMP. I created two new items, one using the hrStorageSize (.1.3.6.1.2.1.25.2.3.1.5.1) and another on using htStorageUsed (.1.3.6.1.2.1.25.2.3.1.6.1). Both MIB's are included into de host-resources mib file. My question is, if it is possible to create a 3rd item that records de following: (hrStorageUsed/hrStorageSize)*100
    This could be useful also to monitor other percentages.
    Calculated items have been introduced in version 1.8.1.
    It seems to be exactly what you are looking for
    Check the documentation : http://www.zabbix.com/documentation/...lculated_items
    A memory leak has been found in this function (https://support.zabbix.com/browse/ZBX-2051). Be sure to use latest nightly build or wait for 1.8.2 before using it in production.

    Originally posted by oct
    Another question i how is the best way to monitor if a node is down? I have created a Linlkdown item to monitor ifOperStatus MIB (1=up, 2=down), but if the node is disconnected I don't receive this value, so I'd like to monitor if the node is down from the Zabbix server or the zabbix proxies.
    Oct
    If you don't receive anything, you can use nodata function in trigger expression to check it.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • oct
      Junior Member
      • Dec 2009
      • 22

      #3
      Originally posted by alixen
      Hi,



      Calculated items have been introduced in version 1.8.1.
      It seems to be exactly what you are looking for
      Check the documentation : http://www.zabbix.com/documentation/...lculated_items
      A memory leak has been found in this function (https://support.zabbix.com/browse/ZBX-2051). Be sure to use latest nightly build or wait for 1.8.2 before using it in production.
      It sounds promising. I'll give it a try. All the examples are refered to Zabbix agent parameters. Do you know if calculated items will work with snmp items?


      Originally posted by alixen
      If you don't receive anything, you can use nodata function in trigger expression to check it.

      Regards,
      Alixen
      I already use the nodata expression. The problem is that if I monitor a host with multiple interfaces (i.e. a router), an interface can be down but still receive data for that interface. So I created a new trigger depending of two items, the "nodata" expression OR the linkdown SNMP OID. I'm still testing this configuration.

      Also, I managed to work icmpping external check. This is a good way for what I need. The problem I found is that, on a distributed environment (one main station, one proxy), all nodes monitored by the proxy report icmmping down. It seems that external checks are made by the central monitoring station, not the proxy. Does anybody know if it should work?

      Thanks

      Oct

      Comment

      • alixen
        Senior Member
        • Apr 2006
        • 474

        #4
        Originally posted by oct
        It sounds promising. I'll give it a try. All the examples are refered to Zabbix agent parameters. Do you know if calculated items will work with snmp items?
        Yes, they work with SNMP items (I think that they work with any kind of item).
        I have just created a simple one that calculate ifInOctets+ifOutOctets on one interface:
        ifInOutOctets1 = last(ifInOctets1)+last(ifOutOctets1)
        and it works.

        Regards,
        Alixen
        http://www.alixen.fr/zabbix.html

        Comment

        • oct
          Junior Member
          • Dec 2009
          • 22

          #5
          Today I tried to upgrade to 1.8.1. I didn't find clear information on how to do that. Anyway, I downloaded the sources, compiled them and installed following the installation guide. I don't know what means "update front-end PHP files" (I'm a newbie). Am I missing something?

          I still can't create calculated items. Given a host, if I try to add a new item, I can't see the type "calculated" in the drop down list. Do I have to do some more steps?

          Thanks

          Oct

          Comment

          • oct
            Junior Member
            • Dec 2009
            • 22

            #6
            Well, I soved my issue. I found I hade to copy the frontend folder from sources to /home/zabbix/public_html. Now I'm running Zabbix 1.8.1 with working calulated items. Also, I solved the icmpping behind a proxy problem.

            Thanks for your help, Alixen

            Comment

            Working...