资 源 简 介
This small ruby script is written as a school project.
[M00kaw@teh-geek ~]$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86\_64-linux]
The intention is to monitor ports over TCP connection. Append the results in a MySQL database, and notify via gmail / google apps mail, if a port isn"t connectable.
You could run it as a cron job, or make a
while true
....
sleep 300
Remember to install the gems.
[M00kaw@teh-geek ~]$ gem list
LOCAL GEMS
mysql (2.8.1)
parseconfig (1.0.2)
tlsmail (0.0.1)
(ignore the warnings from tlsmail when the script is executed)
MySQL instructions:
check the wiki
Remember to replace the websites and ports in sites.conf
Remember to insert your own values in login.conf