[omd-devel] check_mk_agent - local cache first query

Stephan Helas stephan.helas at pixelpark.com
Fri Nov 8 16:43:10 CET 2013


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>>>


-- 
Viele Grüße
Stephan Helas


More information about the omd-devel mailing list