drewkerrigan/nagios-http-json

Enhanced plugin output without critical information

Closed this issue · 7 comments

Hello,

is it possible to add a switch to enhance the plugin output with the pprint'ed json object?
I know this is already part of the debug switch, but we cant use -d, because we need to hide the used credentials, which are part of the -d output.

Hi, we can have a look at it.

Maybe it makes sense to hide credentials during the debug output. Would that cover your use case?

We have tested a few scenarios. The used credentials can also be part of the header.
I think its much safer to have a switch, which only shows the detailed json object.

Been thinking about this.

Since the --debug flag is boolean and meant for development or error debugging, it should print out all information to help with these tasks.

However, we could introduce a -v flag to increase the verbosity of the output. This flag could be used multiple times -vv -v to further increase the output. This would allow us to be more flexible in the future when we need to print out things that are valuable but not essential for debugging.

Sounds good 👍🏻

Implemented this feature here: #86

@K0nne Does this cover the use case?

It works perfect :) Big sorry for the delay!