Page 1 of 1
Plugin return data max string
Posted: Thu Apr 09, 2015 12:33 pm
by vmesquita
Hi!
We are coding a plugin and we noticed that after a given number of characters, Nagios starts to truncate the result. Would you be able to provide me how many chars is this limit?
Re: Plugin return data max string
Posted: Thu Apr 09, 2015 12:57 pm
by lmiltchev
What kind of check is this? Can you show us the actual check run from the command line and the output of it? Also, post a screenshot of the output (what you see) in the GUI.
Re: Plugin return data max string
Posted: Thu Apr 09, 2015 1:13 pm
by rseiwert
255 chars is where the check gets truncated
XI runs everything thru a database. 255 is the field size of the result. This field can be expanded in the database to allow larger results if required but don't go overboard or other things might break.
Re: Plugin return data max string
Posted: Thu Apr 09, 2015 1:38 pm
by lmiltchev
Yes, the size (or type) of the field could be changed in the database, but we need to know which one we need to modify.
vmesquita, can you run the following command and show us the output?
Code: Select all
echo 'desc nagios_servicechecks;desc nagios_hostchecks;' | mysql -u root -pnagiosxi nagios -t