How install NPC ?

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
flipmode
Posts: 14
Joined: Wed Oct 08, 2008 5:21 am

How install NPC ?

Post by flipmode »

Hello,

I need help to install NPC !

In fact, I worked on Redhat 5 (php-5.1.6-23.el5 and mysql-5.0.45-7.el5).
I installed Nagios 3.0, Centreon 1.4.7, NDOutils-1.4b7 and Cacti-0.8.7b.

I am trying to install NPC-2.0.0b.166. which requires this feature of cacti-plugin-arch-2.1 to work. But I have a problem, in Cacti under all of the Plugin Management is blank spaces and below that is Last Scanned: Never.

In Cacti -> Plugin Management -> Uninstalled: There are no Uninstalled Plugins :(

# vi /var/www/cacti/include/global.php
$plugins = array();
$plugins[] = 'npc';


But I can't see NPC in Cacti and I don't know why

Do I use the correct version of cacti-plugin-arch and NPC ?
Do you have some web site which explain how install NPC ?


Thank your very much for your help

Best Regards

Flipmode
sveninger
Posts: 1
Joined: Fri Mar 06, 2009 4:08 am
Location: Luxembourg

Post by sveninger »

Hi Flipmode,

you have to grant access to your user under:

User Management, Realm Permissions

check the Use NPC field

Sven
flipmode
Posts: 14
Joined: Wed Oct 08, 2008 5:21 am

Post by flipmode »

Thanks for your reply and for your help

I check my Cacti Realm permissions control which sections of Cacti this user will have access to and I select all the Realm permissions (Plugin Management...) so I can see the Plugin.

I check the permissions on the npc folder but I don't have ncp folder. :(
In fact, when I installed NPC, I did that:

wget http://trac2.assembla.com/npc/wiki/NPCDownload
tar xzf npc-2.0.0b.166.tar.gz
sudo mv npc /var/www/cacti/plugins/
chmod 777 npc /var/www/cacti/plugins/
chmod 777 npc /var/www/cacti/plugins/*


vi var/www/cacti/include/global.php
$plugins = array();
$plugins[] = 'npc';


But in Console –> Configuration –> Plugin Management -> Uninstalled, I don't see NPC Plugin :(

How can I check the Use NPC field ?

How did you installed NPC? Did you have a npc folder ?

Thank you very much for your help

Flipmode
flipmode
Posts: 14
Joined: Wed Oct 08, 2008 5:21 am

Post by flipmode »

Please Help me!!

UP

Thanks

Flipmode
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

This:

$plugins[] = 'npc';

is the old way to install plugins and is not needed for NPC. Remove that line. Grab the latest version of NPC from here: http://forums.cacti.net/viewtopic.php?t=26540

Then just go to: Console –> Configuration –> Plugin Management and you should see NPC there.

Billy
flipmode
Posts: 14
Joined: Wed Oct 08, 2008 5:21 am

Post by flipmode »

Hello Billy,

Thank you for your reply and for your help

In the file /var/www/cacti/include/global.php, I removed the line: $plugins[] = 'npc';
Then I grabed the latest version of NPC from here: http://forums.cacti.net/viewtopic.php?t=26540

Then, I did that :

Code: Select all

tar -xzf npc-2.0.0b.182.tar.gz
mv npc/ /var/www/cacti/plugins/
chmod 777 npc /var/www/cacti/plugins/npc/
chmod 777 npc /var/www/cacti/plugins/npc/*
I went to: Console –> Configuration –> Plugin Management but I don't see NPC there and in Configuration -> Plugin Management -> Uninstalled : There are no Uninstalled Plugins.

I try to do that:

Code: Select all

cd /var/www/cacti/plugins/npc
mysql -u root -p cacti < upgrade_schema.sql
But I have an error: ERROR 1146 (42S02) at line 2: Table 'cacti.npc_logentries' doesn't exist

I don't know how resolv my problem with NPC :(

Did you have a Website which explain how install NPC with Cacti-0.8.7b and cacti-plugin-arch-2.1 ?

Thank you very much for your help

Best Regards

Flipmode
flipmode
Posts: 14
Joined: Wed Oct 08, 2008 5:21 am

Post by flipmode »

Please Help me!!

UP

Thank you very much

Flipmode
zhxd
Posts: 17
Joined: Sun Nov 15, 2009 2:15 am

Post by zhxd »

flipmode wrote:Hello Billy,

Thank you for your reply and for your help

In the file /var/www/cacti/include/global.php, I removed the line: $plugins[] = 'npc';
Then I grabed the latest version of NPC from here: http://forums.cacti.net/viewtopic.php?t=26540

Then, I did that :

Code: Select all

tar -xzf npc-2.0.0b.182.tar.gz
mv npc/ /var/www/cacti/plugins/
chmod 777 npc /var/www/cacti/plugins/npc/
chmod 777 npc /var/www/cacti/plugins/npc/*
I went to: Console �> Configuration �> Plugin Management but I don't see NPC there and in Configuration -> Plugin Management -> Uninstalled : There are no Uninstalled Plugins.

I try to do that:

Code: Select all

cd /var/www/cacti/plugins/npc
mysql -u root -p cacti < upgrade_schema.sql
But I have an error: ERROR 1146 (42S02) at line 2: Table 'cacti.npc_logentries' doesn't exist

I don't know how resolv my problem with NPC :(

Did you have a Website which explain how install NPC with Cacti-0.8.7b and cacti-plugin-arch-2.1 ?

Thank you very much for your help

Best Regards

Flipmode

I found the same problem to you.
Did you resolv,alreaddy? :-?
leandrofviana
Posts: 4
Joined: Wed Dec 02, 2009 1:20 pm

Post by leandrofviana »

Im, too.. I can't see option npc in User Management ...
:cry:
guilou0875
Posts: 3
Joined: Thu Jun 25, 2009 7:50 pm

Post by guilou0875 »

leandrofviana wrote:Im, too.. I can't see option npc in User Management ...
:cry:
I did things by the book same issue here!!!!!!!!!!!!!!!!!!!!!

mysql -uroot -p cacti < upgrade_schema.sql


ERROR 1146 (42S02) at line 2: Table 'cacti.npc_logentries' doesn't exist

Anyone!!!!!!!!!!!!!!!!!!!!!!!
yumpixels
Posts: 2
Joined: Fri Feb 26, 2010 3:25 pm

Post by yumpixels »

leandrofviana wrote:Im, too.. I can't see option npc in User Management ...
:cry:
  • Under User Management click on the user's name, a.e: admin.
    Click the Realm Permissions tab.
    Check the Plugin Management box and save.
    Then click the Plugin Management link under Configuration on the left pane.
    There you will see NPC, click install, and enable.

guilou0875

http://trac2.assembla.com/npc/wiki/Quic ... tallingNPC

I followed that guide. Do you have other plugins installed? If your plugin architecture isn't installed correctly you will get errors.

http://cactiusers.org/wiki/PluginArchitectureInstall
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests