Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limitation of the number of characters for environment variables #57

Open
ChamMach opened this issue Apr 7, 2020 · 2 comments
Open

Comments

@ChamMach
Copy link

ChamMach commented Apr 7, 2020

Hi,

When I add a 344 characters token in a environment variable ($USER1$ for example) I expect to have the full variable after a nagios reload.

And instead, I notice that my variable is truncated to 255 characters.

If no one takes the point I will make the necessary change shortly.

Regards,

@rverchere
Copy link

An "alter table" in lilac does the job (same issue with args longer thant 255 chars).

@rverchere
Copy link

$ mysql -u root -p lilac
ALTER TABLE nagios_resource CHANGE user1 user1 varchar(1024) ;
// do the same for all user* resources you need

MariaDB [lilac]> describe nagios_resource;
+--------+---------------+------+-----+---------+----------------+
| Field  | Type          | Null | Key | Default | Extra          |
+--------+---------------+------+-----+---------+----------------+
| id     | int(11)       | NO   | PRI | NULL    | auto_increment |
| user1  | varchar(1024) | YES  |     | NULL    |                |
| user2  | varchar(255)  | YES  |     | NULL    |                |
| user3  | varchar(255)  | YES  |     | NULL    |                |
+--------+---------------+------+-----+---------+----------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants