Hey,
I wrote a quick and dirty little PHP script that you can run from the shell which will re-poll every device in cacti. This is beneficial for our setup as we have a lot of access layer switches where the port descriptions frequently change, and having to manually re-poll each device causes a lot of stale/outdated descriptions.
Using a combination of this and autom8, after creating in the device we never have to manually create any graphs.
I have this cron'd to run twice a day, at noon and midnight.
-Matt
Re-poll all devices from CLI
Moderators: Developers, Moderators
Re-poll all devices from CLI
- Attachments
-
- re-poll.php.txt
- (753 Bytes) Downloaded 203 times
Added a couple things.
Original script only ran with a data query id of 1, script now accepts the parameter "--id=$param_num" so you can re-poll any data query you would like.
Original script only ran with a data query id of 1, script now accepts the parameter "--id=$param_num" so you can re-poll any data query you would like.
- Attachments
-
- re-poll.php.txt
- (2.27 KiB) Downloaded 206 times
Who is online
Users browsing this forum: No registered users and 0 guests