|
From: Julien T. <jul...@ly...> - 2004-09-11 03:20:47
|
i'm currently testing perfparse 0.100.4 on a linux whitebox and have the following problem: # sh -x /opt/nagios/bin/perfparse.sh + BASE_DIR=/opt/nagios + PERFPARSE=/opt/nagios/bin/perfparse + LOG=/opt/nagios/var/perfparse.log + TMP_LOG=/tmp/perfparse.20545.log + TMP_ERR=/tmp/perfparse.20545.err + PERF_FILE=/opt/nagios/var/serviceperf.log + '[' '!' -f /opt/nagios/var/serviceperf.log ']' + /opt/nagios/bin/perfparse -s -r + RETURN=254 + '[' -f /tmp/perfparse.20545.err ']' + cat /tmp/perfparse.20545.err "SELECT COUNT(*) FROM perfdata_service_metric WHERE host_name = '192.168.1.96' AND service_description = 'NRPE_NT_C' AND metric = 'C:\'" failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''C:\'' at line 1 + '[' -f /tmp/perfparse.20545.log ']' + rm /tmp/perfparse.20545.log + '[' -f /tmp/perfparse.20545.err ']' + rm /tmp/perfparse.20545.err + exit it seems there is no addslashes function uses ... so is there any available ? Regards Julien |