I have been trying to setup the nagios plugins to my monitoring server and I defined the following command on the remote server’s nrpe_local.cfg.
pmp-check-mysql-status -l $USER3$ -p $USER4$ -H $HOSTADDRESS$ -x Threads_connected -o / -y max_connections -T pct -w 80 -c 95
(Of course, I replaced the username, password and hostaddress with all the appropriate info.)
and I got the following output on the monitoring server. [TABLE]
[TD=“class: dataVal”]awk: line 8: syntax error at or near )
awk: line 13: syntax error at or near if
awk: line 24: syntax error at or near exit
CRIT Threads_connected / max_connections (pct) = 1.986755[/TD]
[TD=“class: dataVar”]Performance Data:[/TD]
can someone tell me how to fix it ?
Sorry, I am new to nagios.
Thanks for looking at my post and for your help in advance.