End Device Tracking Add-On for Cacti
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What do you have as the start time and the interval?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: DNS reverse lookups
mysqld Ver 4.1.14-log for pc-linux-gnu on i686 (Gentoo Linux mysql-4.1.14)TheWitness wrote:What version of MySQL?
I imported the newer mactrack.sql and lost all my device entries so I had to re-enter them (guess I should have backed those up!). Do I also need to run the database-upgrade.php script in addition?
I don't get the same error message after importing that newer .sql file, but I don't see any hostnames appear yet either.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What happens when you manually run "php poller_mactrack.php -d"? Also, please check <cacti>/poller.php for the "poller_mactrack.php" exec_background call.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
/usr/share/cacti/plugins/mactrack # php5 poller_mactrack.php -dTheWitness wrote:What happens when you manually run "php poller_mactrack.php -d"?
Content-type: text/html
X-Powered-By: PHP/5.0.4
DEBUG: Detected that user changed the start time
Patterns of mac and track are not found, guess that would explain it (though I don't understand how I wouldn't have gotten it...) What do I need to add?TheWitness wrote:Also, please check <cacti>/poller.php for the "poller_mactrack.php" exec_background call.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Cigamit will have to answer. He is away for a few hours.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: DNS reverse lookups
There was an extra character on line 38 of the mactrack_resolver.php:vedd99 wrote:mysqld Ver 4.1.14-log for pc-linux-gnu on i686 (Gentoo Linux mysql-4.1.14)TheWitness wrote:What version of MySQL?
I imported the newer mactrack.sql and lost all my device entries so I had to re-enter them (guess I should have backed those up!). Do I also need to run the database-upgrade.php script in addition?
I don't get the same error message after importing that newer .sql file, but I don't see any hostnames appear yet either.
9/* establish constants */
I removed the "9" and let it run again and it started to resolve the names, however the names don't show up under Most Recent scans, only when I list the last actual scan (even if it's the most recent scan).
HP ProCurve support
I work on a site using mostly procurve switches and would like to help out with support for them. I know it can't be impossible as i have a set of perl scripts doing similar things.
Jorgan
Jorgan
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
All working fine here ( plugin version ) would it be possible to add DNS Hostname to the mactrack_view.php filtering, so we could search for the machine name ( if available ). Also when clean installing creaing the DB tables from the mactrack.sql, then running the dbupgrade generates some errors with duplicate indexes and duplicate columbs.
Nigel
Nigel
This is actually normal since the updated mactrack.sql already contains all the correct columns, so you don't need to run the database_upgrade.php. That is only for if you are upgrading from one of the earlier versions.Dwayne_Dibbley wrote:All working fine here ( plugin version ) would it be possible to add DNS Hostname to the mactrack_view.php filtering, so we could search for the machine name ( if available ). Also when clean installing creaing the DB tables from the mactrack.sql, then running the dbupgrade generates some errors with duplicate indexes and duplicate columbs.
Nigel
Re: DNS reverse lookups
Ya, that was my bad. I removed it in a later SVN commit. Thanks!vedd99 wrote:There was an extra character on line 38 of the mactrack_resolver.php:
9/* establish constants */
I removed the "9" and let it run again and it started to resolve the names, however the names don't show up under Most Recent scans, only when I list the last actual scan (even if it's the most recent scan).
That is the way it should be. For the Plugin version, you do not need to add an extra cron job, since it hooks itself into poller.php. You only need the poller.php cron job.knobdy wrote:Hmm...maybe I'm not understanding - or stating - it correctly.
They only thing I currently have scheduled in cron now is Cacti's poller (poller.php).
I was under the impression that I would replace that line with mactracks (poller_mactrack.php) which would then call Cacti's or just do it all.
The "scheduling" I specifically meant in that last post was the mactrack schedule from within Cacti/Settings/Device Tracking page.
The only way I've ever gotten data collected is by running poller_mactrack.php manually with the "-f" option.
That make more sense?
Can you try re-applying the plugin architecture. I'm not sure if your poller.php is correct as it seems to be missing the hooks if it isn't being called.
With the newest version of the plugin, you will need the updated snmp.php that comes with the non-plugin version of Mactrack, as it has some code changes that Mactrack will not poll properly without (or at least on my side of things it seems).
Does this mean I only need to copy the poller.php file again or the entire thing? I've never had any luck with the diff so I've generally just copied the files over and re-edited them.cigamit wrote:That is the way it should be. For the Plugin version, you do not need to add an extra cron job, since it hooks itself into poller.php. You only need the poller.php cron job.
Can you try re-applying the plugin architecture. I'm not sure if your poller.php is correct as it seems to be missing the hooks if it isn't being called.
Does this mean you've updated the plugin with the latest changes but I'll need to get the snmp.php from svn as well?cigamit wrote:With the newest version of the plugin, you will need the updated snmp.php that comes with the non-plugin version of Mactrack, as it has some code changes that Mactrack will not poll properly without (or at least on my side of things it seems).
Yes, you can just override it with the proper plugin architecture files. Also, you shouldn't need to override your config.php again, as that seems to be working or you wouldn't see the plugin at all.knobdy wrote:Does this mean I only need to copy the poller.php file again or the entire thing? I've never had any luck with the diff so I've generally just copied the files over and re-edited them.cigamit wrote:That is the way it should be. For the Plugin version, you do not need to add an extra cron job, since it hooks itself into poller.php. You only need the poller.php cron job.
Can you try re-applying the plugin architecture. I'm not sure if your poller.php is correct as it seems to be missing the hooks if it isn't being called.
Does this mean you've updated the plugin with the latest changes but I'll need to get the snmp.php from svn as well?cigamit wrote:With the newest version of the plugin, you will need the updated snmp.php that comes with the non-plugin version of Mactrack, as it has some code changes that Mactrack will not poll properly without (or at least on my side of things it seems).
Yes, the plugin is up-to-date, so you should be able to pull it from SVN and have everything working. (but yes, you do have to use the snmp.php from the add-on version)
Who is online
Users browsing this forum: No registered users and 0 guests