Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Mactrack doesn't do anything!

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
David Rickard



Joined: 15 Apr 2005
Posts: 8
Location: High Wycombe, Bucks, UK

PostPosted: Mon Sep 11, 2006 3:18 am    Post subject: Mactrack doesn't do anything! Reply with quote

Hi,

I've (finally) managed to install Mactrack, after much swearing and confusion. I added a switch (an enterasys) to its list, and it has listed all the ports, but it doesn't seem to actually be scanning. The scanner status says 'IDLE' all the time, and it is next scheduled to run tomorrow!

Do I have to enable the poller somewhere else? Have I missed something? If I view the switch in the Mactrack list it shows 0 next to all the values, but I know some of the ports have things plugged in - such as the server running Cacti! Could I have missed something?
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Mon Sep 11, 2006 6:30 pm    Post subject: Reply with quote

Did you actually wait until "tomorrow" to see if it runs? You can run it manually via the command line and force it if you want to see whats going on.

Code:
php -q poller_mactrack.php -f -d
Back to top
David Rickard



Joined: 15 Apr 2005
Posts: 8
Location: High Wycombe, Bucks, UK

PostPosted: Wed Sep 13, 2006 7:18 am    Post subject: Reply with quote

I did wait until 'tomorrow' and nothing seemed to have happened. Am I supposed to have added anything to crontab? The cacti poller is already in there (the php one).

I ran the manual poll, and it went through and did a load of stuff, but I'm getting errors next to all the switches. Can I find out what that error is somehow? I know the community is right (it's not public, and I have changed it), and I've tried SNMP 1 and 2, but neither works. The switches are some Cisco 2950s, a Cisco 3508 and some recent Enterasys A-series.
Back to top
David Rickard



Joined: 15 Apr 2005
Posts: 8
Location: High Wycombe, Bucks, UK

PostPosted: Wed Sep 13, 2006 7:40 am    Post subject: Reply with quote

Ahhh.... Ahh hah! I think it's a problem with the device types. My ciscos have an ID of C2950-I6Q4L2-M, whilst the one in the database is C2950-I6Q4L2-M2. I added a new one and it now reads the switch and its ports. All the switches now show as 'Up' and list the correct number of ports.

So it does seem to be working

Just wondering if I do still need a cron job of some sort though?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9689
Location: MI, USA

PostPosted: Wed Sep 13, 2006 8:11 am    Post subject: Reply with quote

The Cron'ing is handled by Cacti's poller. As long as Cacti's running, so will MacTrack.

TheWitness
Back to top
David Rickard



Joined: 15 Apr 2005
Posts: 8
Location: High Wycombe, Bucks, UK

PostPosted: Wed Sep 13, 2006 10:21 am    Post subject: Reply with quote

Ah. Seems I was having a bit of a 'moment' with my crontab. Fixed that and it's happily picking up things now

Thanks guys!
Back to top
sini
Cacti User


Joined: 24 Nov 2003
Posts: 55
Location: Hungary

PostPosted: Wed Dec 13, 2006 3:21 am    Post subject: Reply with quote

Hi,

I also ran manually the mactrack poller but no device found...
I have this in my cacti.log:

----
12/13/2006 09:06:47 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('-1', '0', 'Running', NOW())"
12/13/2006 09:06:47 AM - CMDPHP: Poller[0] NOTE: MACTRACK has no devices to process at this time
12/13/2006 09:06:47 AM - SYSTEM MACTRACK STATS: Time:0.0259 ConcurrentProcesses:7 Devices:0
--

I also imported the mactrack.sql tables into db so I don`t why the sql insert failed?
I also have the matching device sysDescr in database.

Do I miss something?
Back to top
sini
Cacti User


Joined: 24 Nov 2003
Posts: 55
Location: Hungary

PostPosted: Wed Dec 13, 2006 3:39 am    Post subject: Reply with quote

HI,

I did some sql dig but no device_id column in mac_track_processes table...
I have: process_id ,status , start_date columns in mactrac.sql.

/* this is from mactrack.sql
DROP TABLE IF EXISTS `mac_track_processes`;
CREATE TABLE `mac_track_processes` (
`process_id` int(11) NOT NULL default '0',
`status` varchar(20) NOT NULL default 'Queued',
`start_date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`process_id`)
) ENGINE=MyISAM ;

*/

Were is the problem? With the sql insert or with the mactrack.sql file?

Quote:
Cacti Version - 0.8.6i
Plugin Architecture - 1.0
Poller Type - CMD.php
Server Info - Linux 2.6.15-26-server
Web Server - Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 PHP/4.4.2-1build1
PHP - 4.4.2-1build1
PHP Extensions - zip, yp, xmlrpc, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, sockets, shmop, session, posix, overload, mime_magic, mbstring, iconv, gettext, ftp, filepro, exif, dbx, dba, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, apache2handler, mysql, ldap, pgsql, snmp, mhash, idn, gd, imap
MySQL - 4.1.15-Debian_1ubuntu5-log
RRDTool - 1.2.15
SNMP - 5.2.1.2
Plugins
    Host Info (hostinfo - v0.1)
    Thresholds (thold - v0.3.0)
    Device Monitoring (monitor - v0.7)
    Network Discovery (discovery - v0.7)
    PHP Network Weathermap (weathermap - v0.82)
    Report Creator (reports - v0.1b)
    Network Tools (tools - v0.2)
    Device Tracking (mactrack - v0.0.1b)
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 946
Location: B/CS Texas

PostPosted: Tue Dec 19, 2006 7:52 pm    Post subject: Reply with quote

The problem is with the mactrack.sql file. Seems I never updated the download file. Please redownload and test.

Or run the database_upgrade.php script which should resolve the issue for you (it will through some errors, but that is OK as it just means your already updated)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group