📜 ⬆️ ⬇️

Lighttpd cacti statistics

The lighttpd server has a mod_status module, it displays some information about the current state of the server. We attach this feature to cacti .

To begin, I will tell you how to screw mod_status.

Add to the list of modules mod_status:

server.modules + = (
"mod_status"
)

')

and write the settings, how to access the page

status.status-url = "/ server-status"


now going to http: // localhost / server-status we will see:

image

Now download the script for Cacti from here: http://forums.cacti.net/download.php?id=8273

Unzip and put in / usr / local / share / cacti / scripts / ss_lighttpd_stats.php file (for Freebsd)

Now open cacti, go to Import Templates and import cacti_host_template_webserver_lighttpd.xml

There should have been 4 new templates for charts:

image

Create graphs and watch them =)

image

image

PS for the script requires PHP 5 installed
Script page: forums.cacti.net/about19676.html
Similar article for nginx: habrahabr.ru/blogs/sysadm/66605

Source: https://habr.com/ru/post/66602/


All Articles