[FC] Mactrack & Juniper Netscreens?

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

[FC] Mactrack & Juniper Netscreens?

Post by tommyj »

Has anybody been able to get mactrack working with a Netscreen firewall as the router?
User avatar
medievaldragon
Posts: 1
Joined: Thu Jul 12, 2007 3:50 pm
Contact:

Yes......

Post by medievaldragon »

I have it working with the following:

ISG-2000
NS5GT

I added a section called "get_netscreen_arp_table" to the bottom of the mactrack_functions.php file. The OID is different for these devices.

I also added several device types for them.

I have attached my modified version. Hope it helps.

Scott Hahn
Attachments
mactrack_functions.php.txt
(60.28 KiB) Downloaded 809 times
cacti_device_type_xport.txt
(330 Bytes) Downloaded 772 times
tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

Post by tommyj »

Thanks!, Seems to be working for me as well
tommyj
Posts: 43
Joined: Thu Jun 23, 2005 5:16 pm
Location: Stockholm, Sweden

Post by tommyj »

Got it working with Cacti 0.8.7 and Mactrack 1.1 by pasting in the "get_netscreen_arp_table" part into the bottom of mactrack_functions.php.
However I get:

Code: Select all

PHP Warning:  Missing argument 9 for cacti_snmp_walk() in /var/www/html/lib/snmp.php on line 225 
Not sure what that means but it works anyway.

Any chance to get this support for Netscreen devices in the offical version?
disH
Posts: 33
Joined: Thu May 22, 2008 2:09 am

Post by disH »

Grabs all the ips and populates it into the database but i cannot get it to reflect in Mactrack.
I do get 2 errors:
Notice: Undefined index: 0.10.10.11.75 in /usr/share/cacti/site/plugins/mactrack/lib/mactrack_functions.php on line 1707
Notice: Undefined index: 0.10.10.11.75 in /usr/share/cacti/site/plugins/mactrack/lib/mactrack_functions.php on line 1708
Which are some local ips.. nothing special so im not sure about the error.

I attached the updated files for MacTrack v1.1/Cacti8.7b
Device type info for: 'SSG 550M', 'IS G2000', 'NS 5GT', 'NS 5GT 2'
Attachments
mactrack_juniperfw.txt
SQL code - Edit this to reflect your own device_type_id and it should work.
(1.09 KiB) Downloaded 596 times
mactrack_functions.php.txt
Updated plugins/lib/mactrack_functions.php
(62.73 KiB) Downloaded 399 times
[url=http://forums.cacti.net/viewtopic.php?t=4356]Template: Cisco CatOS[/url]
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
cspenpen
Cacti User
Posts: 67
Joined: Tue Dec 05, 2006 5:10 am

Post by cspenpen »

In netscreen arp function I relplace insert table.
Its work for me..

Code: Select all

$insert_string = "REPLACE INTO mac_track_ips"
replace

Code: Select all

$insert_string = "REPLACE INTO mac_track_temp_ports"


disH wrote:Grabs all the ips and populates it into the database but i cannot get it to reflect in Mactrack.
I do get 2 errors:
Notice: Undefined index: 0.10.10.11.75 in /usr/share/cacti/site/plugins/mactrack/lib/mactrack_functions.php on line 1707
Notice: Undefined index: 0.10.10.11.75 in /usr/share/cacti/site/plugins/mactrack/lib/mactrack_functions.php on line 1708
Which are some local ips.. nothing special so im not sure about the error.

I attached the updated files for MacTrack v1.1/Cacti8.7b
Device type info for: 'SSG 550M', 'IS G2000', 'NS 5GT', 'NS 5GT 2'
[/code]
User avatar
TheWitness
Developer
Posts: 17080
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This new IP scanning function should be in the MacTrack 2.0 trunk SVN. Thanks for the feature feedback.

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?
User avatar
TheWitness
Developer
Posts: 17080
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

disH,

I just noted that the Juniper FW code is not merged in the 2.1. Can you update me on this. Send me a PM if you want this merged into the 2.1 code with the full files.

Larry
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest