|
|
| Author |
Message |
colthe
Joined: 18 Feb 2008 Posts: 18
|
Posted: Mon Mar 10, 2008 8:05 am Post subject: Undefined variable: device_id in mactrack_scanner.php |
|
|
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.
| Description: |
|
| Filesize: |
449.55 KB |
| Viewed: |
1312 Time(s) |

|
|
|
| Back to top |
|
 |
colthe
Joined: 18 Feb 2008 Posts: 18
|
Posted: Tue Mar 11, 2008 7:14 pm Post subject: No body can help me? |
|
|
| What happened and what's wrong or some one meet the same state.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9473 Location: MI, USA
|
Posted: Sat Mar 15, 2008 5:01 pm Post subject: |
|
|
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: 18
|
Posted: Mon Mar 17, 2008 4:08 am Post subject: Thx for your reply! |
|
|
| I can't find solution everywhere, so had ......
|
|
| Back to top |
|
 |
|