diff options
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rw-r--r-- | abs/core/xymon/hbnotes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py index 158bcd8..8d73dbf 100644 --- a/abs/core/xymon/hbnotes.py +++ b/abs/core/xymon/hbnotes.py @@ -214,10 +214,12 @@ def create_notes(): cursor = db.cursor() cursor.execute("SELECT DISTINCT(hostname) from settings") result = cursor.fetchall() - for row in result: cursor.execute("select value,data from settings where hostname=%s and value in ('HostSystemType','HostHwuuid');",(row)) hostvalues=cursor.fetchall() + #This is here to ignore non LinHES hosts, or those that don't have a HostSystemType + if len(hostvalues) == 0: + continue found_uuid="false" filename="/home/xymon/server/www/notes/" filename+=str(row[0]) |