NPC does not show any data.

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mkazmierczyk
Posts: 5
Joined: Thu Jul 30, 2009 8:32 am

NPC does not show any data.

Post by mkazmierczyk »

hallo....

I have read about my problem on many forums, I also noticed that my problem seems to be a common issue but unforunetly any suggested solutions have not worked.

So....to be complex..

I am using
Centos 5.3
PHP 5.2.6
I have php JSON installed
Cacti 0.8.7e
npc 2.0.4


I have configured ndo and it works fine npc_ tables in mysql are filling with data but as I click on NPC tab in Cacti I can only see empty tabs, no data about hosts or services is shown (Nagios works fine). I have attached a printscreen.


https://cacti.mos.gov.pl/plugins/npc/np ... _state=any

returns: {"response":{"value":{"items":[],"total_count":0,"version":1}}}

Host/Service Config Type i set to 1

I have also read about changing Connection.php and I did it as follows:

$this->dbh = new PDO('mysql:host=localhostdbname=cacti','cacti','cacti');

But it still does not work.


What is more interesting that in device setings in console tab i have a list of nagios hosts which a can link with cact device.


I have no other ideas please help......
Attachments
bez_nazwy_1_545.jpg
bez_nazwy_1_545.jpg (128.83 KiB) Viewed 6554 times
mkazmierczyk
Posts: 5
Joined: Thu Jul 30, 2009 8:32 am

Please.....

Post by mkazmierczyk »

I lost any hope....

If someone knows somthing please.......I really neet to solve this problem......
mkazmierczyk
Posts: 5
Joined: Thu Jul 30, 2009 8:32 am

:((

Post by mkazmierczyk »

Solution is still not found ......:(
atxbibip4
Posts: 1
Joined: Fri Aug 07, 2009 3:30 am

Post by atxbibip4 »

Hello,

I have already this problem. I just restart nagios and I have green icone on services, hosts and tabs are full. After, you can click on host and see the services. Check your nagios config too.
This line : << $this->dbh = new PDO('mysql:host=localhostdbname=cacti','cacti','cacti'); >> didn't work for me.

I'm stuck too, but with graphs. All is good, nagios, npc, cacti, php, npc_ tables, rra files, but my graphs stay blank ...

Have a good day.
spudding98
Posts: 2
Joined: Thu Aug 06, 2009 12:29 pm

Can any help

Post by spudding98 »

I installed NPC data flow fine between nagios and mysql database.
NPC is install in cacti and can see any host data or services .
Please Help
dadru
Posts: 3
Joined: Tue Aug 11, 2009 12:42 am

Re: NPC does not show any data.

Post by dadru »

help!!!

PHP Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't locate driver named mysql' in /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Connection.php:483\nStack trace:\n#0 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Connection/Mysql.php(103): Doctrine_Connection->connect()\n#1 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Connection.php(1009): Doctrine_Connection_Mysql->connect()\n#2 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Connection.php(808): Doctrine_Connection->execute('SELECT COUNT(*)...', Array)\n#3 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Query.php(1894): Doctrine_Connection->fetchAll('SELECT COUNT(*)...', Array)\n#4 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Pager.php(108): Doctrine_Query->count(Array)\n#5 /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Pager.php(570): Doctrine_Pager->_initialize(Array)\n#6 /usr/local/apache2/htdocs/cacti/plugins/npc/controllers/logentries.php(60): Doctrine_Pager->execute( in /usr/local/apache2/htdocs/cacti/plugins/npc/lib/Doctrine/Connection.php on line 483,
Attachments
1.png
1.png (51.31 KiB) Viewed 6311 times
ak41
Posts: 1
Joined: Mon Dec 28, 2009 11:23 pm

Post by ak41 »

first check u php pdo support for mysql...

if no mysql in this tab, please reinstall u php with the Configuration option " --with-pdo-mysql" ,and u will find u npc is running ok!

:P :P
Attachments
npc.jpg
npc.jpg (134.7 KiB) Viewed 5605 times
pdo_mysql.jpg
pdo_mysql.jpg (15.35 KiB) Viewed 5605 times
bigturk
Posts: 37
Joined: Wed Sep 02, 2009 4:45 pm

Post by bigturk »

My php.ini file has no entry of PDO in it.
what are my options?
bigturk
Posts: 37
Joined: Wed Sep 02, 2009 4:45 pm

Post by bigturk »

I think Im getting closer. I installed PDO extension for php and now i get nagios status is off. I been reading different threads and keep on seeing something about ND02DB. how can i check t see if I have that DB and it updating . Would this be a Cacti DB or a Nagios?

thank you all in advance
Attachments
npc.jpg
npc.jpg (68.37 KiB) Viewed 4804 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest