serviceoutput from check_logfiles

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagniot
Posts: 11
Joined: Thu Aug 02, 2012 8:26 am

serviceoutput from check_logfiles

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: serviceoutput from check_logfiles

Post 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.
nagniot
Posts: 11
Joined: Thu Aug 02, 2012 8:26 am

Re: serviceoutput from check_logfiles

Post by nagniot »

Hi
thank you for your reply! :)

I found how do that:
$SERVICEOUTPUT$$LONGSERVICEOUTPUT$
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: serviceoutput from check_logfiles

Post by jsmurphy »

glad you worked it out!
Locked