Ad Widget
Collapse
Monitoring Apache
Collapse
X
-
if i run ./apache.pl http://localhost/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
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.Comment
-
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 FilesComment
-
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)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.
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.Comment
-
No data on Graphs
HiActive 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:
* Edit apache config to add something like:Code:UserParameter=apache.all,~zabbix/bin/apache.pl http://localhost
Or something like this - make sure mod_status is enabledCode:<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 # Allow from 192.168.1.* </Location>
* Import the xml into zabbix server and add template to the server you are monitoring.
-HH
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
-
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
-
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
-
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
-
-
Alt Script
My script, in this threat, uses a single zabbix_sender call.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.Comment
-
Have u solve this problem?? i also try to monitor apache2 but zabbix agent cannot supporthi
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
-
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?
Thanks4 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
Comment