hide info in the sensu command / email

You could hack the handler that is sending the email to not include the command, or to remove parts of it with a regex.

···

On Wednesday, July 10, 2013 10:03:01 AM UTC-7, Micah Hoffmann wrote:

{Check Name: mysql_long_queries_HOST
Command: /etc/sensu/plugins/check_mysql_longqueries.pl -HHOST -P3306 -uUSER -pPASS -w240 -c300}

Hey all, can you help me brainstorm some ways to hide the various information that is emailed in the sensu check?

I am thinking possibly set up some sort of reference file with the HOST= USER= PASS=, that each command can pull from?

Thanks

You could either do what Nick said or use a mutator to massage the event data first.

It almost seems like event data should go through the new redact_passwords method and the command_executed that was removed in 0.10.0 could still be included.

···

On Thu, Jul 11, 2013 at 8:05 AM, Nick Stielau nick.stielau@gmail.com wrote:

You could hack the handler that is sending the email to not include the command, or to remove parts of it with a regex.

On Wednesday, July 10, 2013 10:03:01 AM UTC-7, Micah Hoffmann wrote:

{Check Name: mysql_long_queries_HOST

Command: /etc/sensu/plugins/check_mysql_longqueries.pl -HHOST -P3306 -uUSER -pPASS -w240 -c300}

Hey all, can you help me brainstorm some ways to hide the various information that is emailed in the sensu check?

I am thinking possibly set up some sort of reference file with the HOST= USER= PASS=, that each command can pull from?

Thanks

Oh yeah, mutators, do that :wink:

···

On Thu, Jul 11, 2013 at 6:19 AM, Bryan Brandau agent462@gmail.com wrote:

You could either do what Nick said or use a mutator to massage the event data first.

It almost seems like event data should go through the new redact_passwords method and the command_executed that was removed in 0.10.0 could still be included.


Nick Stielau
206-245-7991

On Thu, Jul 11, 2013 at 8:05 AM, Nick Stielau nick.stielau@gmail.com wrote:

You could hack the handler that is sending the email to not include the command, or to remove parts of it with a regex.

On Wednesday, July 10, 2013 10:03:01 AM UTC-7, Micah Hoffmann wrote:

{Check Name: mysql_long_queries_HOST

Command: /etc/sensu/plugins/check_mysql_longqueries.pl -HHOST -P3306 -uUSER -pPASS -w240 -c300}

Hey all, can you help me brainstorm some ways to hide the various information that is emailed in the sensu check?

I am thinking possibly set up some sort of reference file with the HOST= USER= PASS=, that each command can pull from?

Thanks