# HAproxy Monitoring with PMM-Agent "Status Failed"

**URL:** <https://forums.percona.com/t/haproxy-monitoring-with-pmm-agent-status-failed/27796>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** percona, pmm\
**Created:** [January 16, 2024, 9:57am UTC](https://forums.percona.com/t/haproxy-monitoring-with-pmm-agent-status-failed/27796 "2024-01-16T09:57:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaunker](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Jaunker](https://forums.percona.com/u/Jaunker)\
**Post date:** [January 16, 2024, 9:57am UTC](https://forums.percona.com/t/haproxy-monitoring-with-pmm-agent-status-failed/27796/1 "2024-01-16T09:57:32Z")

</div>

## Description:

I have an issue after adding the ‘haproxy’ service for monitoring on the PMM Server using the pmm2 agent. Data collection works correctly, but the service appears as ‘Failed’ on the ‘Services’ page in the monitoring. Specifically, it’s the state of the agent type ‘External exporter’ that shows as ‘Unknown.’ All other states are correctly ‘Running.’ As mentioned earlier, the service monitoring functions correctly despite the state.

## Steps to Reproduce:

I have installed and configured the agent using the following commands:  
_apt-get install pmm2-client_  
_pmm-admin config --server-insecure-tls --server-url=[https://admin:admin@127.0.0.1](https://admin:admin@127.0.0.1)_  
_pmm-admin add haproxy --listen-port=8404_

The configuration for haproxy is as follows:

> listen stats  
> bind :8404  
> mode http  
> stats enable  
> stats uri /stats  
> stats auth admin:admin  
> option http-use-htx  
> http-request use-service prometheus-exporter if { path /metrics }  
> stats refresh 10s

## Version:

OS Ubuntu: Versione 22.04  
PMM Server: Version: 2.41.0  
PMM Client: Version: 2.41.0  
PMM Admin: Version: 2.41.0  
HAproxy: Version 2.4.24

## Actual Result:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/4/46e795c19439cbbc5c25b53a13167ffa1f7a9943.png)

There are no error logs anywhere; the service is functioning correctly. I have tried testing the service on RHEL 9 as well, obtaining the exact same result. I hope for assistance from an expert in the community. Thank you very much."

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [January 16, 2024, 10:26am UTC](https://forums.percona.com/t/haproxy-monitoring-with-pmm-agent-status-failed/27796/2 "2024-01-16T10:26:20Z")

</div>

Hello @Jaunker,  
it’s a known bug on PMM side, please follow these Jira tasks [PMM-12478](https://perconadev.atlassian.net/issues/PMM-12478) and [PMM-12072](https://perconadev.atlassian.net/browse/PMM-12072) to get notification when it is fixed.

---

<div class="post-metadata">

**Author:** ![Jaunker](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@Jaunker](https://forums.percona.com/u/Jaunker)\
**Post date:** [January 16, 2024, 10:35am UTC](https://forums.percona.com/t/haproxy-monitoring-with-pmm-agent-status-failed/27796/3 "2024-01-16T10:35:05Z")

</div>

Thank you @nurlan 🙂  
I hope the bug gets fixed soon, thanks again.
