Sendpage hack

sendPage is UNIX based utility to send alphanumeric pages via TAP. It is great as a means to send “out of band” Nagios alerts. A simple PHP script is included in the distribution to allow you to send pages via a simple web page. But in order to send the pages you need to remember the recipient address in the form number@PC (PC stands for Paging Central – see the sendPage documentation for more information). Since I already have too many things to remember I wrote a quick and dirty hack to the sendpage.php script to list the valid recipients from the sendpage.conf file in /etc as a table at the top of the form. Your web server will need to be able to read /etc/sendpage.conf, so be sure to check permissions.

> sendpage.php

Leave a Reply