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 support to transfer check results to Icinga2 via API #185

Closed
ccztux opened this issue Jul 5, 2023 · 0 comments · Fixed by #186
Closed

Add support to transfer check results to Icinga2 via API #185

ccztux opened this issue Jul 5, 2023 · 0 comments · Fixed by #186
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ccztux
Copy link
Owner

ccztux commented Jul 5, 2023

It should be possible to transfer check results to an Icinga2 system via API as described here:

curl -k -s -S -i -u root:icinga -H 'Accept: application/json' \
 -X POST 'https://localhost:5665/v1/actions/process-check-result' \
-d '{ "type": "Service", "filter": "host.name==\"icinga2-master1.localdomain\" && service.name==\"passive-ping\"", "exit_status": 2, "plugin_output": "PING CRITICAL - Packet loss = 100%", "performance_data": [ "rta=5000.000000ms;3000.000000;5000.000000;0.000000", "pl=100%;80;100;0" ], "check_source": "example.localdomain", "pretty": true }'
@ccztux ccztux self-assigned this Jul 5, 2023
@ccztux ccztux added the enhancement New feature or request label Jul 5, 2023
@ccztux ccztux added this to the 3.1.0 milestone Jul 5, 2023
@ccztux ccztux linked a pull request Oct 3, 2023 that will close this issue
@ccztux ccztux closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant