Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add args to NRPE check command #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abhigupta1207
Copy link

No description provided.

@abhigupta1207 abhigupta1207 changed the title Update nrpe_exporter.go Add args to NRPE check command Jun 25, 2021
@abhigupta1207 abhigupta1207 marked this pull request as ready for review June 25, 2021 20:54
// Parse and issue given command
command := nrpe.NewCommand(cmd)
command := nrpe.NewCommand(cmd,args...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting is off here

args := []string{}
argsquery := r.URL.Query().Get("args")
if argsquery != "" {
args = strings.Split(argsquery, ",")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you splitting here? We already have it as an array from the URL.

@simskij
Copy link
Member

simskij commented Mar 28, 2022

This still seems worthwhile to finish and get merged.

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

Successfully merging this pull request may close these issues.

None yet

3 participants