-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
When using CMD poller, Failure and Recovery dates may have incorrect values #5727
Comments
Yea, he has a messed up sql_mode that does not allow for zero date. |
@xmacan and I both have the dame sql mode |
Before swapping to cmd MariaDB [cacti]> select hostname,description,status,status_fail_date,status_rec_date from host where description = 'mancinisw' \G After MariaDB [cacti]> select hostname,description,status,status_fail_date,status_rec_date from host where description = 'mancinisw' \G |
Weird. It's more a thold issue IMHO. |
I don't have thold on this test bed
I'm not in front of my pc so can't confirm 100%
…On Sun, Apr 14, 2024, 13:29 TheWitness ***@***.***> wrote:
Weird. It's more a thold issue IMHO.
—
Reply to this email directly, view it on GitHub
<#5727 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGEXTGMV3ZR6YF7LC3KX3DY5K4HZAVCNFSM6AAAAABGGIES42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJUGEZDQMZWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I just fixed thold for this issue. |
I've fixed this in the thold plugin. |
I tested it without thold, it isn't thold issue. SQL mode: |
That is correct. But I corrected it in Thold. |
Okay fixing shortly. Great catch. |
Incorrect values status_fail_date and status_rec_date with cmd poller
Yep this is good now MariaDB [cacti]> select hostname,description,status,status_fail_date,status_rec_date from host where description = 'mancinisw' \G |
Incorrect values status_fail_date and status_rec_date with cmd poller
What is the payout and how do I get the balance of the money |
If we only had it to begin with. |
If cmd poller is used, status_rec_date and staus_fail_date are around 1970-01-01 (@bmfmancini has 1969, I guess it is timezone/summer time).
New device, snmp works well, device is online:
+---------------------+---------------------+--------------------------------+--------+--------------------+------------------------+ | status_fail_date | status_rec_date | status_last_error | status | status_event_count | snmp_sysUpTimeInstance | +---------------------+---------------------+--------------------------------+--------+--------------------+------------------------+ | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | | 0 | 0 | 0 |
I change snmp port to simulate down state:
| 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | Device did not respond to SNMP | 3 | 1 | 2271887200 |
after few minutes:
| 1970-01-01 01:33:44 | 0000-00-00 00:00:00 | Device did not respond to SNMP | 1 | 1 | 2271887200 |
after recovering:
| 1970-01-01 01:32:50 | 2024-04-14 18:50:00 | Device did not respond to SNMP | 3 | 0 | 2271923200 |
after next poller cycle:
| 1970-01-01 01:32:50 | 1970-01-01 01:33:44 | Device did not respond to SNMP | 3 | 0 | 2271929200 |
@bmfmancini confirmed it. With spine works fine
The text was updated successfully, but these errors were encountered: