Ad Widget

Collapse

Monitoring Apache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hichhiker
    Member
    • Nov 2004
    • 45

    #16
    Originally posted by marcelein
    gives me nothing back when i execute that
    That would mean you don't have mod_status configured right. Make sure your mod_status.conf you listed before is included from main conf file and that mod_status module is loaded.

    -HH

    Comment

    • marcelein
      Junior Member
      • Apr 2008
      • 21

      #17
      Code:
       21844:20080530:171355 Timeout while answering request
       21844:20080530:171355 Get value from agent failed. Error: ZBX_TCP_READ() failed [Interrupted system call]
       21844:20080530:171355 Host [server01]: first network error, wait for 15 seconds
      if i run ./apache.pl http://localhost/
      i see incoming data on my zabbix frontend / zabbix server
      if this script runs as a userparameter from the agent i got the error above in my server log
      zabbix agent log displays no errors. so it is maybe an error from the zabbix server reading the tcp stream? could that be fixed?
      the log level on both is default!
      no firewalls active.
      Last edited by marcelein; 30-05-2008, 17:36. Reason: solved, nxt error ;(

      Comment

      • otheus
        Member
        • Mar 2009
        • 53

        #18
        On the whole, I like this script very much and intend to use it for our site. However, I dislike creating (2 to 3) process(es) for every single parameter. And until the sender program supports reading values from stdin, a better solution is to create a temp file and use zabbix_sender -i with it. Further, the key names should be in square brackets so that the Item Descriptions are easier to create -- and more flexible, to reflect the admin's preferences. In addition, some parameters -- such as cpuload -- are not available on all apache versions. Finally, if the server is unavailable or there is a permissions problem, the script should fail accordingly.

        The attached scripts does just these things.
        Attached Files

        Comment

        • kees
          Junior Member
          • Apr 2009
          • 5

          #19
          Originally posted by otheus
          On the whole, I like this script very much and intend to use it for our site. However, I dislike creating (2 to 3) process(es) for every single parameter. And until the sender program supports reading values from stdin, a better solution is to create a temp file and use zabbix_sender -i with it. Further, the key names should be in square brackets so that the Item Descriptions are easier to create -- and more flexible, to reflect the admin's preferences. In addition, some parameters -- such as cpuload -- are not available on all apache versions. Finally, if the server is unavailable or there is a permissions problem, the script should fail accordingly.

          The attached scripts does just these things.
          That was also something i disliked, so i wrote my own solution in PHP for Apache Monitoring (and mysql, and lighttpd, and irc, and a md3000i etc etc, the amount of stats you want is unlimited)

          For those who are interested, i added the php files to the posts. They are offered as-is, require php 5.2+ and they work for me. The coding should be easy enough to debug.

          However, the thing i still get in my logs is:
          32100:20090420:152244 Active check [apache.busy_workers] is not supported. Disabled.
          32100:20090420:152244 Active check [apache.idle_workers] is not supported. Disabled.
          32100:20090420:152244 Active check [apache.requests] is not supported. Disabled.
          32100:20090420:152244 Active check [apache.traffic] is not supported. Disabled.
          32100:20090420:152244 Active check [apache.uptime] is not supported. Disabled.

          Is there any way to ignore/remove these messages? If i disable the item, zabbix enables it again when i upload data to the server. The only thing i can think of is put the delay on a very high time, so it checks once a day/week/year.
          Attached Files

          Comment

          • ittec
            Member
            • Mar 2008
            • 73

            #20
            No data on Graphs

            Originally posted by Hichhiker
            Active checks of apache via mod_status, triggered via a single passive check. This works for Apache 2.2 and is based on this post with slight modifications to make it work for me.

            * Uncompress zip file into ~zabbix/bin directory

            * Edit zabbix_agentd.conf to set "Hostname=" value properly and add following:

            Code:
            UserParameter=apache.all,~zabbix/bin/apache.pl http://localhost
            * Edit apache config to add something like:

            Code:
            <Location /server-status>
                SetHandler server-status
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
            #    Allow from 192.168.1.*
            </Location>
            Or something like this - make sure mod_status is enabled

            * Import the xml into zabbix server and add template to the server you are monitoring.
            -HH
            Hi

            Im trying to monitor Apache with this Perl script. I've followed all steps but there is no data on Graphs.

            On my Zabbix Frontend the logs shows:

            19765:20090515:131935 Requested [apache.all]
            19765:20090515:131935 Run remote command [/usr/local/zabbix/bin/apache.pl http://localhost] Result [1] [1]...

            But Graphs is still no data. Have I forgot something? Server status is enabled only to localhost and I can get the values from console so is ok.

            Any ideas? Thanks a lot.


            PD: Have I to put zabbix_sender.sh on crontab or something??
            PD1: Items of Apache shows are "Active"

            Comment

            • daniel_lugo
              Junior Member
              • Nov 2009
              • 14

              #21
              hi i have aproblem with monitoring hits apache2

              hi

              I have aproblem with monitoring hits apache2

              I would like apache monitoring hits when a user is reviewing this in my website that is when she enters or this review ... as I do this .... this in linux with apache2 and also in Windows Server with IIS

              how to do this?

              Comment

              • elvar
                Senior Member
                • Feb 2008
                • 226

                #22
                Originally posted by ittec
                Hi

                Im trying to monitor Apache with this Perl script. I've followed all steps but there is no data on Graphs.

                On my Zabbix Frontend the logs shows:

                19765:20090515:131935 Requested [apache.all]
                19765:20090515:131935 Run remote command [/usr/local/zabbix/bin/apache.pl http://localhost] Result [1] [1]...

                But Graphs is still no data. Have I forgot something? Server status is enabled only to localhost and I can get the values from console so is ok.

                Any ideas? Thanks a lot.


                PD: Have I to put zabbix_sender.sh on crontab or something??
                PD1: Items of Apache shows are "Active"

                If you go to Monitoring -> Latest Data are you actually receiving data for these? My server-status stuff is working fine, and the scripts don't throw any errors but I'm not getting any data back on the Zabbix Server. I'd really like to get this working.

                Comment

                • martin2002
                  Junior Member
                  • Sep 2009
                  • 5

                  #23
                  telnet.run agent error

                  Hi,

                  Env.:
                  zabbix server :1.8
                  OS: Unbuntu 9.0

                  Host OS : Windows 2003


                  Agent: telnet agent
                  command : telnet.run[test,<ip>]

                  In Zabbix_Server.log ,telnet error: No login prompt

                  How to resolve it?

                  Thank you very much

                  Comment

                  • ericgearhart
                    Senior Member
                    • Jan 2009
                    • 115

                    #24
                    Hey guys I've got an Apache monitoring Cookbook "recipe" here... please take a look

                    Comment

                    • gpmidi
                      Member
                      • Aug 2009
                      • 62

                      #25
                      Alt Script

                      Originally posted by otheus
                      On the whole, I like this script very much and intend to use it for our site. However, I dislike creating (2 to 3) process(es) for every single parameter. And until the sender program supports reading values from stdin, a better solution is to create a temp file and use zabbix_sender -i with it. Further, the key names should be in square brackets so that the Item Descriptions are easier to create -- and more flexible, to reflect the admin's preferences. In addition, some parameters -- such as cpuload -- are not available on all apache versions. Finally, if the server is unavailable or there is a permissions problem, the script should fail accordingly.

                      The attached scripts does just these things.
                      My script, in this threat, uses a single zabbix_sender call.

                      Comment

                      • sue
                        Member
                        • Mar 2011
                        • 41

                        #26
                        Originally posted by daniel_lugo
                        hi

                        I have aproblem with monitoring hits apache2

                        I would like apache monitoring hits when a user is reviewing this in my website that is when she enters or this review ... as I do this .... this in linux with apache2 and also in Windows Server with IIS

                        how to do this?
                        Have u solve this problem?? i also try to monitor apache2 but zabbix agent cannot support

                        Comment

                        • vlam
                          Senior Member
                          Zabbix Certified Specialist
                          • Jun 2009
                          • 166

                          #27
                          Hi Guys
                          Is there any specific reason why I would get the following Error when running:
                          # ./apache.pl http://localhost

                          perl: warning: Setting locale failed.
                          perl: warning: Please check that your locale settings:
                          LANGUAGE = (unset),
                          LC_ALL = (unset),
                          LC_CTYPE = "UTF-8",
                          LANG = "en_US.UTF-8"
                          are supported and installed on your system.
                          perl: warning: Falling back to the standard locale ("C").

                          Also this is on RedHat where I have HTTPD running will this work for that also?

                          Thanks
                          4 Zabbix Frontend Servers (Load balanced)
                          2 Zabbix App Servers (HA)
                          2 Zabbix Database Servers (HA)
                          18 Zabbix Proxy Servers (HA)
                          3897 Deployed Zabbix Agents
                          6161 Values per second
                          X-Layer Integration
                          Jaspersoft report Servers (HA)

                          Comment

                          Working...