Hi,
does anyone has integrated Postman ( https://www.getpostman.com/ ) / Newman ( https://github.com/postmanlabs/newman ) with icinga2 to monitor a RestAPI ?
I’m trying to monitor a postman collection with newman.
Best regards
André
Hi,
does anyone has integrated Postman ( https://www.getpostman.com/ ) / Newman ( https://github.com/postmanlabs/newman ) with icinga2 to monitor a RestAPI ?
I’m trying to monitor a postman collection with newman.
Best regards
André
Hi,
you’ll need a check plugin which wraps the newman CLI calls and parameters. Do you have a working example call where we can work with?
Cheers,
Michael
Hi,
thanks a lot for your reply. I’ve uploaded a sample collection from Postman and a newman JSON-Output.
cli command for newman
JSON-Output:
newman run sample.json -r json --reporter-json-export /tmp/sample_json_output.json
Command with cli output
newman run sample.json
best regards
André
newman_sample.tgz (5.2 KB)
Ah, so it returns a JSON blob as well. Hm. That needs to be received by the plugin and parsed for any errors.
Likely you’re better off with using Python or Ruby here. I can see many nested dictionary structures in the returned json output.
The return values and output printing must follow the plugin api specification.
I’ve seen that the GitHub repo proposes Node.js for just including postman and running it. Might be an option as well, but I don’t speak Nodejs fluently myself.
Another things I just found on Google is this plugin, which may already solve the question.
Cheers,
Michael
Hi,
thank you for your reply. I’ve searched for a plugin but didn’t found your the plugin you’ve posted.
So I’ve to develop my own plugin based on your posted while the posted plugin does not needs my fill.
Thank you!
best regards
André