Answer the question
In order to leave comments, you need to log in
Recommend lightweight HTTP monitoring
Please advise lightweight HTTP monitoring.
You need to monitor several HTTP locations (HTML/JSON/XML/etc) and display it all beautifully on one page.
Not SaaS.
The main criterion is to set up to monitor 2-3 locations from scratch in no more than half an hour (without prior acquaintance with this program).
It is desirable, but not necessary, and not to the detriment of the main criterion above:
Answer the question
In order to leave comments, you need to log in
sitemonitoring.sourceforge.net
Truth does not know how to POST, but it can distinguish between HTTP codes, it is simple and free.
Not that lightweight, but:
www.zabbix.com/documentation/en/2.0/manual/web_monitoring/example
Approximate logic, with a status notification to the mailbox.
You will need libwww-perl.
Building some kind of html table can be built based on the following.
#/bin/bash
html=/var/www/servers_state.html
serverlist=(ip1 ip2 ip3 ip4)
while true
do
echo '<table width="40%" border="0" cellspacing="0" cellpadding="5" >' > $html
for ip in "${serverlist[@]}"
do
state=$(HEAD localhost $ip |sed -n 1p)
echo "<tr><td>$ip</td><td>$state</td>/tr>" >> $html
if ( "$state" != "200 OK" )
then
echo "Something is wrong with $ip" |mail -s "Invalid responce from $ip" [email protected]_domain.com
fi
done
echo "</table>" >> html
sleep 60
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question