[omd-devel] check_mk_agent - local cache first query

Mathias Kettner mk at mathias-kettner.de
Sun Nov 10 16:46:36 CET 2013


Hi,

that's the way it's designed. The cached plugins are always run
in the background.

By the way: it's minutes, not seconds! Instead of 300 and 3600 you
probably mean 5 and 60.

Am 08.11.2013 16:43, schrieb Stephan Helas:
> Hallo,
>
> if a local check is configured to send local cached data for some time,
> the first query is always empty. In result "cmk -I <server> finds twice
> services.
>
>
>
> # Filesystem on agent
> # ls  -lR /usr/lib/check_mk_agent/local/
> /usr/lib/check_mk_agent/local/:
> total 16
> drwxr-xr-x 2 root root 4096 Nov  8 13:06 300
> drwxr-xr-x 2 root root 4096 Nov  7 10:20 3600
> -rwxr-xr-x 1 root root  366 Oct 31 15:06 checkdns
> -rwxr-xr-x 1 root root 1534 Oct 31 12:31 pdnsd
>
> /usr/lib/check_mk_agent/local/300:
> total 20
> -rwxr-xr-x 1 root root  388 Nov  5 17:40 exim4_panic
> -rwxr-xr-x 1 root root  842 Nov  8 00:31 exim4_smtp_relay
> -rwxr-xr-x 1 root root 2117 Oct 30 18:34 fsck_needed
> -rwxr-xr-x 1 root root 5028 Nov  7 12:31 restart_needed
>
> /usr/lib/check_mk_agent/local/3600:
> total 0
>
>
>
> # first run
> cmk  -d <SERVER>
> <<<local>>>
> 0 DNS_Relay time=0.206155s;;;0.000000 DNS OK: 0.206 seconds response
> time. google.de returns 173.194.70.94
> 0 pdnsd cache=1.18;90;100 2 DNS Server up
> <<<apache_status>>>
>
> # second run
> cmk  -d <SERVER>
> <<<local>>>
> 0 DNS_Relay time=0.015269s;;;0.000000 DNS OK: 0.015 seconds response
> time. google.de returns 173.194.70.94
> 0 pdnsd cache=1.18;90;100 2 DNS Server up
> 0 exim4_panic - runs just fine
> 0 exim4_smtp_relay time=0.013089s;3.000000;5.000000;0.000000 SMTP OK -
> 0.013 sec. response time
> 0 Fsck - filesystems /dev/xvda3 /dev/xvda1  are fsck safe
> 0 Reboot - No restart needed
> <<<apache_status>>>
>
>


-- 

Mathias Kettner

---
Mathias Kettner GmbH
Kellerstraße 29, 81667 München, Germany
Registergericht: Amtsgericht München,  HRB 165902
Geschäftsführer: Mathias Kettner
http://mathias-kettner.de
Tel. +49 89 1890 435-0
Fax. +49 89 1890 435-29



More information about the omd-devel mailing list