I need to monitor a Linux server using bash script so scenario is like this
- I have a bash script which can monitor a Linux service and it shows result right
- Now I need to show the result of bash script to port 8080 or any port like http://192.168.2.1:8080 and it will show status code 200 or error, So when I hit http://192.168.2.1:8080 it will execute the bash script and get result and show it
Note: No web service is running right now on server