plugin code change
Posted: Tue Jun 18, 2019 7:17 am
I try to use an asterisk plugin to check check_asterisk_pri.php https://exchange.nagios.org/directory/P ... us/details
after solving some problems, it began to reach the server, but now it gives an error in the code:
root@icingadeb:/home/adman# /usr/lib/nagios/plugins/check_asterisk_pri -H xxx.xxx.xxx.xxx -U xxxxx -P xxxxxxxx -p 5038
PHP Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:5038 (Connection refused) in /usr/lib/nagios/plugins/check_asterisk_pri on line 163
the string itself looks like this:
if( ( $astsock = fsockopen( $host, $port, $errno, $errstr, $timeout ) ) === false )
please tell me what needs to be changed so that it would work
thank you in advance
after solving some problems, it began to reach the server, but now it gives an error in the code:
root@icingadeb:/home/adman# /usr/lib/nagios/plugins/check_asterisk_pri -H xxx.xxx.xxx.xxx -U xxxxx -P xxxxxxxx -p 5038
PHP Warning: fsockopen(): unable to connect to xxx.xxx.xxx.xxx:5038 (Connection refused) in /usr/lib/nagios/plugins/check_asterisk_pri on line 163
the string itself looks like this:
if( ( $astsock = fsockopen( $host, $port, $errno, $errstr, $timeout ) ) === false )
please tell me what needs to be changed so that it would work
thank you in advance