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 Previous  1, 2, 3, ... 17, 18, 19  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
phalek
Cacti User


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

PostPosted: Mon Mar 03, 2008 3:40 am    Post subject: Reply with quote

Hi sizulku,

untar/ungzip the attached file into the plugins/nmid dir, uncomment the lines you need.

Code:

Example:
    /* Smokeping Plugin */
    /* to enable the Smokeping sql updates, remove this line
        $result = mysql_query("select nwmgmt_smokeping_probe from host");
        if ($result == FALSE)
        {
            print "Column nwmgmt_smokeping_probe does not exist<br>";
            mysql_query("alter table host add nwmgmt_smokeping_probe varchar(255)");
        }
   ...
    to enable the Smokeping sql updates, remove this line */

->

 /* Smokeping Plugin */
        $result = mysql_query("select nwmgmt_smokeping_probe from host");
        if ($result == FALSE)
        {
            print "Column nwmgmt_smokeping_probe does not exist<br>";
            mysql_query("alter table host add nwmgmt_smokeping_probe varchar(255)");
        }
    ...



then point your browser to this file and it should update the database accrodingly.
The file doesn't give any feedback if the columns already exist. It will tell you if it added something.
Back to top
sizulku
Cacti User


Joined: 04 Nov 2002
Posts: 102
Location: ACEH

PostPosted: Mon Mar 03, 2008 4:37 am    Post subject: Reply with quote

Hi Phalek,

Thanks for your reply. I still got this error below after apllying your update file (the browser did not give any feedback when pointing to the file).

Quote:
03/03/2008 04:17:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select DISTINCT host_id from graph_tree_items where order_key like %001% and graph_tree_id=1"
03/03/2008 04:17:39 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select DISTINCT host_id from graph_tree_items where order_key like %001% and graph_tree_id=1"
03/03/2008 04:17:37 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select id, description, hostname from host where id= order by description"
03/03/2008 04:17:37 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1064', SQL:"select host_id from graph_tree_items where id="


I also find there are two new file under plugins/nimd directory as folow
Quote:
-rw-r--r-- 1 apache apache 528 Feb 24 09:17 smokeping_config.txt
-rw-r--r-- 1 apache apache 788 Mar 3 16:17 smokeping_nmid_spserver1_config.txt


What does it purpose? and what actually nmid/smokeping plugin do? Does it only smokeping viewer? or we are able to configure smokeping under cacti?

Zul
Back to top
phalek
Cacti User


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

PostPosted: Mon Mar 03, 2008 5:11 am    Post subject: Reply with quote

Hi Zul,

Seems like I forgot to add something ...

I've uploaded v0.3.7 to include an updated graph_view.php file which should fix the problem with the sql errors.

For the files. you can delete the smokeping_config.txt file. the other one contains the Target section for smokeping. You should us that and add it to you smokeping config, or use the web-service plugin to retrieve it remotely.

The target section needs to match the cacti graph trees, else the plugin can't retrieve the smokeping graph and display it within the cacti tree.
Back to top
sizulku
Cacti User


Joined: 04 Nov 2002
Posts: 102
Location: ACEH

PostPosted: Mon Mar 03, 2008 10:41 am    Post subject: Reply with quote

Hi Phalek,

Thanks for update. Now I got this following error

Quote:

03/03/2008 10:36:21 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1064', SQL:"select id, description, hostname from host where id= order by description"
03/03/2008 10:36:21 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1064', SQL:"select host_id from graph_tree_items where id="


Any help would be great.
Back to top
phalek
Cacti User


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

PostPosted: Mon Mar 03, 2008 2:01 pm    Post subject: Reply with quote

Hi Zul

I found that error now and uploaded 0.3.7b ...
Back to top
phalek
Cacti User


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

PostPosted: Wed Mar 05, 2008 7:44 am    Post subject: Reply with quote

I've updated NMID to 0.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



nmid_show_as_tab.jpg
 Description:
 Filesize:  7.29 KB
 Viewed:  2871 Time(s)

nmid_show_as_tab.jpg


Back to top
phalek
Cacti User


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

PostPosted: Thu Mar 06, 2008 7:01 am    Post subject: Reply with quote

Updated the PDF file with more config/installation instructions for 0.3.8a.
Updated the screenshots to 0.3.8a taken from the live DEMO.
Back to top
phalek
Cacti User


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

PostPosted: Fri Mar 07, 2008 3:48 pm    Post subject: Reply with quote

I'm currently working on the integration of phpIP.

I'm planing on having the cacti devices automatically added to the appropriate IP ranges and intend to have a look at the integration of Discovery and/or MacTrack plugin.

Any ideas about that ?

Not sure if anyone is interested in this at all



nmid_phpIP_ipdisplay.jpg
 Description:
 Filesize:  119.49 KB
 Viewed:  2788 Time(s)

nmid_phpIP_ipdisplay.jpg


Back to top
chrisgapske
Cacti User


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

PostPosted: Fri Mar 07, 2008 5:16 pm    Post subject: Reply with quote

phalek wrote:
I'm currently working on the integration of phpIP.

I'm planing on having the cacti devices automatically added to the appropriate IP ranges and intend to have a look at the integration of Discovery and/or MacTrack plugin.

Any ideas about that ?

Not sure if anyone is interested in this at all



OK this is a great idea and work.

But one problem is I don't use ip addresses to poll my equipment I use dns names because the ip address could change.. Not likely as they are stickey..

But I don't think they would get discovered correctly. would they.
Back to top
phalek
Cacti User


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

PostPosted: Sat Mar 08, 2008 6:00 am    Post subject: Reply with quote

chrisgapske wrote:

But one problem is I don't use ip addresses to poll my equipment I use dns names because the ip address could change.. Not likely as they are stickey..

But I don't think they would get discovered correctly. would they.


well, a DNS/IP lookup (maybe during device additon thorugh the normal cacti page ) wouldn't be a problem. This could be added and makes a good addition to just simply displaying the IP address ...
Back to top
phalek
Cacti User


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

PostPosted: Mon Mar 10, 2008 5:22 pm    Post subject: Reply with quote

Update to 0.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.


There's an option in the settings page to switch between DNS based device managemnt or OP based management of cacti devices.

I also added a sub-menu to clean up the user-interface. Unfortunately there's no built-in functionality in cacti, so i had to change 2 lines in the lib/html.php for this to work ( see the feature request for details )



nmid_submenu.jpg
 Description:
 Filesize:  13.43 KB
 Viewed:  2645 Time(s)

nmid_submenu.jpg


Back to top
gthe
Cacti User


Joined: 29 Jul 2006
Posts: 113
Location: RU

PostPosted: Tue Mar 11, 2008 1:44 am    Post subject: Reply with quote

phalek wrote:
Update to 0.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.



Whether it is necessary to install standalone phpIP?
Or it is enough to install 2 plugins:
Code:
$plugins [] = 'nmid';
$plugins [] = 'nmidPhpip'
;
Back to top
phalek
Cacti User


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

PostPosted: Tue Mar 11, 2008 2:09 am    Post subject: Reply with quote

Hi gthe

It's enough to only enable the nmidPhpip plugin. There's no interaction/dependancy between nmidPhpip and the other plugins.
Back to top
gthe
Cacti User


Joined: 29 Jul 2006
Posts: 113
Location: RU

PostPosted: Tue Mar 11, 2008 3:08 am    Post subject: Reply with quote

phalek wrote:
Hi gthe

It's enough to only enable the nmidPhpip plugin. There's no interaction/dependancy between nmidPhpip and the other plugins.


Thanks for reply.
Am found the problem. After I change /lib/html.php no one sub-menus are show, because my:
Code:

$_SERVER["PHP_SELF"]  = "/cacti/plugins/nmidPhpip/cidr_add.php"

and
Code:

preg_replace("/^\//","",$_SERVER["PHP_SELF"]) = "cacti/plugins/nmidPhpip/cidr_add.php"

not "plugins/nmidPhpip/cidr_add.php"

I change in /lib/html.php:
Code:

$current_url = preg_replace("/^\//","",$_SERVER["PHP_SELF"]);

to
Code:

$current_url = preg_replace("/(^\/(cacti\/)?)()/","$3",$_SERVER["PHP_SELF"]);


Sorry for my English
Back to top
phalek
Cacti User


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

PostPosted: Tue Mar 11, 2008 3:11 am    Post subject: Reply with quote

Ha, I forgot about that. Going to change that in the nmidPhpip setup to take care of prepending the $config['url_path'] to the string.

Thanks for pointing this out

( I've got $config['url_path'] set to "/" )
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 Previous  1, 2, 3, ... 17, 18, 19  Next
Page 2 of 19

 



Powered by phpBB © 2001, 2005 phpBB Group