How to change Number of character accepted by Nagios plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

How to change Number of character accepted by Nagios plugin

Post by sgoffar »

Hi Team,

We are using check_log3.pl ,check_customlog.pl to monitor some log file. Number of character return is more than what we are seeing in Nagios console.

Can you please help us to increase the value.


Total Number of line return by plugin:Found 7 lines

Line accepting by Nagios:5 lines
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How to change Number of character accepted by Nagios plu

Post by dwhitfield »

There are a few different checklog programs. Are you talking about https://exchange.nagios.org/directory/P ... pl/details ? What about the other one?

Also, could you send us a screenshot of what you are seeing? Thanks!
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: How to change Number of character accepted by Nagios plu

Post by sgoffar »

Yes, Actually the output capture by the script is restricted to 1kb only. Is there any way to increase the size.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to change Number of character accepted by Nagios plu

Post by rkennedy »

This may be what you're looking for if it's just a graphical issue - https://support.nagios.com/kb/article.php?id=478

If not, when you run it over the CLI - is the data still truncated? It may be limited at perhaps an agent level. If you're using an agent, you'll want to move to NRPEv3 for a larger output support through remote agents, as NRPEv2 has its limitations.
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: How to change Number of character accepted by Nagios plu

Post by sgoffar »

It's in CLI level. Currently we are using NRPE v2.15. Can you please let us know the output size of NRPE version 2 and NRPE version 3

Can you please confirm if we upgrade the issue will resolved.

System OS is Red Hat Enterprise Linux Server release 7.3 (Maipo)
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to change Number of character accepted by Nagios plu

Post by rkennedy »

If it's at a CLI level like you mentioned, then yes, upgrading will fix it. NRPEv2 had limited support for long output, where as NRPEv3 supports 4K natively.

These links might help -
https://support.nagios.com/kb/article.p ... ategory=22
https://support.nagios.com/kb/article.php?id=520
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to change Number of character accepted by Nagios plu

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Locked