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    


Undefined variable: device_id in mactrack_scanner.php

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



Joined: 18 Feb 2008
Posts: 15

PostPosted: Mon Mar 10, 2008 8:05 am    Post subject: Undefined variable: device_id in mactrack_scanner.php Reply with quote

When i enter php -q /"path to"/mactrack_scanner.php -d
Notice: Undefined variable: device_id in /var/www/cacti/plugins/mactrack/mactrack_scanner.php on line 114
DEBUG: ERROR: Device with Id of '' not found in database. Can not continue.
i have a question?
1. table_name in cacti database: mac_track_device_types , but in mactrack_scanner.php on line 112 : "SELECT * FROM mac_track_devices WHERE device_id =" , similar field device_id & device_type_id, what happen that i want to know?

Environment:
debian40r2 , cacti-0.8.7b , plugins-2.0 , mactrack-1.1.



untitled.JPG
 Description:
 Filesize:  449.55 KB
 Viewed:  1173 Time(s)

untitled.JPG


Back to top
colthe



Joined: 18 Feb 2008
Posts: 15

PostPosted: Tue Mar 11, 2008 7:14 pm    Post subject: No body can help me? Reply with quote

What happened and what's wrong or some one meet the same state.
Back to top
TheWitness
Developer


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

PostPosted: Sat Mar 15, 2008 5:01 pm    Post subject: Reply with quote

The mactrack_scanner.php requires input parameters. It's a bug though not to complain as such.

Code:
php -q mactrack_scanner.php --help


TheWitness
Back to top
colthe



Joined: 18 Feb 2008
Posts: 15

PostPosted: Mon Mar 17, 2008 4:08 am    Post subject: Thx for your reply! Reply with quote

I can't find solution everywhere, so had ......
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