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?
Plugin return data max string
Re: Plugin return data max string
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugin return data max string
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.
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.
Grumpy Olde IT Guy
Re: Plugin return data max string
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?
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 -tBe sure to check out our Knowledgebase for helpful articles and solutions!