Page 2 of 2
Re: How to show multi-line of output using check_logfiles
Posted: Thu Nov 06, 2014 3:30 pm
by nshah11
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
Re: How to show multi-line of output using check_logfiles
Posted: Thu Nov 06, 2014 5:02 pm
by sreinhardt
When run via cli, how is the output displayed from this check?
Re: How to show multi-line of output using check_logfiles
Posted: Thu Nov 06, 2014 7:26 pm
by nshah11
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
Re: How to show multi-line of output using check_logfiles
Posted: Fri Nov 07, 2014 3:07 pm
by lmiltchev
Can you show us the notification command definition?
Re: How to show multi-line of output using check_logfiles
Posted: Wed Jan 07, 2015 4:39 pm
by nshah11
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
Re: How to show multi-line of output using check_logfiles
Posted: Wed Jan 07, 2015 5:28 pm
by Box293
Another alternative is to use check_by_ssh as it does not have the 1KB limitation.
Re: How to show multi-line of output using check_logfiles
Posted: Thu Jan 08, 2015 1:54 am
by nshah11
Great! I will try that out. Thanks Box293
Re: How to show multi-line of output using check_logfiles
Posted: Thu Jan 08, 2015 2:39 pm
by lgroschen
Locking this. Please feel free to PM any of the support team or open a new topic.