Ad Widget

Collapse

Python Apache Monitoring Script XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brynjellis
    Junior Member
    • May 2012
    • 7

    #1

    Python Apache Monitoring Script XML

    Hi

    I am using this article http://www.zabbix.com/wiki/templates/apache to monitor Apache on a Ubuntu Server and Red Hat servers. I'm using Method 2.

    I have a question though about the top part of the XML. It shows this:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <zabbix_export version="1.0" date="12.01.10" time="18.21">
        <hosts>
            <host name="Template_Apache_Stats">
                <proxy_hostid>0</proxy_hostid>
                <useip>1</useip>
                <dns></dns>
                <ip>127.0.0.1</ip>
                <port>10050</port>
                <status>3</status>
                <useipmi>0</useipmi>
                <ipmi_ip>127.0.0.1</ipmi_ip>
                <ipmi_port>623</ipmi_port>
                <ipmi_authtype>0</ipmi_authtype>
                <ipmi_privilege>2</ipmi_privilege>
                <ipmi_username></ipmi_username>
                <ipmi_password></ipmi_password>
    Could someone tell me what the <ip>127.0.0.1</ip> represents please? Is it the server I'm wanting to monitor (where Apache is installed) or is it my Zabbix server from which I'm doing the monitoring?

    Sorry, it may be obvious to you but I'm a newbie to Zabbix so still learning.

    Thanks in advance.
    Bryn
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    Originally posted by brynjellis
    Could someone tell me what the <ip>127.0.0.1</ip> represents please?
    Zabbix uses the same XML structure for real hosts and templates.
    Some values such as IP, dns, port are meaningless for templates.
    Since it is a template, you can ignore it.
    Once you link an host to this template, the IP of the host will be used.

    Hope this helps,
    JBo

    Comment

    • brynjellis
      Junior Member
      • May 2012
      • 7

      #3
      Thanks JBo, that's perfect.

      Regards
      Bryn

      Comment

      Working...