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    


Network Management Integration Plugin ( v0.3.9a Build 129 )
Goto page 1, 2, 3 ... 15, 16, 17  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Thu Jan 31, 2008 6:52 am    Post subject: Network Management Integration Plugin ( v0.3.9a Build 129 ) Reply with quote

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:

$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';



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

Demo Systems
I created a demo system showing the smokeping integration:
http://cacti.urban-software.de/graph_view.php?action=tree&tree_id=1&leaf_id=17
http://cacti.urban-software.de/cgi-bin/smokeping.cgi
User: guest
Password: guest


Upcoming Features

  • Rancid Config Creation

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 cahnged the posting header ...



nmid_newDesign.jpg
 Description:
Network Management Inventory Database - Alpha
 Filesize:  16.06 KB
 Viewed:  22282 Time(s)

nmid_newDesign.jpg



nmid_weboutput_smokeping.jpg
 Description:
Smokeping Integration Example from the Demo WebPage
 Filesize:  51.03 KB
 Viewed:  22939 Time(s)

nmid_weboutput_smokeping.jpg



nmid_plugin_0.3.9a_Build_129.tar.gz
 Description:
NMID Plugins
MD5 hash: 3c8307ec759e19aa41d837123c3645bc

Download
 Filename:  nmid_plugin_0.3.9a_Build_129.tar.gz
 Filesize:  849 KB
 Downloaded:  949 Time(s)


NMID_Documentation_v0.3.8a.pdf
 Description:
Basic NMID Documentation

Download
 Filename:  NMID_Documentation_v0.3.8a.pdf
 Filesize:  636.11 KB
 Downloaded:  782 Time(s)



Last edited by phalek on Tue Dec 02, 2008 3:02 pm; edited 65 times in total
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Fri Feb 01, 2008 10:52 am    Post subject: Reply with quote

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.



NMID_AlphaVersion_Screenshot.jpg
 Description:
NMID Alpha Screenshot ( Updated )
 Filesize:  21.28 KB
 Viewed:  22646 Time(s)

NMID_AlphaVersion_Screenshot.jpg




Last edited by phalek on Wed Feb 06, 2008 4:03 am; edited 1 time in total
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Sat Feb 02, 2008 1:18 pm    Post subject: Reply with quote

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
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Wed Feb 06, 2008 4:05 am    Post subject: Reply with quote

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

Once I've done that I'll post more details here.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Wed Feb 06, 2008 4:31 am    Post subject: Reply with quote

Please ask Jimmy nevertheless. Even he'll need some time, cause he's quite busy with upcoming 088
Reinhard
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Thu Feb 14, 2008 12:16 pm    Post subject: Reply with quote

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.
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Thu Feb 21, 2008 10:44 am    Post subject: Reply with quote

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 !)



nmid_weboutput_screen.jpg
 Description:
NetFlow Tracker Graphs with TopN Sources Table
 Filesize:  77.73 KB
 Viewed:  21928 Time(s)

nmid_weboutput_screen.jpg


Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Sat Feb 23, 2008 4:07 pm    Post subject: Reply with quote

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 ...



nmid_export_finished.jpg
 Description:
 Filesize:  34.21 KB
 Viewed:  21806 Time(s)

nmid_export_finished.jpg



nmid_configuration_screen.jpg
 Description:
 Filesize:  73.47 KB
 Viewed:  21805 Time(s)

nmid_configuration_screen.jpg


Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Thu Feb 28, 2008 1:13 pm    Post subject: Reply with quote

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
Back to top
chrisgapske
Cacti User


Joined: 22 May 2007
Posts: 266
Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL

PostPosted: Thu Feb 28, 2008 2:11 pm    Post subject: Ticketing ingtigration Reply with quote

What about adding ticketing interface to cacti ?

What open source ticketing do you like ?
Back to top
Joop



Joined: 26 Apr 2007
Posts: 9

PostPosted: Fri Feb 29, 2008 3:25 am    Post subject: Re: Ticketing ingtigration Reply with quote

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
Back to top
sizulku
Cacti User


Joined: 04 Nov 2002
Posts: 102
Location: ACEH

PostPosted: Fri Feb 29, 2008 10:27 am    Post subject: Reply with quote

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.
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Fri Feb 29, 2008 10:39 am    Post subject: Reply with quote

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
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Fri Feb 29, 2008 11:42 am    Post subject: Reply with quote

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
Back to top
sizulku
Cacti User


Joined: 04 Nov 2002
Posts: 102
Location: ACEH

PostPosted: Fri Feb 29, 2008 11:34 pm    Post subject: Reply with quote

Hi Phalek,

I got this following error when apply update.sql

Quote:
[root@cacti ~]# mysql cacti-087a < update.sql
ERROR 1091 (42000) at line 1: Can't DROP 'snmp_rwcommunity'; check that column/key exists


any help would be great. Thx.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page 1, 2, 3 ... 15, 16, 17  Next
Page 1 of 17

 



Powered by phpBB © 2001, 2005 phpBB Group