Page 1 of 1

Nagios plugin calling cloud env- response extract auth token

Posted: Mon Jan 27, 2020 3:40 pm
by gmills
Hello, and Happy New Year to you!

I need to create a Nagios Core plugin, that touches the cloud AWS environments, from non-cloud system.

the problem I see is first I need to obtain a auth token, the return response to the first request would be the auth token.

I would take that auth token and use it to access the cloud envs,

is Nagios Core equiped to handle this type of call, I'm still a bit fresh with Nagios. thank you!

Re: Nagios plugin calling cloud env- response extract auth t

Posted: Tue Jan 28, 2020 6:33 pm
by Box293
Yes.

Basically Nagios just executes commands and only cares about getting back an exit code and some human friendly text.

Everything you explained will need to be scripted into your plugin, Nagios doesn't care about any of that. Things might get complicated if you want to pass information from one check to another, it's entirely up to you as to how you design it.

Re: Nagios plugin calling cloud env- response extract auth t

Posted: Wed Jan 29, 2020 11:18 am
by gmills
got it,

thank you!

Re: Nagios plugin calling cloud env- response extract auth t

Posted: Wed Jan 29, 2020 5:24 pm
by Box293
Great, is it OK to close this thread?

Re: Nagios plugin calling cloud env- response extract auth t

Posted: Thu Jan 30, 2020 9:12 am
by gmills
Yes Sir, please close. thank you