Network Management Integration Plugin ( v0.3.9a Build 129 )

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Network Management Integration Plugin ( v0.3.9a Build 129 )

Post by phalek »

Network Management Integration Plugin

Hi,
I didn't like the Advanced Ping template, as it is not as good as the smokeping graphs. As it's not possible to get Cacti to create the same graphs from the smokeping rrds, I've actually added some integration code to cacti itself.

The screenshot below shows a smokeping graph right below a cacti graph.

Please look at the documentation on how to use/install the NMID Plugins.

The NF Tracker stuff is for NetFlow Tracker from Crannog/Fluke Software, which displays the Top Application for In and Out Interfaces as a history chart within Cacti as well as TopN Reports for Source Addresses. I removed this stuff from the display section, so contact me if you're interested in this, too.

Enable nmid in global.php or use the Plugin Management module in PA2.x

Code: Select all

$plugins[] = 'nmidNFTracker';
$plugins[] = 'nmidCiscoWorks';
$plugins[] = 'nmidPhpip';

// the following plugins use PA 2.x and need to be installed through the plugin management interface:
//$plugins[] = 'nmid';
//$plugins[] = 'nmidSmokeping';
//$plugins[] = 'nmidNagiosPNP';
//$plugins[] = 'nmidWebService';
//$plugins[] = 'nmidTaskManager';
Please look here for the NMID Combatibility Matrix and the current Status of the plugins:

Image

Plugin Download
Download the NMID Plugins


NMID Homepage
You can find some additional screenshots and information at the NMID Homepage

Demo Systems

The demo system is down for now.

Upcoming Features
  • Separate .tgz files for each plugin
Please contact me if you have any ideas what can be integrated !

Version History

** Update v0.3.9a - Build 129 **
nmidPhpip - fixed a bug for the smokeping cgi script not working under linux (line endings)
nmidPhpip - fixed the sorting order of IP address (hopefully :-)
nmidPhpip - added the display of the prefixes

** Update v0.3.9a - Build 126 **
nmidPhpip - fixed a bug preventing the correct settings of "default" values for subnets
nmidNagiosPNP - added plugin to display Nagios PNP graphs within Cacti. The plugin behaves like the nmidSmokeping plugin.

** Update v0.3.9a - Build 122 **
nmid - Changed menu order so "logout" is at the bottom again
nmidTaskManager - Changed the rights for the "View Tasks in Console" function

** Update v0.3.9a - Build 120 **
nmidTaskManager - Fixed some minor bugs. removed the Checkbox from the login screen task table

** Update v0.3.9a - Build 119 **
nmidTaskManager - A complete rebuild of the TaskManager Plugin

** Update v0.3.9a - Build 105 **
nmid - fixed some installation bugs reported by wwdrich
nmidSmokeping - added two more settings for the config and url to the perl script
nmidSmokeping - changed installation routine to use PA 2.x
nmidWebService - changed config retreival function to use the new config dir
nmidWebService - changed installation routine to use PA 2.x

** Update v0.3.9a - Build 103 **
nmidTaskManager - fixed the setup routine which didn't work

** Update v0.3.9a - Build 102 **
nmid - removed some header from the device config screen to make it more readable
nmid - fixed a small bug that showed a "Save Successfull" although no save was taking place

** Update v0.3.9a - Build 100 **
all - updated device config table design to use cacti format
nmidPhpIP - fixed printing function
nmidPhpIP - added ability to change client field to something else then "cacti device"
nmidPhpIP - changed import function to use cacti form functionality instead of EXT JS design
nmidTaskManager - fixed bug that displayed tasks in console even if the user didn't have appropriate rights

** Update v0.3.8n **
fixed bug in nmidGraphView. This is still experimental so a lot(!) erros will occur in the apache log ...
updated version information

** Update v0.3.8m **
fixed a bug adding a column to the wrong table ( nmidPhpip )

** Update v0.3.8l **
fixed a bug in prefix-remove which didn't allow the re-adding of prefixes (nmidPhpip)
changed "isCactiDevice" detection to store status in database

** Update v0.3.8k **
added support for display order in nmidPhpip

** Update v0.3.8j **
updated nmid base plugin to use PA 2.x install/unisntall interface
Notes and Description fields can now be owerwritten ind the nmidPhpip plugin
fixed some default varaibles not initialized correctly ( nmidPhpip )

** Update v0.3.8i **
added import functionality to nmidPhpip

** Update v0.3.8h **
fixed some wrong variable definitions in nmidPhpip

** Update v0.3.8g **
fixed log errors produced by nmidTaskManager
fixed the IE bugs

** Update v0.3.8f **
fixed log errors produced by nmidPhpip

** Update v0.3.8e **
Added a TaskManager. Has some known bugs when using IE
Updated nmidPhpip to use extjs framework

** Update v0.3.8c **
Added phpIP as plugin to the suite. Cacti devices are automatically recognized. Devices can be IP or DNS based.
Added a sub-menu functionality in the nmidPhpip plugin. This requires some changes in the html.php file. See this feature request for cacti 0.8.7b.

** Update v0.3.8a **
smokeping cgi addon now uses web-service to retrieve security related info
added ability to show nmid as tab or within console through the settings page

** Update v0.3.7f **
added support for detail/overview graph in smokeping
added enable/disable option for smokeping link

** Update v0.3.7e **
updated smokeping bug when tree-name contained a dot in the name

** Update v0.3.7d **
updated smokeping display cgi to use prober target/path
updated smokeping shortcut with path/target link

** Update v0.3.7c **
fixed a smokeping config bug, which didn't replace special chars in the hostname

** Update v0.3.7b **
Fixed another bug in graph_view.php creating a sql error

** Update v0.3.7 **
Fixed a bug in graph_view.php creating a sql error
Included nmid_update.php database update file

** Update v0.3.6 **
Fixed a bug in the save method not saving the device options correctly
Removed deploy.cgi url from smokeping settings section

** Update v0.3.5 **
Splitted network management system support into different plugins
Added Web-Service support for remote server configuration
Removed the deploy.cgi script
Changed realmid from 91/92 to 1191/1192 to solve a conflict
Removed CiscoACS support for now
Each network management system can be enabled as an additional plugin.

** Update v0.3 **
Added support for CiscoWorks CSV Version 3 file creation
Added support for CiscoACS csUtil csv file creation
Added support for up to 4 smokeping servers

** Update v0.2 **
The smokeping part is now just a small addon to the nmid plugin, so I changed the posting header ...
Attachments
NMID_Documentation_v0.3.8a.pdf
Basic NMID Documentation
(636.11 KiB) Downloaded 4757 times
Network Management Inventory Database - Alpha
Network Management Inventory Database - Alpha
nmid_newDesign.jpg (16.06 KiB) Viewed 88448 times
Smokeping Integration Example from the Demo WebPage
Smokeping Integration Example from the Demo WebPage
nmid_weboutput_smokeping.jpg (51.03 KiB) Viewed 89104 times
Last edited by phalek on Thu Jan 14, 2016 8:01 am, edited 73 times in total.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

To ease the smokeping integration in regards to Smokeping administrative work, I'm currently also creating a Network Management Inventory Database (NMID) utilizing some of the Cacti functionality (especially the tree on the left).

It's build as a plugin, though it needs some very minor changes to the original cacti source code.

It currently can:
  • List all devices which are underneath the select tree.
  • Option to add/delete devices to the smokeping config ( selection is stored in the database )
  • Creates the smokeping "Target" section, based on the cacti tree and containing the hosts previously selected.
  • Ability to deploy config to smokeping ( on a remote system )
The plugin is supposed to ease the smokeping integration i mentioned in my earlier post, but can be used standalone to have a better integration between smokeping and cacti.
Attachments
NMID Alpha Screenshot ( Updated )
NMID Alpha Screenshot ( Updated )
NMID_AlphaVersion_Screenshot.jpg (21.28 KiB) Viewed 88813 times
Last edited by phalek on Wed Feb 06, 2008 4:03 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

phalek wrote:It's build as a plugin, though it needs some very minor changes to the original cacti source code.
That's an interesting approach. Please make it more clear in which way modifications are required. You may ask Jimmy to add more plugin hooks to avoid permanent modifications during release cycles.
Reinhard
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Thanks for the reply, I'm going to clean up the stuff, first.

Once I've done that I'll post more details here.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please ask Jimmy nevertheless. Even he'll need some time, cause he's quite busy with upcoming 088
Reinhard
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Ok, I've asked Jimmy, and unfortunately, there isn't anything (yet) to display other things than the rrd graphs.

But I guess with some time and deeper look into that stuff it might be possible to hook something in there...

Nevertheless, I've created a pakage now and uploaded it here. So anyone willing to play around with it can do it now. Please post back your issues and comments.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I managed to add the additional html to my plugin now, so the only line that needs to be added to the html_tree.php is now:

do_hook_function('tree_after',$host_name.','.get_request_var("leaf_id"));

I uploaded the new code. Make sure you read the README in the plugins/nmid directory.

Just to show what is possible with this plugin, here's a screenshot of the reports I create for NetFlow Tracker ( yes, that's right, you see a table there, right below the graphs !)
Attachments
NetFlow Tracker Graphs with TopN Sources Table
NetFlow Tracker Graphs with TopN Sources Table
nmid_weboutput_screen.jpg (77.73 KiB) Viewed 88099 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I've updated NMID to include the following:
  • Ability to create CiscoWorks Import file (CSV Version 3)
  • Ability to create CiscoACS Import file
I'm currently working on adding the following:
  • Support for per device RW snmp communities
  • Support for per device Login userid/password/enable password
  • Support for NDG (Network Device Groups) for CiscoACS
  • Support for per device Vendor type for CiscoACS
  • Lucent VitalNet Support
I'm going to upload the new version once i added the per-device stuff, as I don't think everyone uses the same information on all devices ...
Attachments
nmid_configuration_screen.jpg
nmid_configuration_screen.jpg (73.47 KiB) Viewed 87976 times
nmid_export_finished.jpg
nmid_export_finished.jpg (34.21 KiB) Viewed 87977 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

I upgrade the nmid plugin to 0.3.5 with the following changes:
  • Added a WebService (based on NuSoap) for retrieving the configs fro Smokeping and Ciscoworks from a remote system. Web-Service access is password protected ( See NMID Settings)
  • Created a plugin for each network management system, so one can enable or disable the systems they use
  • Removed the CiscoACS support for now, to focus on the other nms plugins
  • Changed realmid to solve a conflict with another plugin
Any comments are welcome
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Ticketing ingtigration

Post by chrisgapske »

What about adding ticketing interface to cacti ?

What open source ticketing do you like ?
Joop
Posts: 25
Joined: Thu Apr 26, 2007 5:27 am

Re: Ticketing ingtigration

Post by Joop »

chrisgapske wrote:What about adding ticketing interface to cacti ?

What open source ticketing do you like ?
We, and our customers, use RT from http://www.bestpractical.com/rt which together with two extensions also let us document things throught RTFM and keep track of assets through RT-AT extension.
To get a feeling of the system, http://rt3.fsck.com/?user=guest&pass=guest , which uses the latest available RT version.

Joop
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

Hi Phalek,

I see deploy.cgi script has removed on version 0.3.5 but on NMID configuration screen version v0.3.5 , there is still a field for "Smokeping Deploy URL". Do I need to fill something on it? And how to use update.sql? Thanks.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi sizulku,

No you don't need to fill in anything into the url field.

It's good that you mention that as i simply to fo

you can use the update.sql from the command line the following way:

mysql -u <cactidbuser> -p <cactidbname> < update.sql

e.g.

mysql -u cactiuser -p cacti < update.sql
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Update to v0.3.6

I found a bug which prevented the correct saving of the device options (add to smokeping/add to nf tracker/...)

I also removed the unnecessary link to the deploy.cgi. The web-service shoud be used to retrieve the smokeping (and other) configuration from nmid.
  • Fixed a bug in the save method not saving the device options correctly
  • Removed deploy.cgi url from smokeping settings section
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests