Module: check_mk
Branch: master
Commit: 7eff4ba6ebb4125f4416803cfc198142573fc63e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7eff4ba6ebb412…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 1 11:27:01 2013 +0100
livestatus_status: fix site detection in agent
---
agents/check_mk_agent.linux | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 9c4f56b..f020745 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -454,7 +454,7 @@ then
echo '<<<livestatus_status:sep(59)>>>'
for site in *
do
- if [ -d "$site" ] ; then
+ if [ -S "/omd/sites/$site/tmp/run/live" ] ; then
echo "[$site]"
echo -e "GET status" | /omd/sites/$site/bin/unixcat
/omd/sites/$site/tmp/run/live
fi