Pira.cz Technical Forum

Utilities => Silence Detector => Topic started by: Daniel Bair on September 28, 2011, 03:23:31 pm

Title: Pira Log File bug
Post by: Daniel Bair on September 28, 2011, 03:23:31 pm
Pira does not seem to be flushing its write buffer when an alarm or return is triggered, except on exit. This is a problem for me as I am using the log file for a nagios check_mk plugin to detect the current status. If this could be fixed, it would be greatly appreciated.

Thanks,

-Daniel
Title: Re: Pira Log File bug
Post by: Jan on September 28, 2011, 05:36:15 pm
Yes, you are true. The log is flushed on exit and before sending email (as the log might be attached). If you give me an another event when to flush, I'll add it. Or maybe, if it is hard to define, I'll flush after each line in the log...
Title: Re: Pira Log File bug
Post by: Jan on October 02, 2011, 07:48:57 pm
The software has been updated.
Title: Re: Pira Log File bug
Post by: Daniel Bair on December 21, 2011, 01:55:52 am
Thanks, That did it!
Title: Re: Pira Log File bug
Post by: RadioMan on March 24, 2014, 01:49:21 pm
I suggest using something like SendEmail (http://caspian.dotconf.net/menu/Software/SendEmail/).

Attach the SD logfile and run the SendEmail program by using scheduler.