NRPE v.2.15 set maximum output lenght

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist,

Yes. the full output in nagios CLI, you can see the full messages with "END 013" but in nagios web, it only display "END 009" which means 9 messages displayed.

From the below command result, How can we confirm the characters capacity set to 50000?

Code: Select all

[root@nagiosxi ~]# echo "alter table nagios.nagios_servicestatus modify perfdata varchar(50000);" | mysql -pnagiosxi
[root@nagiosxi ~]# echo "desc nagios.nagios_servicestatus" | mysql -t -pnagiosxi | grep "output\|perfdata"
| output                        | mediumtext   | YES  |     | NULL                |                |
| long_output                   | mediumtext   | YES  |     | NULL                |                |
| perfdata                      | mediumtext   | YES  |     | NULL                |                |
Any command for us to verify the content of field so that we can make some tracing for myself?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE v.2.15 set maximum output lenght

Post by jdalrymple »

I would say you're running into a NagiosXI limitation at this point, not an NRPE limitation. One thing I've noticed is that the first line of status output is limited to 255 characters. Beyond that I can only display about 6KB of information in longstatusoutput.

Do you really seek to display 50KB of information on your monitor? The use case seems quite narrow to me. 50KB of test would require a monitor resolution greater than 2560x1600 to display if the text went from border to border. If that's really what you'd like I suggest putting in a bug request at tracker.nagios.org.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi jdalrymple,

I will explain this situation to operation team for nagios limitation for 6k information. If now we set the 6K information for long output. Any concern to DB side? If yes, how can we housekeep to prevent DB grow unlimited. Because we located /usr/local/nagios in a 300G mount point.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE v.2.15 set maximum output lenght

Post by abrist »

michaelli wrote:Any concern to DB side?
There is some, you may notice the affected tables growing very large over time. Also, it may slow down queries.
michaelli wrote:If yes, how can we housekeep to prevent DB grow unlimited.
Well, we do provide some performance tuning options in: Admin --> Performance Settings --> Databases. You will need to watch disk space usage for the path: /var/lib/mysql/nagios as that is where the database tables are located. If the tables are growing to a too large of size, you may need to tune the performance settings.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist,

I have report the issue as below link and not yet get any update.

https://tracker.nagios.com/view.php?id=735
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE v.2.15 set maximum output lenght

Post by tmcdonald »

It may take some time for the developers to address this, and it is not guaranteed that it will be implemented. As pointed out it is somewhat of a narrow use case.

Also when filing bugs/features, please match the priority and severity to what the problem realistically is. Currently it is set to "Priority: Urgent" and "Severity: Major" - those settings are reserved for bugs that cause major outages or even damage to a system. I will be adjusting this feature request accordingly.
Former Nagios employee
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi tmcdonald,

For Solaris 10 platform, we can complier the NRPE program. But in AIX 5.3 / 6.1, we don't have C compiler.

Could you help us to compile for below parameter

MAX_INPUT_BUFFER 65535

Thanks.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE v.2.15 set maximum output lenght

Post by jdalrymple »

You really need to compile this yourself. GCC is an open source compiler available for Solaris amongst a zillion other platforms. If we compiled it in-house there would be too many variables (OS version, std library versions etc) that could cause problems when you try to run it on your system.

https://www.google.com/?gws_rd=ssl#q=In ... on+solaris

Admittedly it's not as easy as yum install gcc - however if you're using Oracle Solaris I believe GCC is available in IPS.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi tmcdonald,

I cannot see any update for my post. Could you help to query your developer what is the status? It is because I have to update the issue to my manager.

https://tracker.nagios.com/view.php?id=735#bugnotes
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE v.2.15 set maximum output lenght

Post by jdalrymple »

We don't push the developers, they prioritize things as they see fit. Right now they are working on 2 major upgrades to the commercial products. They won't be addressing community needs unless security related until after those releases. In your case there are no promises that they won't just deny the feature request. The nature of your request could lead to other performance issues for our customers with large deployments.

If you have an immediate need for code changes please contact sales for a custom development quote.

[email protected]
Locked