Set default to default "send in plain testonly"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Set default to default "send in plain testonly"

Post by btayl »

Is their a way to set the default for all users to emails "send in plain text only"
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Set default to default "send in plain testonly"

Post by dchurch »

Unfortunately no. The hard-coded default is defined in a few places in the code.

One workaround is to modify the database directly (maybe put this in a cron script):

Code: Select all

insert into xi_usermeta (user_id, keyname, keyvalue)
select user_id, 'email_plaintext', 1
from xi_users xu
where not exists (
    select * from xi_usermeta x where x.user_id = xu.user_id and keyname = 'email_plaintext'
);
So if you put that in a shell script, and have it run every x-amount-of-time, it'll set the default for users who haven't set a yes or no under receiving plaintext emails.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Set default to default "send in plain testonly"

Post by dchurch »

Just checking in since we haven't heard from you in a while. Did that solve your problem?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: Set default to default "send in plain testonly"

Post by btayl »

Post thank you but I ma not going to touch the database you can close this ticket.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Set default to default "send in plain testonly"

Post by scottwilkerson »

btayl wrote:Post thank you but I ma not going to touch the database you can close this ticket.
Closing thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked