Module: check_mk
Branch: master
Commit: 901328f78de8875474b4b4ecaed167cc4e933276
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=901328f78de887…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Oct 16 17:03:43 2012 +0200
FIX: ps: avoid exception, when CPU% is missing (Zombies on Solaris
---
ChangeLog | 1 +
checks/ps | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bb380a5..7ad9b44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -101,6 +101,7 @@
* windows_updates agent plugin: Fetching data in background mode, caching
update information for 30 minutes
* FIX: netapp_vfiler: fix inventory function (thanks to Falk Krentzlin)
+ * FIX: ps: avoid exception, when CPU% is missing (Zombies on Solaris)
1.2.1i1:
Core:
diff --git a/checks/ps b/checks/ps
index daa8b0c..386488a 100644
--- a/checks/ps
+++ b/checks/ps
@@ -219,7 +219,7 @@ def check_procs(item, params, info, with_perfdata):
if len(addinfo) >= 4: # extended performance data
virtual_size += int(addinfo[1]) # kB
resident_size += int(addinfo[2]) # kB
- percent_cpu += float(addinfo[3])
+ percent_cpu += savefloat(addinfo[3])
extended_perfdata = True
if with_perfdata: