We’re trying to monitor a backup server which collects the data from about 100 servers. But we got the problem, that the Checkmk Agent always runs into a timeout, because it need about 20 minutes to complete.
This is due to the large number of files that we need to check.
I have the following setting in the fileinfo.cfg:
Is there any way to outsource the fileinfo part so that I can run it asynchronously via a cronjob, create a textfile with the results and just parse this textfile?
This would be much much faster and the check would not run into a timeout nearly evertime it runs.
Fist of all don’t use fileinfo, use mk_filestats instead.
In mk_filestats you can play around with the filename, filesize and fileage filters and the diffrent aggregation options to get the best result for your needs. On servers with many files I often use count_only or extremes_only as aggregation.
In addition, mk_filestats can also be executed async.
I’ve tested it with the mk_filestats.
But I got the same problem.
The agents just runs like forever.
I think I will try to replicate the logic of the script to write the results into a textfile and then just parse this file.
So I can schedule this script via cron but the agent will just run in time.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.