Hi all,
I don't have the php skills for this, but do have a clear idea of what I am after. hopefully I can describe it.
for managing a small network, where each machine could have several services running (ssh, http, https, nfs, kerberos kdc, vnc, etc) it would be handy to be able to see the status for all of them arrayed. The idea is to probe and display the status of protocol:host:port, but only the ones you request, and display them so status can be seen at a glance.
the sos plugin (by Maximilian Thoma,
http://www.dokuwiki.org/plugin:sos) goes a long way with easy syntax, {{sos>protocol:ip_addr:port:img(y/n)|Description}}. It has a lot of nice features (eg, the red or green image). I used it to make a simple version, and can send a screenshot image. (I tried to embed one here.)
but it looks like its not documented (or maintained?) anymore, and some other features would be nice. specifically:
- udp seems like its not working
- time-out if a server does not respond within a specified length of time (eg, if you have 10 servers, each with 10 ports you want to know about, and 5 of the 100 are closed, it might take a whole minute (5 ports x 12 seconds each) to gather all the needed status before displaying anything at all)
- having an nmap-style "-P 0" option would be handy
- a ping option would be cool, to see how fast servers are responding
- its easy enough to construct a table and include status calls within cells, but maybe there would be a better way to tabulate everything into an overall status panel that would be even nicer.
I did not find another existing plugin that looked nearly as relevant, sorry if I missed it. (there are SO many plugins now, its truly awesome!)
this page shows how to do the key functionality (port scanning) in php
http://www.developertutorials.com/tutorials/php/port-scanning-and-service-status-checking-in-php-8-06-06/page3.html
--Jeremy