I am trying to configure Nagios to monitor FreeSWITCH as mentioned at https://github.com/kjhosein/nagios-freeswitch-plugin .
I have downloaded the script from git and followed listed steps.
On remote (NRPE) server I have added below line in nrpe.cfg file
command[check_freeswitch_health]=/usr/lib64/nagios/plugins/check_freeswitch_health.pl $ARG1$
On Nagios server,added in commands.cfg file
define command {
command_name check_freeswitch_health
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_freeswitch_health $ARG1$
}
and in services.cfg file
define service {
host_name freeswitch01
service_description FreeSWITCH - Calls Count
check_command check_freeswitch_health!-a '-q show-calls-count'!!!!!!!
}
But on Nagios web interface I am getting
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
On remote server, logs(/var/log/syslog) showing below error
Request contained command arguments!
Client request was invalid, bailing out...
What I am missing here ? Can anyone please assist me with correct configurations ?
Thanks,
Rutu