Ad Widget

Collapse

Apache by Zabbix agent template Items failing to fetch data

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mcflurry
    Member
    • Jun 2022
    • 32

    #1

    Apache by Zabbix agent template Items failing to fetch data

    I'm using Apache by Zabbix agent template on some hosts and these next items are failing in every host:

    Apache: Bytes per second
    Preprocessing failed for: {"Connection":"close","Length":1063,"Type":"tex t/plain; charset=ISO-8859-1","Date":"Wed, 22 Mar 2...
    1. Failed: cannot extract value from json by path "$["Total kBytes"]": no data matches the specified path

    Apache: Requests per second
    Preprocessing failed for: {"Connection":"close","Length":1063,"Type":"tex t/plain; charset=ISO-8859-1","Date":"Wed, 22 Mar 2...
    1. Failed: cannot extract value from json by path "$["Total Accesses"]": no data matches the specified path

    Apache: Total bytes
    Preprocessing failed for: {"Connection":"close","Length":1063,"Type":"tex t/plain; charset=ISO-8859-1","Date":"Wed, 22 Mar 2...
    1. Failed: cannot extract value from json by path "$["Total kBytes"]": no data matches the specified path

    Apache: Total requests
    Preprocessing failed for: {"Connection":"close","Length":1063,"Type":"tex t/plain; charset=ISO-8859-1","Date":"Wed, 22 Mar 2...
    1. Failed: cannot extract value from json by path "$["Total Accesses"]": no data matches the specified path​
    I guessed i was missing something but I've checked zabbix documentation, forums and google and haven't found anything related.
  • Answer selected by Hamardaban at 22-03-2023, 16:02.
    Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    https://httpd.apache.org/docs/curren...od_status.html

    The details given are:

    The number of workers serving requests
    The number of idle workers
    The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
    A total number of accesses and byte count served (*)
    The time the server was started/restarted and the time it has been running for
    Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*)
    The current percentage CPU used by each worker and in total by all workers combined (*)
    The current hosts and requests being processed (*)

    The lines marked "(*)" are only available if ExtendedStatus is On. In version 2.3.6, loading mod_status will toggle ExtendedStatus On by default.​
    What about you?

    Show me what exactly is displayed in your status page?

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #2
      Have you read this too?

      Comment

      • mcflurry
        Member
        • Jun 2022
        • 32

        #3
        Originally posted by Hamardaban
        Yep, that's exactly what i checked.

        Comment

        • Hamardaban
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • May 2019
          • 2713

          #4
          Is Apache Satus module configured?
          Can you connect to it and get the data? Which ones?

          Comment

          • mcflurry
            Member
            • Jun 2022
            • 32

            #5
            Originally posted by Hamardaban
            Is Apache Satus module configured?
            Can you connect to it and get the data? Which ones?
            Yep, everything work except those 4 items.

            Comment

            • Hamardaban
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • May 2019
              • 2713

              #6
              https://httpd.apache.org/docs/curren...od_status.html

              The details given are:

              The number of workers serving requests
              The number of idle workers
              The status of each worker, the number of requests that worker has performed and the total number of bytes served by the worker (*)
              A total number of accesses and byte count served (*)
              The time the server was started/restarted and the time it has been running for
              Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*)
              The current percentage CPU used by each worker and in total by all workers combined (*)
              The current hosts and requests being processed (*)

              The lines marked "(*)" are only available if ExtendedStatus is On. In version 2.3.6, loading mod_status will toggle ExtendedStatus On by default.​
              What about you?

              Show me what exactly is displayed in your status page?

              Comment

              • mcflurry
                Member
                • Jun 2022
                • 32

                #7
                Originally posted by Hamardaban
                https://httpd.apache.org/docs/curren...od_status.html



                What about you?

                Show me what exactly is displayed in your status page?

                The lines marked "(*)" are only available if ExtendedStatus is On. In version 2.3.6, loading mod_status will toggle ExtendedStatus On by default.​​

                It turns out mod_status didn't toggle ExtendedStatus On.

                After enabling it, it works.

                Thanks.

                Comment

                Working...