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
plugin code change
Re: plugin code change
The service may be down or there may be a firewall preventing a connection. Is port 5038 up and listening on the asterisk server? Is there anything blocking this connection?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: plugin code change
everything. sorted out. fail2ban blocked
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: plugin code change
Great!olegus wrote:everything. sorted out. fail2ban blocked
Locking