Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

fix URL not found #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix URL not found #29

wants to merge 1 commit into from

Conversation

tatref
Copy link

@tatref tatref commented Jul 12, 2023

If URL is invalid or if authentication is not working, the script outputs

Use of uninitialized value $haproxy in split at ./check_haproxy_stats.pl line 231.
Unable to retrieve haproxy stats at ./check_haproxy_stats.pl line 233.

Now with the fix:

Unable to retrieve haproxy stats at ./check_haproxy_stats.pl line 227.

As I'm not very familiar with Perl, there could be better ways to fix this?

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

If URL is invalid or if authentication is not working, the script outputs

```
Use of uninitialized value $haproxy in split at ./check_haproxy_stats.pl line 231.
Unable to retrieve haproxy stats at ./check_haproxy_stats.pl line 233.
```

Now with the fix:
```
Unable to retrieve haproxy stats at ./check_haproxy_stats.pl line 227.

```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant