[omd-users] Monitoring file

Dennis Sweben d_sweben at hotmail.com
Mon Jan 30 20:19:26 CET 2017


Hi Marius,

thanks for your reply.
I actually was pointing more to.. monitoring a 'log' file on the monitoringserver itself
(omd server)
do I have to setup the agent on the omd server itself as well, and add is as being a... host to be monitored? And add the logfile as service to this host, or indeed a file monitoring or custom check indeed

I don't feel the need to setup a new server for a simple python script that'll run each 5 minutes or so

Kind regards,
Dennis Sweben

Sent from my iPhone

On 30 Jan 2017, at 19:08, Marius Pana <marius.pana at sphs.ro<mailto:marius.pana at sphs.ro>> wrote:

Depending on the frequency that you write to that file logwatch may be the easier solution: https://mathias-kettner.de/checkmk_logfiles.html
You may also want to look at writing a local check: https://mathias-kettner.de/checkmk_localchecks.html

Cheers,
Marius

From: <omd-users-bounces at lists.mathias-kettner.de<mailto:omd-users-bounces at lists.mathias-kettner.de>> on behalf of Dennis Sweben <d_sweben at hotmail.com<mailto:d_sweben at hotmail.com>>
Date: Monday, 30 January 2017 at 17:06
To: "omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de>" <omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de>>
Subject: [omd-users] Monitoring file

Hi all,

I made a python script that does a login to a custom server.
I would like to monitor a file that it can write.

The file will contain a string, Online
Or
Offline

I can run this on the monitoring server itself using a cronjob or whatever.

Whats the best way to monitor the output of this 'local file' on the monitoring-server itself?

I do want to have Ok, Unknown, Critical for this and trigger notifications etc.

Kind regards,
Dennis
_______________________________________________
omd-users mailing list
omd-users at lists.mathias-kettner.de<mailto:omd-users at lists.mathias-kettner.de>
http://lists.mathias-kettner.de/mailman/listinfo/omd-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20170130/7a5ffe51/attachment-0001.html>


More information about the omd-users mailing list