Bug 16385 - univention-mrtg division by 0
univention-mrtg division by 0
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 2.3
Assigned To: Daniel Hofmann
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-13 12:17 CET by Janis Meybohm
Modified: 2009-12-21 08:46 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2009-11-13 12:17:10 CET
Alle 5min kommt seit dem Update von Pax eine Cron Mail:

/usr/sbin/univention-mrtg: line 108: 100 * 0 / 0: division by 0 (error token is "0")
Comment 1 Daniel Hofmann univentionstaff 2009-11-13 15:45:57 CET
Auf Systemen ohne Swap wird die Division durch 0 bei der Berechnung des Prozentwerts jetzt verhindert, indem der Prozentwert für diesen Fall auf 0 festgelegt wird.

Kein Changelog notwendig, da Swapverbrauch wohl erst für 2.3 hinzukam:

\item \ucsName{univention-maintenance} erzeugt nun auch Graphen für die
Überwachung von Speicher- und Swapverbrauch.  Diese werden ebenfalls im
Modul \emph{System Statistiken} der \ucsUMC{} angezeigt \ucsBug{15191}.

Paket univention-maintenance baut gerade.
Comment 2 Felix Botner univentionstaff 2009-11-17 15:31:35 CET
OK, funktioniert.
Comment 3 Stefan Gohmann univentionstaff 2009-12-21 08:46:53 CET
UCS 2.3 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte der Bug dupliziert werden: "Clone This Bug".