-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[storage::emc::datadomain::snmp::plugin] - mode(cleaning) : Bad status when cleaning ending #5441
Comments
Hello :) I've work on your issue and it seems that the equipment timezone was considered as Example :Monday 17th February 2025 10:24 (system timezone='Europe/Paris')
Plugin output :
Second case considering timezone='Europe/Paris'
Third case considering timezone='America/Los_Angeles'
You can try this PR to check if this solve your issue: #5453 |
Hum, I'll check that ! So, by vanilla, the plugin consider tha equipement in Europe/London timezone ? Becasue my Datadomain have a good timezone.
But how did you think at that ? 🤔 |
Because it was a problem in one hour and often when working with timezones in France a time issue around one hour could be a timezone issue. It's not your equipment that returns a wrong timezone, it's the way the plugin interpret this timezone as a Europe/London time and not a Europe/Paris time. I'm not sure if my explanation is clear sorry ^^' |
Mmmmokay, so the plugin work with UTC+0 by default ? Or the perl system ? I think it is a good fix. |
From what I understand, the time of the system running the plugin correctly takes into account the notion of UTC but the value retrieved from the OID is taken as UTC+0 when this is not necessarily the case. Adding the timezone option allows you to define the equipment's timezone and therefore correct this value. |
Hello :) This Issue should be resolved by the march release and this PR #5453 |
Hi all !
Quick description
When i use the storage::emc::datadomain::snmp::plugin plugin with cleaning mode, I get a CRITICAL status when the last phase of cleaning arrive.
The last phase of cleaning on Datadomain is a summary phase (12/12). At this moment, the filesystems.cleaning.execution.last.days is 0. It's normal because the cleaning isn't totally finished, so the count start after the ending of cleaning.
But, for some weird reason, I've 1h of CRITICAL, because the filesystems.cleaning.execution.last.days is set to a negative days oO -> show result below.
How to reproduce
Environment: Debian 11.11.
Version of the plugin: 20250114-1+deb11u1
Command line: /usr/lib/centreon/plugins//centreon_emc_datadomain.pl --plugin=storage::emc::datadomain::snmp::plugin --mode=cleaning --hostname=ip.ip.ip.ip --snmp-version='3' --snmp-community='silenthill' --snmp-username='doe' --authprotocol='MD5' --authpassphrase='ilovesarahconnor' --privprotocol='AES' --privpassphrase='johnmcclane' --warning-last-cleaning-execution='7' --critical-last-cleaning-execution='15'
Expected result
OK: cleaning last execution: 1m 17s | 'filesystems.cleaning.execution.last.days'=0d;0:7;0:15;0;
Actual result (it's a history of dataperf which had get with the command line)
OK: cleaning last execution: running (phase 12 of 12 : summary) | 'filesystems.cleaning.execution.last.days'=0d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning: phase 12 of 12 (summary)
ven. 07 févr. 2025 04:10:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-2922d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:15:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-2623d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:20:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-2321d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:25:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-2022d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:30:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-1723d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:35:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-1422d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:40:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-1122d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:45:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-821d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:50:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-523d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 04:55:01 CET
CRITICAL: cleaning last execution: never | 'filesystems.cleaning.execution.last.days'=-222d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 05:00:01 CET
OK: cleaning last execution: 1m 17s | 'filesystems.cleaning.execution.last.days'=0d;0:7;0:15;0;
.1.3.6.1.4.1.19746.1.3.5.1.1.2.0 = Cleaning finished at 2025/02/07 03:58:44.
ven. 07 févr. 2025 05:05:01 CET
Closing words
Good weekend !
The text was updated successfully, but these errors were encountered: