Skip to content

Zabbix bash script + template for Apache Server statistics

Notifications You must be signed in to change notification settings

Medd1er/apache-server-statistic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

apache-server-statistic

Bash script for Zabbix-agent on remote host

How to Use

  1. Place script wherever in accessible directory for Zabbix user(i.e. '/etc/zabbix/scripts') on the remote Apache server with working zabbix agent

  2. Configure paths for variables (if necessary) (by default script ueses default directory for openvpn logs)

  3. Grant access for Zabbix user to script directory and script itself

    chown root:zabbix -R /etc/zabbix/scripts

    chmod 550 /etc/zabbix/scripts/apache_server_statistic.sh

  4. Add UserParameter in zabbix_agent.conf (you can place it as well after "UnsafeUserParameters")

    UserParameter=apache2[*],/etc/zabbix/scripts/apache_server_statistic.sh "none" "$1" "$2"

  5. Restart the Zabbix agent (according to your installation)

    systemctl restart zabbix-agent

  6. Import template-apache-statistic.xml

  7. Enjoy!

About

Zabbix bash script + template for Apache Server statistics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages