Ad Widget

Collapse

How monitoring Apache server with zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Z@fleur
    Junior Member
    • Dec 2010
    • 2

    #1

    How monitoring Apache server with zabbix

    Hello

    I would like monitoring remote Apache server with my zabbix server.

    I find this wiki http://www.zabbix.com/wiki/templates/apache and I follow instructions "method2"

    I download and import xml template and script query_apachestats.py in folder /etc/zabbix/externalscripts/query_apachestats.py with correct authoring (chmod +x)

    I modified zabbix-server.conf to ExternalScripts=/etc/zabbix/externalscripts.

    I restarted my zabbix server complete (host)

    I link my remote apache host with the download template and activate items on my host.

    But, all items have status changed from "Active" to "Not supported" with following message returns (in interface or zabbix-serveur.log)

    error: Script /etc/zabbix/externalscripts/query_apachestats.py returned nothing.

    I use Zabbix Appliance 1.8.3 based on OpenSuSE Linux with MySQL back-end.

    Do you have any solutions ?

    thanks (in French : "Merci par avance")
    Last edited by Z@fleur; 06-12-2010, 18:14.
  • brynjellis
    Junior Member
    • May 2012
    • 7

    #2
    Hi

    Did you ever get anywhere with this please?

    I'm having a real problem getting this script to work and have spent a long time debugging it to try to find the reason.

    Is it me or is this script incomplete? It seems to perform the scorecard graph sometimes but I've been running the script from the command line to try to debug it and I'm getting errors like 'ServerStatusSplitUp not defined' when I request the 'BusyWorkers' metric for example. Looking at the script it is indeed not a defined function. The only ones that seem to work are those that are attached to the 'ServerStatusOutput' function as that is a defined function.

    Does anyone know what 'ServerStatusSplitUp' function should do?

    I'm not a python scripter I'm afraid. I'm a bit of a dabbler but can work out that this script doesn't seem to be complete which is a shame because it's exactly what I need.

    Your help would be much appreciated.

    Regards
    Bryn

    Comment

    Working...