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".
Simple NNM > CACTI integration script
Moderators: Developers, Moderators
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
Simple NNM > CACTI integration script
- Attachments
-
- nnm.zip
- Put in CACTI root
- (387 Bytes) Downloaded 212 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Simple NNM > CACTI integration script
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.
R.
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
Re: Simple NNM > CACTI integration script
Do you mean simple failover DNS resolving action if hostname is asked and not found in cacti db?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Simple NNM > CACTI integration script
YepInstigater wrote:Do you mean simple failover DNS resolving action if hostname is asked and not found in cacti db?
R.
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
Re: Simple NNM > CACTI integration script
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. Is it somehow related to stored information in cookies?
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. Is it somehow related to stored information in cookies?
- Attachments
-
- nnm01.png (143.71 KiB) Viewed 3504 times
-
- nnm02.png (88.44 KiB) Viewed 3504 times
-
- nnm.zip
- Updated script
- (409 Bytes) Downloaded 188 times
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
Re: Simple NNM > CACTI integration script
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
Who is online
Users browsing this forum: No registered users and 1 guest