Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Discovery Error on HAProxy Discovery: Cannot locate config file: /elastic_cloud_apps/haproxy/haproxy.global.cfg - Exit status: 1 - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Discovery Error on HAProxy Discovery: Cannot locate config file: /elastic_cloud_apps/haproxy/haproxy.global.cfg - Exit status: 1
KB0859933

Discovery Error on HAProxy Discovery: Cannot locate config file: /elastic_cloud_apps/haproxy/haproxy.global.cfg - Exit status: 1


362 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When I running discovery for HAProxy, the following error comes up in the Discovery Log: Cannot locate config file: /elastic_cloud_apps/haproxy/haproxy.global.cfg - Exit status: 1

Release

Any And all

Cause

The classification script for the HAProxy Process Classifier creates a variable called hp_cfg
The value of this variable it generally evaluates to:
" /opt/kibana/haproxy-2.1.2/etc/haproxy/haproxy.cfg"

In the process classifier it runs 2 triggered probes. One of them is HAProxy - Get Configuration:
https://<InstanceName>.service-now.com/discovery_probes.do?sys_id=86b5c2c1d7622100a866ee5b5e6103fe

This probe runs a shell script that is specified in the probe parameters called get-hacfg.sh
When it runs this probe it adds the argument for hp_cfg, essentially running
get-hacfg.sh hp_cfg
which technically translates to:
get-hacfg.sh /opt/kibana/haproxy-2.1.2/etc/haproxy/haproxy.cfg

When we look at that script, the very beginning runs this code block:
# if no path for haproxy.cfg then exit
if [ ! -f $CFG_LOCATION ]; then
echo "Cannot locate config file: $CFG_LOCATION"
exit 1
fi


Resolution

Check the permissions of the credential being used and make sure it can access the file /opt/kibana/haproxy-2.1.2/etc/haproxy/haproxy.cfg on the target host


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.