Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Works great! However, if you’re using PHP5, you’re likely going to run into a PHP Notice error message:
PHP Notice: Undefined variable: asttext in /check_asterisk_pri on line 181
To remedy this, just replace the following code:
while( !feof ( $astsock )) { $asttext .= fread( $astsock, 8192); }
with the following:
$asttext = stream_get_contents($astsock);
Thanks for making this…we’ve been having odd problems with PRI syncing and this keeps us informed.