---
title: "Error decoding CSV"
description: "The error decoding CSV occurs when running the checkhaproxy plugin in Opsview service checks. To resolve it, delete any temporary haproxy-related files in /opt/opsview/agent/tmp and rerun the service check."
url: "https://docs.itrsgroup.com/docs/faq/opsview/16603922550173-opsview-error-decoding-csv/index.html"
---
This is an error message when running the `check_haproxy` plugin which can be found on the following service checks (there could be others).

```
Opsview - Load Balancer - Summary Stats: datastore-access
Opsview - Load Balancer - Summary Stats: messagequeue-access
Opsview - Load Balancer - Summary Stats: messagequeue-management-access
Opsview - Load Balancer - Summary Stats: registry-access
Opsview - Load Balancer - Summary Stats: timeseries-access
```

Example:

```
Command: check_nrpe -H 'Hostname.test.com' -c check_haproxy -a '-m summary_stats -P "9000" -u "opsview" -p "%OPSVIEW_LOADBALANCER_CREDENTIALS:2%" -s "haproxy?stats" -n "messagequeue-management-access"' -t 60 -C '' -k '' -r '' -y 'ADH-AES256-SHA:ADH-AES128-SHA'
Monitored by: Master Monitoring Server
Hostname run on: collector_host
Return code: 3
Output: UNKNOWN: Error decoding CSV
```

## **Solution**

- From host, navigate to `/opt/opsview/agent/tmp` directory.
- Check for any temp files related to `haproxy`, something like `haproxy_*`, and remove those files.
- Run the service check to test.


