Search found 4 matches

by OzGobo
Wed Dec 21, 2016 4:58 pm
Forum: Open Source Nagios Projects
Topic: How to write to Nagios log file from eventhandler script
Replies: 6
Views: 2719

Re: How to write to Nagios log file from eventhandler script

Hi there,

Yep, lock it up. Thanks so much for the help.

Cheers,

Scott.
by OzGobo
Mon Dec 19, 2016 9:29 pm
Forum: Open Source Nagios Projects
Topic: How to write to Nagios log file from eventhandler script
Replies: 6
Views: 2719

Re: How to write to Nagios log file from eventhandler script

rkennedy wrote: One way around this, would be to log to a file that is publically available in the HTTP directory
That's awesome rkennedy! Thanks for sharing. :)
by OzGobo
Thu Dec 15, 2016 10:51 pm
Forum: Open Source Nagios Projects
Topic: How to write to Nagios log file from eventhandler script
Replies: 6
Views: 2719

Re: How to write to Nagios log file from eventhandler script

You might want to use a dedicated log file for the eventhandler's outputs if possible. Writing directly to the nagios.log file with 3rd party components can interfere with some things that Nagios XI does on the back-end (mostly with reporting). Thanks for your reply mcapra. I wanted to use the Nagi...
by OzGobo
Wed Dec 14, 2016 5:39 pm
Forum: Open Source Nagios Projects
Topic: How to write to Nagios log file from eventhandler script
Replies: 6
Views: 2719

How to write to Nagios log file from eventhandler script

Hi All, I'm playing with event handlers, but I'd like to write back to the Nagios log file from the scripts. I'm comfortable with echo >> but I'm unsure of the actual format. Is this specified somewhere? I think its just: [TIMESTAMP] [MESSAGE] I'm also not sure how I generate the timestamp, but this...