[Check_mk (english)] Lifetime for passive checks
schulte.marcel at gmail.com
Wed Feb 6 00:16:25 CET 2019
just an addition to my previous mail...
What is 'Maximum age for piggyback files' set to in global settings?
This should be the max age generally.
Am Mi., 6. Feb. 2019 um 00:12 Uhr schrieb Marcel Schulte
<schulte.marcel at gmail.com>:
> Hi Ron,
> your agent sections (those with 3 braces, not the piggyback ones with
> 4 braces) should be expanded like this:
> Am Di., 5. Feb. 2019 um 19:56 Uhr schrieb Ronald <pd1acf at gmail.com>:
> > Dear All,
> > If I recall correctly, there were some pointers on this list in the
> > past with respect to passive/piggyback checks, and the 'lifetime' in
> > Check_MK.
> > I do the have following test setup:
> > 1)
> > A remote host providing a subset of the check_mk_agent information:
> > echo "<<<<test_passive>>>>"
> > echo "<<<df>>>"
> > echo "/dev/sda5 ext4 8518920 0426872 4636268 57%
> > /mnt/test_passive"
> > echo "<<<mem>>>"
> > echo "MemTotal: 2041824 kB"
> > ... snip ....
> > echo "DirectMap2M: 1998848 kB"
> > echo "<<<<>>>>"
> > 2)
> > A check_mk server receiving the above data in the folder
> > /usr/lib/check_mk_agent/plugins/test_passive
> > There is a host configured in check_mk where the host properties are set to:
> > - Hostname= test_passive
> > - IPv4 address = 127.0.0.1
> > - check_mk_agent = None
> > - SNMP = No SNMP
> > 3)
> > A rule is enabled to process passive checks.
> > Now as long as this file is present in the plugins folder, the Host
> > status is green, and services are also green. Changing values are
> > correctly interpreted by Check_MK.
> > However, I am seeking for directions to make the services/host go into
> > Warning/Crititcal state when the file would not be updated in time,
> > for example if it is older than 1 hour.
> > Should I be adding a 'timestamp' in the file, and if so, how should it be set?
> > Any help is greatly appreciated,
> > Ron
> > _______________________________________________
> > checkmk-en mailing list
> > checkmk-en at lists.mathias-kettner.de
> > Manage your subscription or unsubscribe
> > https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en
More information about the checkmk-en