There are plenty of scripts available for monitoring of the Apache server-status page. I didn't find any such scripts for LiteSpeed Web Server upon first glance, however, so I created one in Perl and it's working great so far.
Download the attached lsws.zip file and you will find two files.
First, on the server with lsws installed, place the attached send_lsws_stats.pl script.
Then, add a cron entry for the script, such as:
Other options you can use:
Then import the attached lsws_stats.xml file into the Zabbix server, and link your host with the Template_App_LSWS template.
Let me know if you have any questions or feature requests.
Download the attached lsws.zip file and you will find two files.
First, on the server with lsws installed, place the attached send_lsws_stats.pl script.
Then, add a cron entry for the script, such as:
*/5 * * * * /etc/zabbix/scripts/send_lsws_stats.pl --host=[host] --server=[server] > /dev/null 2>&1
Other options you can use:
--reportfile=[reportfile] The path to LiteSpeed's report file. (Default: /tmp/lshttpd/.rtreport)
--tmpfile=[tmpfile] An alternate path for the temporary file sent to the server (Default: /tmp/zabbix_lshttpd_stats.txt)
--sender=[sender] The path to zabbix_sender (Default is zabbix_sender, which assumes it is in your path)
--verbose Provides the -vv argument to zabbix_sender, providing output
--tmpfile=[tmpfile] An alternate path for the temporary file sent to the server (Default: /tmp/zabbix_lshttpd_stats.txt)
--sender=[sender] The path to zabbix_sender (Default is zabbix_sender, which assumes it is in your path)
--verbose Provides the -vv argument to zabbix_sender, providing output
Then import the attached lsws_stats.xml file into the Zabbix server, and link your host with the Template_App_LSWS template.
Let me know if you have any questions or feature requests.
Comment