Page 1 of 2
Content of Service Status Detail and State History
Posted: Sun Nov 13, 2016 10:52 pm
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
Re: Content of Service Status Detail and State History
Posted: Mon Nov 14, 2016 11:08 am
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
Re: Content of Service Status Detail and State History
Posted: Tue Nov 15, 2016 4:55 am
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,
Re: Content of Service Status Detail and State History
Posted: Tue Nov 15, 2016 11:39 am
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.
Re: Content of Service Status Detail and State History
Posted: Tue Nov 15, 2016 9:17 pm
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
- 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.
Re: Content of Service Status Detail and State History
Posted: Wed Nov 16, 2016 11:14 am
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.
Re: Content of Service Status Detail and State History
Posted: Wed Nov 16, 2016 9:30 pm
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.
Re: Content of Service Status Detail and State History
Posted: Thu Nov 17, 2016 11:02 am
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.
Re: Content of Service Status Detail and State History
Posted: Thu Nov 17, 2016 10:47 pm
by larry.lo
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.
Re: Content of Service Status Detail and State History
Posted: Fri Nov 18, 2016 11:34 am
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.