Simple NNM > CACTI integration script

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Simple NNM > CACTI integration script

Post by Instigater »

Put nnm.php script in CACTI root folder. It depends on CACTI functions and parameters defined in global.php.

It redirects to specific device's graphs if hosts hostname matches one in URL.

https://cacti.server.tld/nnm.php?mgmtip=xx.xx.xx.xx
redirects to
https://cacti.server.tld/graph_view.php ... ost_id=yyy
showing all associated to device graphs.

User wil be asked CACTI password (part of default CACTI functionality) and it should have corresponding access rights to "Preview view".
Attachments
nnm.zip
Put in CACTI root
(387 Bytes) Downloaded 212 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Simple NNM > CACTI integration script

Post by gandalf »

Interesting approach; easy and simple. But works only in case you're using IP@ as a "hostname". You may add an address lookup in case the table lookup fails.
R.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Re: Simple NNM > CACTI integration script

Post by Instigater »

Do you mean simple failover DNS resolving action if hostname is asked and not found in cacti db?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Simple NNM > CACTI integration script

Post by gandalf »

Instigater wrote:Do you mean simple failover DNS resolving action if hostname is asked and not found in cacti db?
Yep
R.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Re: Simple NNM > CACTI integration script

Post by Instigater »

Updated script. Now it listens also to filter parameter. Now it is possible to display specific graphs. DNS failover not implemented yet.

One bug has appeared. If filter parameter still displays more graphs than allowed per one Preview page then hitting "next" link user gets redirected to Tree view. :o Is it somehow related to stored information in cookies?
Attachments
nnm01.png
nnm01.png (143.71 KiB) Viewed 3505 times
nnm02.png
nnm02.png (88.44 KiB) Viewed 3505 times
nnm.zip
Updated script
(409 Bytes) Downloaded 188 times
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Re: Simple NNM > CACTI integration script

Post by Instigater »

Better filtering support - now checks if filter can be satisfied from data source's cached name for asked host.
Attachments
nnm.zip
Better filtering support.
(507 Bytes) Downloaded 230 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest