Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
There was bug when the first item (r) is not one char. That is a simple fix for it:
— check_cpu.py.orig 2011-11-05 20:23:46.000000000 +0100 +++ check_cpu.py 2011-11-05 20:14:00.000000000 +0100 @@ -117,13 +117,13 @@
statLines = string.split( statOut, ‘n’) -lastLine = statLines[-2] +lastLine = statLines[-2].strip()
n = len(statLines) for i in range(0, n): idcheck = re.search(“id”, statLines[i]) if idcheck: – idLine = statLines[i] + idLine = statLines[i].strip()