Page 1 of 1

serviceoutput from check_logfiles

Posted: Tue Oct 16, 2012 6:50 am
by nagniot
Hi,

Nagios send me notification but it only has last line founded in log. When i check service on www, there is list of all error lines.

How i can change configuration to send me all wrong lines?

I tried to add LONGSERVICEOUPUT in contact command, but id doesn't work.

(In check_logfiles, i type "long")

Please help

Re: serviceoutput from check_logfiles

Posted: Tue Oct 16, 2012 5:09 pm
by jsmurphy
I'm not sure I fully understand the problem, are you able to post a picture of the full status output from Nagios and the message you are receiving? If you could also post your contact command definition as well that would probably help.

Re: serviceoutput from check_logfiles

Posted: Wed Oct 17, 2012 7:27 am
by nagniot
Hi
thank you for your reply! :)

I found how do that:
$SERVICEOUTPUT$$LONGSERVICEOUTPUT$

Re: serviceoutput from check_logfiles

Posted: Wed Oct 17, 2012 4:45 pm
by jsmurphy
glad you worked it out!