xmacan / plugin_uptime

Cacti plugin which collects restart/uptime history and also displays restarts in graphs
GNU Lesser General Public License v2.1
2 stars 0 forks source link

cacti 1.2.22 not showing uptime\reboots #3

Open bonj1987 opened 1 year ago

bonj1987 commented 1 year ago

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.

xmacan commented 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)

bonj1987 commented 1 year ago

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

bonj1987 commented 1 year ago

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: 2
xmacan commented 1 year ago

poller time is 1 or 5 minutes? How long was the downtime?

bonj1987 commented 1 year ago

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?

xmacan commented 1 year ago

You are right ... there is problem with detection short outage. I have to look at it. Thank you for reporting

bonj1987 commented 1 year ago

thank you for looking into it!

bonj1987 commented 1 year ago

any update?

xmacan commented 1 year ago

please try master branch code

bonj1987 commented 1 year ago

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

bonj1987 commented 1 year ago

the uptime tab php file was missing this at the end <?php

}

xmacan commented 1 year ago

ups.... sorry ... thank you for reporting