[Check_mk (english)] can't monitor apache service

Hi all,

I am fairly new to this.

What I am trying to do: Monitor performance indicators of my Apache web
server

What I have done so far:

1. Installed the check_mk agent on the server checktest

gdebi check-mk-agent_1.6.0p5-1_all.deb

2. Installed the plugin apache_status to the agent on the server checktest

hsadmin@checktest:~$ cat /usr/lib/check_mk_agent/plugins/apache_status
...

3. enabled the module server-status

hsadmin@checktest:/etc/apache2/mods-enabled$ cat status.conf
<IfModule mod_status.c>
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the "192.0.2.0/24" to allow access from other
hosts.

&lt;Location /server\-status&gt;
    SetHandler server\-status
    Require local
    \#Require ip 192\.0\.2\.0/24
&lt;/Location&gt;

\# Keep track of extended status information for each request
ExtendedStatus On

\# Determine if mod\_status displays the first 63 characters of a

request or
# the last 63, assuming the request itself is greater than 63 chars.
# Default: Off
#SeeRequestTail On

&lt;IfModule mod\_proxy\.c&gt;
    \# Show Proxy LoadBalancer status in mod\_status
    ProxyStatus On
&lt;/IfModule&gt;

</IfModule>

4. added a Python dict list for protocoll, servername and port

hsadmin@checktest:/etc/apache2/mods-enabled$ cat
/etc/check_mk/apache_status.cfg
dictList = [{'protocol':'tcp','servername':'checkmk','port':'80'}]

5. reloaded and restarted the apache service

77 systemctl reload apache2.service
78 systemctl restart apache2.service

6. run a bulk discovery on the checl_mk server via the web interface

The service apache_status won't show up in the monitoring.

What am I doing wrong? What am I missing? How to do it right?

Any cues, clues, tips is greatly aprechiated.

Best, David

···

--
David Schapiro
E-Mail: david.schapiro@hotsplots.de

hotsplots GmbH - Rotherstr. 22 - 10245 Berlin
Fon: +49 (0)30 29 77 348-0 - Fax: +49 (0)30 29 77 348-99
Amtsgericht Charlottenburg HRB 93460B
Geschäftsführung: Dr. Ulrich Meier, Dr. Jörg Ontrup

Hi David,

···

On 14.11.19 12:04, David Schapiro wrote:

What I am trying to do: Monitor performance indicators of my Apache web
server

Any cues, clues, tips is greatly aprechiated.

Does Apache return anything when querying /server-status? Test with

curl http://127.0.0.1/server-status
curl http://[::1]/server-status
curl http://checkmk/server-status

With "checkmk" being the hostname from apache_status.cfg.

Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Amtsgericht Berlin-Charlottenburg - HRB 93818 B
Geschäftsführer: Peer Heinlein - Sitz: Berlin

Hello,

Are you able to see Apache column while executing this command “cmk -IIv ”.

Thanks & Regards,

Praveen.

···

On Thu, Nov 14, 2019 at 12:05 PM David Schapiro david.schapiro@hotsplots.de wrote:

Hi all,

I am fairly new to this.

What I am trying to do: Monitor performance indicators of my Apache web

server

What I have done so far:

  1. Installed the check_mk agent on the server checktest

gdebi check-mk-agent_1.6.0p5-1_all.deb

  1. Installed the plugin apache_status to the agent on the server checktest

hsadmin@checktest:~$ cat /usr/lib/check_mk_agent/plugins/apache_status

  1. enabled the module server-status

hsadmin@checktest:/etc/apache2/mods-enabled$ cat status.conf

# Allow server status reports generated by mod_status,

# with the URL of [http://servername/server-status](http://servername/server-status)

# Uncomment and change the "[192.0.2.0/24](http://192.0.2.0/24)" to allow access from other

hosts.

<Location /server-status>

    SetHandler server-status

    Require local

    #Require ip [192.0.2.0/24](http://192.0.2.0/24)

</Location>



# Keep track of extended status information for each request

ExtendedStatus On



# Determine if mod_status displays the first 63 characters of a

request or

# the last 63, assuming the request itself is greater than 63 chars.

# Default: Off

#SeeRequestTail On



<IfModule mod_proxy.c>

    # Show Proxy LoadBalancer status in mod_status

    ProxyStatus On

</IfModule>
  1. added a Python dict list for protocoll, servername and port

hsadmin@checktest:/etc/apache2/mods-enabled$ cat

/etc/check_mk/apache_status.cfg

dictList = [{‘protocol’:‘tcp’,‘servername’:‘checkmk’,‘port’:‘80’}]

  1. reloaded and restarted the apache service

    77 systemctl reload apache2.service

    78 systemctl restart apache2.service

  2. run a bulk discovery on the checl_mk server via the web interface

The service apache_status won’t show up in the monitoring.

What am I doing wrong? What am I missing? How to do it right?

Any cues, clues, tips is greatly aprechiated.

Best, David

David Schapiro

E-Mail: david.schapiro@hotsplots.de

hotsplots GmbH - Rotherstr. 22 - 10245 Berlin

Fon: +49 (0)30 29 77 348-0 - Fax: +49 (0)30 29 77 348-99

Amtsgericht Charlottenburg HRB 93460B

Geschäftsführung: Dr. Ulrich Meier, Dr. Jörg Ontrup


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

Manage your subscription or unsubscribe

https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en