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

🐞 pdagent enqueue fails with "=," when using -f #46

Open
NargiT opened this issue Jun 13, 2024 · 0 comments
Open

🐞 pdagent enqueue fails with "=," when using -f #46

NargiT opened this issue Jun 13, 2024 · 0 comments

Comments

@NargiT
Copy link

NargiT commented Jun 13, 2024

This is the command we use to trigger a notification from nagios to pagerduty

pdagent enqueue --routing-key XXX --event-action trigger --source "Nagios/test_host" --dedup-key `date "+%s"` --summary foobar --severity "critical" -f SERVICEOUTPUT='$LONGSERVICEOUTPUT$'

if I replace $LONGSERVICEOUTPUT$ with

  • '=,' -> invalid argument "SERVICEOUTPUT==," for "-f, --field" flag: must be formatted as key=value
  • ',,=' -> invalid argument "SERVICEOUTPUT=,,=" for "-f, --field" flag: must be formatted as key=value
  • ',=,' -> invalid argument "SERVICEOUTPUT=,=," for "-f, --field" flag: must be formatted as key=value

we get the following error, this fails no matter if there are values between quotes and the equals sign must be there

@NargiT NargiT changed the title pdagent enqueu fails with "=," as a field value 🐞 pdagent enqueue fails with "=," when using -f Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant