Check_MK Plugin

Questions about Cobian Reflector
Post Reply
edvler
Posts: 4
Joined: 04 Oct 2021, 17:39

Check_MK Plugin

Post by edvler »

Hello,

I wrote a Cobian Reflector plugin for Checkmk (and also for Cobian Backup).

URL: https://github.com/edvler/check_mk-cobian_reflector

I've some points, which could be improved for a perfect monitoring integration in Reflector.

1. Logfile improvements
I'm parsing the Logfiles located in C:\Program Files\Cobian Reflector\Logs\*

With Cobian Reflector I don't see a "failed" number in the result line of a Backup.
2021-10-04 11:58:38 ** Backup for task "TEST" ended. Number of backed up files: 1. Created folders: 0. Backup size: 165 bytes. **

Therefore it's hard to check if any "errors" occurred.
Could you add that information to the line above?

2. Flush Log Writer after Backup finished
I've seen it several times, that the logwriter needs a long time to flush the informations to the logfile.
It would be nice, to flush the lofgile after the backup completes. So the backup informations are avaliable afert a complete backup for Check_mk.

Thank you for your great software!

Greets
Matthias
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Check_MK Plugin

Post by cobian »

Thanks!
--
Luis Cobian
Cobian Backup's creator
edvler
Posts: 4
Joined: 04 Oct 2021, 17:39

Re: Check_MK Plugin

Post by edvler »

It would be nice if all the informations below are in one line at the end of the job. This would simplyfy the parsing of the logfile, because I've only to search for one line per job.

2021-10-04 11:58:38 ** Backup for task "TEST" ended. Number of backed up files: 1. Created folders: 0. Backup size: 165 bytes. Failed: XXX. VSS: successfull/failed. Job-Runtime: XX Minutes. **
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Check_MK Plugin

Post by cobian »

Thanx. But how is this handled if another language but english is used?
Fpr the next version I will add an automatic flush at the end of the backup.
--
Luis Cobian
Cobian Backup's creator
edvler
Posts: 4
Joined: 04 Oct 2021, 17:39

Re: Check_MK Plugin

Post by edvler »

Check_MK is mainly used by Administrators and my opinion is that they accept a english language in the GUI and the logfile as requirement.
I'll write a notice in the documentation, that the plugin is working only with the enlish language.

Is it possible to change the ** status line ** als suggested?
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Check_MK Plugin

Post by cobian »

Will see what can be done. There are a lot of people translating the files just now and could be a pain to change at the moment. I wonder if there could be some other easier way line, not using the log. For example: generating a simple text file after every task that you could parse and delete... I will think more about this.
--
Luis Cobian
Cobian Backup's creator
edvler
Posts: 4
Joined: 04 Oct 2021, 17:39

Re: Check_MK Plugin

Post by edvler »

An extra file per job with the mentioned informations would also be great!
Post Reply