Skip to content

Commit

Permalink
Fixing #5364 - Cactid initial startup provides false error message
Browse files Browse the repository at this point in the history
Cactid, on initial startup reports that the database connection went away which is erroneous
  • Loading branch information
TheWitness committed Jun 11, 2023
1 parent 6fd07fc commit 2d32a90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Cacti CHANGELOG
-issue#5355: SNMP Uptime is not always ignored for spikekills
-issue#5356: Improve downed Device detection
-issue#5360: Plugin missing functions warning should be debounced
-issue#5364: Cactid, on initial startup reports that the database connection went away which is erroneous
-feature: Upgrade billboard.js to version 3.7.4
-feature: Upgrade d3.js to version 7.8.2
-feature: Upgrade ua-parser.js to version 1.0.35
Expand Down
6 changes: 5 additions & 1 deletion cactid.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function sig_handler($signo) {
$hostname = gethostname();
$debug = false;
$foreground = false;
$firstuse = true;

chdir(__DIR__);
include_once('./include/cli_check.php');
Expand Down Expand Up @@ -147,7 +148,10 @@ function sig_handler($signo) {
while (true) {
wait_for_start($frequency);

db_check_reconnect();
if (!$firstuse) {
db_check_reconnect();
$firstuse = false;
}

run_poller();

Expand Down

0 comments on commit 2d32a90

Please sign in to comment.