Content of Service Status Detail and State History

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Content of Service Status Detail and State History

Post by larry.lo »

Hello,

Since the full messages of service cannot be shown, we are difficult to perform a health check for these services and daily tasks.
Can we configure the content of service status detail and State History, so that we can refine the limitation??
Thanks.

ServicesStatusDetail.png
StateHistory.png
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Content of Service Status Detail and State History

Post by rkennedy »

I can't tell if the data is truncating on the agent side, or on the XI side. If you run the check over the CLI, does it show all of the information?

If so, I think you could just follow this guide to expand your SQL tables - https://support.nagios.com/kb/article.php?id=478
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: Content of Service Status Detail and State History

Post by larry.lo »

Hi rkennedy,

I have tried to execute the mysql commands, but it seems nothing to change.
Do you have another ideas for checking this issue?
Thanks,
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Content of Service Status Detail and State History

Post by rkennedy »

I can't tell if the data is truncating on the agent side, or on the XI side. If you run the check over the CLI, does it show all of the information?
Could you try this part? Test this out, and let us know the result. We need to see if it's being truncated on the agent side, or Nagios side.
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: Content of Service Status Detail and State History

Post by larry.lo »

Hi rkennedy,

I have run the check over the CLI on the client side, and the result is good (all message can be displayed).
- Check command on Nagios XI

Code: Select all

check_nrpe!check_ListDest!!!!!!!
- Check command on client ($NAGIOS_HOME/etc/nrpe/common.cfg)

Code: Select all

command[check_ListDest]=sed '1,11'd /appl/BPIP/IIP/oat01/log/mq_mon/ListDest.out
Thanks.
Last edited by larry.lo on Wed Nov 16, 2016 9:10 pm, edited 3 times in total.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Content of Service Status Detail and State History

Post by rkennedy »

larry.lo wrote:Hi rkennedy,

I have run the check over the CLI on the client side, and the result is good (all message can be displayed).

- Check command on Nagios XI
check_nrpe!check_ListDest!!!!!!!

- Check command on client ($NAGIOS_HOME/etc/nrpe/common.cfg)
command[check_ListDest]=sed '1,11'd /appl/BPIP/IIP/oat01/log/mq_mon/ListDest.out

Thanks.
I actually need you to test on the XI side, on the CLI, against the client. The reason being, is the plugin on the client side will show all of the information, where as I'm not sure if it's getting truncated in communication (via NRPE), or the local XI machine here somewhere.
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: Content of Service Status Detail and State History

Post by larry.lo »

rkennedy wrote: I actually need you to test on the XI side, on the CLI, against the client. The reason being, is the plugin on the client side will show all of the information, where as I'm not sure if it's getting truncated in communication (via NRPE), or the local XI machine here somewhere.
Hi rkennedy,

-Test on the Nagios server via CLI:
Full messages cannot be displayed.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 172.31.9.107 -c check_ListDest
-Test on the Nagios server via XI:
Full messages cannot be displayed. (Output same as CLI, which is 1024)

Thanks.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Content of Service Status Detail and State History

Post by rkennedy »

The issue then, is that your data is being truncated at 1024 characters when being sent.

You'll want to upgrade (or fresh install) to NRPE v3. See this link -
https://support.nagios.com/kb/article.p ... ategory=22

For a fresh install -
https://support.nagios.com/kb/article.p ... ategory=22

I would test on a dev machine before moving it to prod, just so you can be sure it'll work, but with NRPE v3 there is 4k support so you should not have a problem sending that much data.
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: Content of Service Status Detail and State History

Post by larry.lo »

rkennedy wrote:The issue then, is that your data is being truncated at 1024 characters when being sent.

You'll want to upgrade (or fresh install) to NRPE v3. See this link -
https://support.nagios.com/kb/article.p ... ategory=22

For a fresh install -
https://support.nagios.com/kb/article.p ... ategory=22

I would test on a dev machine before moving it to prod, just so you can be sure it'll work, but with NRPE v3 there is 4k support so you should not have a problem sending that much data.
Hi rkennedy,

Thank you for your help.
I will try and test it on non-production server, hope it can fix the problem.
Thanks again.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Content of Service Status Detail and State History

Post by rkennedy »

It should with the 4k support. I'll leave this thread open, let us know if you have any questions about your testing.
Former Nagios Employee
Locked