kuhn-ruess / Checkmk-Checks

Checks and Stuff for Check_MK
MIT License
36 stars 20 forks source link

fix vanished filesystem checks #66

Closed andibaer closed 11 months ago

andibaer commented 11 months ago

ich musste int vor die Werte im print setzen.

Bastian-Kuhn commented 11 months ago

Hallo Andi,

bin nicht sicher ob das optimal ist,

>>> 1000/1024
0.9765625
>>>
>>> int(1000/1024)
0
>>>
>>> int(round(1000/1024,0))
1
>>>

eventuell besser runden?

andibaer commented 11 months ago

Hi Bastian,

habe mal ein paar Stichproben gemacht. Die Werte passen bei kleineren GB aber auch größeren GB Werten. Erhalte die gleichen Werte wie auch über die PURE Web-Gui.

Mit freundlichen Grüßen

Andreas Bär (Cloud) Computing Center Teamlead Virtualisation & Hosting

BurdaSolutions

Burda Digital Systems GmbH Hubert-Burda-Platz 1, 77652 Offenburg Phone +49 781 84-2061 Fax +49 781 84 36 16 @.**@.> www.burdasolutions.comhttp://www.burdasolutions.com/

Geschäftsführer: Gerhard Thomas Handelsregister: Amtsgericht Freiburg • HRB 471696


Von: Bastian Kuhn @.> Gesendet: Donnerstag, 17. August 2023 13:30 An: kuhn-ruess/Checkmk-Checks @.> Cc: Bär Andreas @.>; Author @.> Betreff: Re: [kuhn-ruess/Checkmk-Checks] fix vanished filesystem checks (PR #66)

Hallo Andi,

bin nicht sicher ob das optimal ist,

1000/1024 0.9765625

int(1000/1024) 0

int(round(1000/1024,0)) 1

eventuell besser runden?

— Reply to this email directly, view it on GitHubhttps://github.com/kuhn-ruess/Checkmk-Checks/pull/66#issuecomment-1682124018, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFSBX7NIUELFJVXVINXCQJTXVX6GNANCNFSM6AAAAAA3T4OOSA. You are receiving this because you authored the thread.Message ID: @.***>

Bastian-Kuhn commented 11 months ago

Bedeutet nur auf Int fixen reicht?

Dann am besten int() oben bei der Berechnung und nicht beim Print:

Was mich jetzt nur verwirrt, ich habe bereits eine positive Rückmeldung ohne die INT Umwaldung…

PastedGraphic-1

Auch arbeitet Checkmk auch bei anderen df checks wohl mit Float:

Bildschirmfoto 2023-08-18 um 09 48 36

Welche Exception bekommst du genau, und welche Checkmk Version ist es?

Am 17.08.2023 um 13:40 schrieb andibaer @.***>:

Hi Bastian,

habe mal ein paar Stichproben gemacht. Die Werte passen bei kleineren GB aber auch größeren GB Werten. Erhalte die gleichen Werte wie auch über die PURE Web-Gui.

Mit freundlichen Grüßen

Andreas Bär (Cloud) Computing Center Teamlead Virtualisation & Hosting

BurdaSolutions

Burda Digital Systems GmbH Hubert-Burda-Platz 1, 77652 Offenburg Phone +49 781 84-2061 Fax +49 781 84 36 16 @.**@.> www.burdasolutions.comhttp://www.burdasolutions.com/

Geschäftsführer: Gerhard Thomas Handelsregister: Amtsgericht Freiburg • HRB 471696


Von: Bastian Kuhn @.> Gesendet: Donnerstag, 17. August 2023 13:30 An: kuhn-ruess/Checkmk-Checks @.> Cc: Bär Andreas @.>; Author @.> Betreff: Re: [kuhn-ruess/Checkmk-Checks] fix vanished filesystem checks (PR #66)

Hallo Andi,

bin nicht sicher ob das optimal ist,

1000/1024 0.9765625

int(1000/1024) 0

int(round(1000/1024,0)) 1

eventuell besser runden?

— Reply to this email directly, view it on GitHubhttps://github.com/kuhn-ruess/Checkmk-Checks/pull/66#issuecomment-1682124018, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFSBX7NIUELFJVXVINXCQJTXVX6GNANCNFSM6AAAAAA3T4OOSA. You are receiving this because you authored the thread.Message ID: @.***> — Reply to this email directly, view it on GitHub https://github.com/kuhn-ruess/Checkmk-Checks/pull/66#issuecomment-1682136404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3QJVWIV53I7JYGNTYYPLXVX7MHANCNFSM6AAAAAA3T4OOSA. You are receiving this because you commented.