T
T
tartarelin2015-11-18 20:19:38
Apache HTTP Server
tartarelin, 2015-11-18 20:19:38

How to monitor Apache?

Please help me configure Apache monitoring.
Debian is on the web server, Ubuntu is on Zabbix, I set it up according to the instructions blog.bissquit.com/?p=499
and does not plow, from the Zabbix server server-status is visible
zabbix_get for Apache gives an empty time, and for the CPU it shows
[email protected] data -zabbix:/tmp$ zabbix_get -s xxx.xxx.xxx.xxx -k "apache2[accesses, http://xxx.xxx.xxx.xxx/server-status] "
[email protected]:/tmp$ zabbix_get -s xxx.xxx.xxx.xxx -k "system.cpu.load[all,avg1]"
0.070000
where to dig?
everything is clean in /var/log/zabbix/zabbix_agentd.log

spoiler

13499:20151119:100415.605 Got signal [signal:15(SIGTERM),sender_pid:29035,sender_uid:0,reason:0]. Exiting ...
13499:20151119:100415.606 Zabbix Agent stopped. Zabbix 2.4.6 (revision 54796).
29061:20151119:100415.680 Starting Zabbix Agent [webserver]. Zabbix 2.4.6 (revision 54796).
29061:20151119:100415.680 using configuration file: /etc/zabbix/zabbix_agentd.conf
29061:20151119:100415.681 agent #0 started [main process]
29063:20151119:100415.681 agent #1 started [collector]
29064:20151119:100415.682 agent #2 started [listener #1]
29066:20151119:100415.682 agent #3 started [listener #2]
29067:20151119:100415.682 agent #4 started [listener #3]
29068:20151119:100415.682 agent #5 started [active checks #1]

curl from zabbix server displays server-status
spoiler

[email protected]:~$ curl xxx.xxx.xxx.xxx/server-status
..
Apache Server Status for xxx.xxx.xxx.xxx
..
Apache/2.2.22 (Debian) Server at xxx.xxx.xxx.xxx Port 80
..

apache config /etc/apache2/apache2.conf contains zabbix server IP
spoiler

[email protected]:~$ sudo vi /etc/apache2/apache2.conf
ExtendedStatus on
SetHandler server-status
Order deny,allow
Deny from all
Allow from zzz.zzz.zzz.zzz

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
t_q_l, 2015-11-19
@tartarelin

Try adding the parameter to the zabbix-agent.conf config :
UnsafeUserParameters=1

N
Nikon_NLG, 2015-11-18
@Nikon_NLG

Look in the zabbix-agent and apache log, maybe the server-status is given only for 127.0.0.1, and you are accessing it through the external interface.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question