-
Notifications
You must be signed in to change notification settings - Fork 8
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
Debugging pagerduty.pl #3
Comments
Ah hah! I was issuing Custom notifications as a test. When I tried letting Nagios issue its own notification, it worked fine. So I guess this is a two-parter: could the script also send alerts on custom notifications? I can submit a pull request if you'd like. |
I'm going to check the messages from your first post because I don't like warnings. I did consider custom notifications when writing this, mainly because they may or may not have a global unique ID. I'll poke at it some tonight. (yay for PagerDuty test account status) |
I've been customizing the script a bit too, but don't have a good way to test it. Added a few things:
|
I am trying to integrate with Check_MK. It works fine with Pagerduty script, but I got the same error trying to use your script:
Have any idea how can I solve that ? Thanks in advance. |
Nothing ? |
@marcossantiago That's what you'd see if you have enable_environment_macros set to 0. See that config setting on: |
Hi @steeef ! Thank you for this. It worked right away. Did I miss any instructions ? Sorry for bothering in such a silly problem. |
I couldn't find anything in the README here, but I believe @JeffWalter was assuming that you'd originally gone through the official PagerDuty Nagios integration instructions, which does mention that configuration variable: |
I had gone through that. But I totally missed it. Since was working fine for PD agent, I had assumed it should work fine. Anyway, thank you for this. |
Sorry guys, I've been really busy. I'm updating the readme to reflect the |
Nice! This is a great plugin, btw. Thanks for the hard work here. |
Don't forget to thank @m3matta (Mark Matta of PagerDuty) for hinting I should do it ;-) |
@JeffWalter it's all you. Really great to see other customers using it :) |
On behalf of PagerDuty, I've just issued a $100 bounty on BountySource to add more logging and other improvements as suggested in this issue. :) https://www.bountysource.com/issues/3065631-debugging-pagerduty-pl |
@JeffWalter What changes are required to be added to close this issue?. Would like to submit a PR to close this issue. I can think of a check for |
I've got everything configured in Nagios per the README, and I can see that Nagios is calling pagerduty.pl, but PagerDuty shows no new incidents.
As a test, I've tried using a wrapper script on the plugin to capture stderr and the exit code (http://www.waggy.at/nagios/capture_plugin.htm). The output is blank with exit code "0", so I assume that the API call is succeeding.
Running pagerduty.pl manually:
No obvious errors here other than missing environment variables, I believe.
Short of adding my own, is there any way to get verbose/debugging output?
The text was updated successfully, but these errors were encountered: