Open bonj1987 opened 1 year ago
Please show me: 1) device id - management->devices->choose device->url will be host.php?action=edit&id=XXX . XXX is id 2) device status- management->devices - what is in status, in_state, uptime colums? 3) result of sql query select * from plugin_uptime_data where host_id=XXX (from point 1)
device ID is 1 and on that system's page i see Uptime: 44990699 (5days, 4hours, 58minutes) for #2 in your response, i see the same uptime for #3 in your response, i went into mysql and ran query select * from plugin_uptime_data where host_id=1 that came back with 0 rows returned
also my cacti log shows
2023-01-11 09:57:03 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 -- 2023-01-11 09:52:07 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:47:17 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:42:27 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:37:26 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:32:02 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:27:21 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:22:12 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:17:16 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:12:19 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:07:15 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2 2023-01-11 09:02:07 - CMDPHP PLUGIN UPTIME STATS: Duration: 0, Hosts: 2poller time is 1 or 5 minutes? How long was the downtime?
my pollar time is five min. (regular cacti poller). a server reboot may be 1 minute.. but shouldnt it show "x" times it was rebooted?
You are right ... there is problem with detection short outage. I have to look at it. Thank you for reporting
thank you for looking into it!
any update?
please try master branch code
redownoaded it.. disabled, uninstalled, deleted the directory. copied new one in place, install enable. when i go to the uptime tab.. Sorry, we could not process your last action. Error: 500 Internal Server Error Reason: The response to the last action was unexpected
the uptime tab php file was missing this at the end <?php
}
ups.... sorry ... thank you for reporting
i have cacti set to notify me when a host reboots.. and that works. i installed your plug in, but i cannot seem to pull any of the uptime\reboot data that i should be seeing.