Skip to content
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

Add logging upon deletion using remove_device.php #5826

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cli/remove_device.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@
$ids_found[] = $host['id'];
}



print PHP_EOL;
}

Expand All @@ -191,6 +193,10 @@
exit(1);
} else {
print "Success - removed device-ids: $ids_confirm" . PHP_EOL;
foreach ($hosts as $host) {
cacti_log("CLI: Device Removed via remove_device.php - Device ID: " . $host['id'] . ", Hostname: " . $host['hostname'] . ", Description: " . $host['description']);
}

exit(0);
}
} else {
Expand Down
Loading