Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
los
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.
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.