Device status "unknow"

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Device status "unknow"

Post by realbatis »

I have installed CactiEZ packet , And status of device on Device Tracking > Devices is "unknow" , my poller is IDLE , I use cisco 2950 ,3550

Thx
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

did you try some of the mactrak utils under console? Also, what is your mactrack settings for polling? you may have to wait until the next time around.

You could also run it manually from the command line.
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

Status of poller is IDLE and device still UNKNOW

I try to php -q mactrack_scannner.php -id=1

I found some mistake in many line.

Thx
Attachments
pic1.JPG
pic1.JPG (78.07 KiB) Viewed 14754 times
Device still "unknow"
Device still "unknow"
pic2.JPG (48.99 KiB) Viewed 14756 times
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Can you give us the exact text (minus confidentual info) that these 2 commands output?

Code: Select all

php -q poller_mactrack.php -f -d
php -q mactrack_scannner.php -id=1 -d
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your problem is that your device type is not being recognized in the Device Type database. You need to add an entry for it. BTB, I can't believe I wrote this tool. I miss it's elegance. (BTB, I say that because I am no longer doing network Monitoring work :( ).

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?
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

This is result of 2 command.

[root@localhost mactrack]# php -q mactrack_scanner.php -id=1 -d
DEBUG: ERROR: Device with Id of '1' not found in database. Can not continue.



[root@localhost mactrack]# php -q poller_mactrack.php -d -f
\DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing. Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2006-10-13 10:50:07'
DEBUG: The next database maintenance run time has been determined to be at '2006-10-14 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/html/plugins/mactrack/mactrack_scanner.php -id=10 -d
DEBUG: DNS Resolver process launched
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
10/13/2006 10:49:49 AM - SYSTEM MACTRACK STATS: Time:4.0777 ConcurrentProcesses:7 Devices:1
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

hi Witness,

I have found problem with mactrack_device_id =1 not have in database.

Now i have fixed it,

After that status of device is "Error"

Why...

Thx.
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

Hi friend,

I have some issue is device_type_id=0 , I don't have device_type_id=0 in my table mac_track_device_types.

And i have manual add this record in database , Result is device_type_id=1 only.

Thx.





[root@localhost mactrack]# php -q mactrack_scanner.php -id=1 -d
DEBUG: HOST: 192.168.222.181 is alive, processing has begun.
DEBUG: WARNING: SITE: Bangkok, IP: 192.168.222.181, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '1',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',snmp_readstring='APACIME',snmp_sysName='F29RSTLDEV01',snmp_sysLocation='',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.429',snmp_sysDescr='Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2005 by cisco Systems, Inc. Compiled Fri 21-Oct-05 01:59 by yenanh',snmp_sysUptime='819767658',snmp_status='4',last_runmessage='WARNING: Device Type Not Found in Device Type Table.',last_rundate='2006-10-13 15:33:29',last_runduration='0.068' WHERE device_id ='1'
[root@localhost mactrack]#
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

Hi friend,

Now , i have changed sysDescription Match.

It work.

But i have problem with IP address.

Not show ip address.

Thx.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need a router or layter 3 switch defined in order to get IP Addresses. I expect that you need a little trainig, although I never wrote a manual.

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?
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

Thanks Witness,

I have successful installed mactrack & collected port information already.

But , i have some issue that port status connected on switch don't match with mactrack database.

I found some port on mactrack database more lower than real port on a cisco switch.

Thanks again.
:o
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's interesting, you should post more details.

Thanks,

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?
realbatis
Posts: 8
Joined: Wed Oct 11, 2006 2:20 am

Post by realbatis »

This log is happen when i run php -q poller_mactrack -d -f .



PHP Warning: mysql_pconnect(): Lost connection to MySQL server during query in /var/www/html/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Lost connection to MySQL server during query in /var/www/html/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Lost connection to MySQL server during query in /var/www/html/lib/adodb/drivers/adodb-mysql.inc.php on line 355
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's bad, you should increase your connection count in MySQL, or check that server for a bad nic/cabling/duplex.

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?
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hi,

I have the same problem that realbatis has encoutered... I only get Error status under when scanning my devices...

The whitness, could you please give an exemple of what I should add in the mac_track_device_type_table for the device_type=0 ?

for our information, I'm trying to mactrack Cisco CatOS switchs...

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests