Ad Widget

Collapse

Zabbix as Capacity Planning monitoring tool

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hemh
    Member
    • Apr 2020
    • 42

    #1

    Zabbix as Capacity Planning monitoring tool

    Hi forum,

    I wanted to share with you a Template I made up to use our Zabbix as Capacity Planning monitoring tool.
    I not an expert so it took me a while, I even gave the idea for years until I proggressed to a point where I am abble to devellop my own template to do so.
    So this template actually works only with HPE 5130 or 5140, 24 and 48 ports ,stacked or not (IRF), but could be easily tunable for Cisco, Huawei or others.

    The template contain 2 discovery rules:

    First one got an item prototype that extract From OID:
    PHP Code:
    ({#ENT_HW},1.3.6.1.2.1.47.1.1.1.1.2) 
    value '48' or '24' from index "HPE 5140 48G PoE+ 4SFP+ EI Sw JL824A Software Version 7.1.070" (example) for each board found with the help of a Javascript (Thanks ChatGPT!)-->board.net.if.nbr

    Second one's item prototype collect all
    PHP Code:
    (({#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8) 
    indexes vith value 1 (UP) -->net.if.up

    Then 3 calculated items do the work:

    1 - sum up all boards ports number
    PHP Code:
    sum(last_foreach(//board.net.if.nbr[*])) 
    -->sw.net.if.total

    2 - sum up all up ports:
    PHP Code:
    sum(last_foreach(//net.if.up[*])) 
    -->sw.net.up.total

    3 - do the math to get the percentage:
    PHP Code:
    round(100*last(//sw.net.up.total)/last(//sw.net.if.total),0) 
    -->sw.capa.pl.utilization


    Cool thing to represent the datas: Top host widget
    :Click image for larger version  Name:	Capture.jpg Views:	0 Size:	25.9 KB ID:	480080

    YAML file: https://jumpshare.com/s/BnlBc2fQDzd1cMnJ2kwH

    Thanks for reading, any comment welcomed
    Last edited by hemh; 05-03-2024, 15:01.
  • hemh
    Member
    • Apr 2020
    • 42

    #2
    Here an updated version of my Capacity Planning template I tuned a bit.
    This template get datas every 2 hors so impact is unsignificative on Zabbix performances.
    Got about 250 HP/Aruba/HPE switches and it helps me goood to know my capacity when time comes to Capex.

    Link to YAML file: https://jumpshare.com/s/4Yvk3aZFt17Wwkyy7AYD

    My park is composed of:

    HP 2920-24G
    Aruba 2530-8G
    Aruba 2930F-12G
    HPE 5130-48G
    HPE 5120 8G
    HPE 5130-24G
    HPE 5130-48G
    HPE 5140-24G
    HPE 5140 48G

    Here is how I made my dashboard:

    Click image for larger version

Name:	Untitled.png
Views:	1413
Size:	83.2 KB
ID:	480423

    Comment

    • BenF
      Junior Member
      • Apr 2024
      • 1

      #3
      Hi hemh,

      This is awesome!! Thanks for linking this thread from your others. Can you relink your template? Your links aren't working any more. Thanks for sharing this info!

      Comment

      • hemh
        Member
        • Apr 2020
        • 42

        #4
        Hi BenF, happy you like my temlate sorry for the late answer, I was abroad...Here it is: https://mega.nz/file/LYEmma7S#ff4gqM...nCEwJJpkLXGIaQ

        Any comments welcomed

        Comment


        • james.harris
          james.harris commented
          Editing a comment
          is there insctructions how to implenment the template ?
      • sancho
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2015
        • 295

        #5
        Hi hemh

        Thank you very much for sharing, great job!

        Comment

        Working...