USING JAVA SERVER PAGES FOR REMOTE MONITORING OF WEB SERVER HARDWARE
DOI:
https://doi.org/10.34132/mspc2025.01.06.29Keywords:
JSP, Apache Tomcat, ProcessBuilder, JSON, web development, system commands.Abstract
An approach to implementing a system for remote monitoring of the hardware component of a web server based on Java Server Pages (JSP) is considered. The proposed solution uses the Java ProcessBuilder tool to execute system commands (sensors, apcaccess, df ) on a server running the Debian OS in order to obtain data on the temperature regime, power system parameters, and the state of the disk subsystem. The results obtained are transmitted to the client side in JSON format, where they are dynamically displayed without reloading the page using Ajax technology. The architecture and technical implementation of the system are described, including examples of JSP page code and a JavaScript module for processing Ajax requests. The effectiveness of this solution in the context of the Internet of Things (IoT) is analyzed, and the simplicity of implementation, ease of use, scalability, and flexibility of the approach for remote monitoring of web server hardware parameters are noted.
References
JavaServer Pages API Documentation. Retrieved from: https://docs.oracle.com/cd/E17802_01/products/products/jsp/2.1/docs/jsp-2_1-pfd2/index.html (Last accessed: 10.05.2025).
ProcessBuilder API. Retrieved from: https://docs.oracle.com/javase/8/docs/api/java/lang/ProcessBuilder.html (Last accessed: 10.05.2025).
Introducing JSON. Retrieved from: https://www.json.org/json-en.html (Last accessed: 10.05.2025).
AJAX Introduction. Retrieved from: https://www.w3schools.com/Js/js_ajax_intro.asp (Last accessed: 10.05.2025).
Debian Reference Retrieved from: https://www.debian.org/doc/manuals/debian-reference/debian-reference.en.pdf (Last accessed: 10.05.2025).


