Plugin return data max string

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Plugin return data max string

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin return data max string

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Plugin return data max string

Post 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.
Grumpy Olde IT Guy
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin return data max string

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked