Ad Widget

Collapse

Monitor IBM i with Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • per.hillerstrom
    Junior Member
    • Aug 2023
    • 18

    #1

    Monitor IBM i with Zabbix

    Hi,

    So I monitor IBM i using an agent that export below information about disk space I would like to set as a graph instead.

    0CTL1141 - Ok : 74% used on a total of 95 GB for the ASP 1.|Used=71GB Total=95GB Rate=74% Evol=0%

    I just wanna look at the value named Rate=74% above and I can change this to a graph by using preprocessing as below.

    1. Right trim = Evol=0%
    2. Regular expression = Rate=.* \0
    3. Replace = Rate=
    4. Replace = %

    So far so good, but the issue appears when "Evol=0%" are changed to much from time to time (Evol=1% , Evol=5% , Evol=15% etc.) ... then my graph will be bananas so I need your help how I should set my preprocessing instead?
  • per.hillerstrom
    Junior Member
    • Aug 2023
    • 18

    #2
    Originally posted by per.hillerstrom
    Hi,

    So I monitor IBM i using an agent that export below information about disk space I would like to set as a graph instead.

    0CTL1141 - Ok : 74% used on a total of 95 GB for the ASP 1.|Used=71GB Total=95GB Rate=74% Evol=0%

    I just wanna look at the value named Rate=74% above and I can change this to a graph by using preprocessing as below.

    1. Right trim = Evol=0%
    2. Regular expression = Rate=.* \0
    3. Replace = Rate=
    4. Replace = %

    So far so good, but the issue appears when "Evol=0%" are changed to much from time to time (Evol=1% , Evol=5% , Evol=15% etc.) ... then my graph will be bananas so I need your help how I should set my preprocessing instead?


    Anyone that can help me to solve this? I have tested multiple combinations.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Why so many preprocessing steps?... all you need is one regex...
      Code:
      Rate=(.*?)%
      and set output to "\1" (without ""-s)

      Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.

      Comment

      • per.hillerstrom
        Junior Member
        • Aug 2023
        • 18

        #4
        Originally posted by cyber
        Why so many preprocessing steps?... all you need is one regex...
        Code:
        Rate=(.*?)%
        and set output to "\1" (without ""-s)

        https://regex101.com/r/OOUCy5/1
        Thank you for your response!

        I think I solved it (maybe not in the most perfect way) before I had the time to read your response. So far the graph is behaving as expected.
        Click image for larger version

Name:	image.png
Views:	230
Size:	8.2 KB
ID:	492640

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          What is the point of using regex if you are still outputting whole value? Isn't the point of it making your life easier...? q

          Comment

          Working...