From: Lonnie A. <li...@lo...> - 2007-03-02 02:38:39
|
Greetings, I have created a "at-a-glance" status page for AstLinux... such that I can quickly observe the health and activity of my many AstLinux boxes. The status page looks like this: (example does not have asterisk running) http://lonnie.abelbeck.com/share/status.php.jpg Additionally, if asterisk is running, the following sections are added: o SIP Active Channels: o SIP Registrations: o SIP Peer Status: Of course, you can easily edit and add commands of your own, like IAX status if you use that. The PHP/HTML code can be found here: http://lonnie.abelbeck.com/share/status.php.txt Rename status.php.txt to status.php Place status.php anywhere you have mini_httpd running as 'root' (be careful of security issues). Or, to try it out with the default https settings, you could place the file at: (after: "mount -o rw,remount /") /stat/var/www/admin/status.php Fix permissions: chmod 755 status.php Make '/' "ro" by: mount -o ro,remount / Access the page by: https://your_box/admin/status.php All comments welcome. Enjoy, Lonnie |