I am using the following versions:
Nagios Core 4.0.1
Nagios-plugins-1.5
NRPE-2.15
check_logfiles (plugin)-3.6.2.1
Thanks
How to show multi-line of output using check_logfiles
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: How to show multi-line of output using check_logfiles
When run via cli, how is the output displayed from this check?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: How to show multi-line of output using check_logfiles
Spenser,
I tried to run the command in the CLI of the monitored host and it works well. All the errors are being displayed on the screen.
So, basically it works fine on the CLI on the monitored host. But in the email notification some error lines are chopped out..
Thanks
I tried to run the command in the CLI of the monitored host and it works well. All the errors are being displayed on the screen.
So, basically it works fine on the CLI on the monitored host. But in the email notification some error lines are chopped out..
Thanks
Re: How to show multi-line of output using check_logfiles
Can you show us the notification command definition?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to show multi-line of output using check_logfiles
Sorry for delayed response. I think there is a limit on the amount of data that can be transferred by nrpe (about 1KB). If the data exceeds than the limit for a particular check then the data is chopped off..
The best that can be done is to use $options = 'report=long'; in the log monitoring configuration file.
Thanks
The best that can be done is to use $options = 'report=long'; in the log monitoring configuration file.
Thanks
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: How to show multi-line of output using check_logfiles
Another alternative is to use check_by_ssh as it does not have the 1KB limitation.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: How to show multi-line of output using check_logfiles
Great! I will try that out. Thanks Box293
Re: How to show multi-line of output using check_logfiles
Locking this. Please feel free to PM any of the support team or open a new topic.
/Luke