Ad Widget

Collapse

Zabbix 3.4.9 web.page.regexp output not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mysterysmith
    Junior Member
    • Jul 2016
    • 12

    #1

    Zabbix 3.4.9 web.page.regexp output not working

    Hey folks - given the following web page output:
    Code:
    # HELP python_info Python platform information
    # TYPE python_info gauge
    python_info{implementation="CPython",major="2",minor="7",patchlevel="5",version="2.7.5"} 1.0
    # HELP process_virtual_memory_bytes Virtual memory size in bytes.
    # TYPE process_virtual_memory_bytes gauge
    process_virtual_memory_bytes 2.673610752e+09
    # HELP process_resident_memory_bytes Resident memory size in bytes.
    # TYPE process_resident_memory_bytes gauge
    process_resident_memory_bytes 2.756608e+07
    # HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
    # TYPE process_start_time_seconds gauge
    process_start_time_seconds 1.55481461468e+09
    # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
    # TYPE process_cpu_seconds_total counter
    process_cpu_seconds_total 73.61
    # HELP process_open_fds Number of open file descriptors.
    # TYPE process_open_fds gauge
    process_open_fds 24.0
    # HELP process_max_fds Maximum number of open file descriptors.
    # TYPE process_max_fds gauge
    process_max_fds 65536.0
    # HELP archiving_state_info Current State of the Archiver
    # TYPE archiving_state_info gauge
    archiving_state_info{arch_state="waiting"} 1.0
    # HELP number_of_files_not_found Number of failures due to files not being found
    # TYPE number_of_files_not_found gauge
    number_of_files_not_found 0.0
    # HELP number_of_failures Number of failures during migration
    # TYPE number_of_failures gauge
    number_of_failures 0.0
    # HELP files_migrated Number of files that have been migrated
    # TYPE files_migrated gauge
    files_migrated 0.0
    # HELP fill_level Fill level of origin pool
    # TYPE fill_level gauge
    fill_level 0.0
    # HELP migration_list_length Length of migration file list
    # TYPE migration_list_length gauge
    migration_list_length 0.0
    # HELP archiver_threads Number of threads currently archiving
    # TYPE archiver_threads gauge
    archiver_threads 0.0
    I have the following item:
    Code:
    web.page.regexp[0.0.0.0,'metrics',8001,'^archiver_threads\s(.*)',10000,'\1']
    And get the following output from zabbix_agentd:
    Code:
    [root@node1 ~]# zabbix_agentd -t web.page.regexp[0.0.0.0,'metrics',8001,'^archiver_threads\s(.*)',10000,'\1']
    web.page.regexp[0.0.0.0,metrics,8001,^archiver_threads\s(.*),10000,\1] [s|0.0]
    However the output isn't being returned to the item when monitored via the agent. Any thoughts on where I'm going wrong?
    Last edited by mysterysmith; 10-04-2019, 14:46.
  • mysterysmith
    Junior Member
    • Jul 2016
    • 12

    #2
    BUMP - This seems like it should be pretty straight forward.

    Comment

    • brunohl
      Senior Member
      Zabbix Certified Specialist
      • Mar 2019
      • 215

      #3
      Maybe special chars?
      Could you post a screenshot of your item config?

      Comment

      • mysterysmith
        Junior Member
        • Jul 2016
        • 12

        #4
        Here's what I got...
        Attached Files

        Comment

        • nneka
          Junior Member
          • Jun 2011
          • 9

          #5
          Hi
          have to try to change the Type of information , flot to string or text ?
          iim not sure float is compactible with web.page..key

          Comment

          • mysterysmith
            Junior Member
            • Jul 2016
            • 12

            #6
            When changing it from "Numeric (float)" to "Text" the item goes from unsupported to working but still doesn't return any data

            Comment

            Working...