NPC does not show any data.
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Thu Jul 30, 2009 8:32 am
NPC does not show any data.
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......
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 (128.83 KiB) Viewed 6555 times
-
- Posts: 5
- Joined: Thu Jul 30, 2009 8:32 am
Please.....
I lost any hope....
If someone knows somthing please.......I really neet to solve this problem......
If someone knows somthing please.......I really neet to solve this problem......
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.
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.
-
- Posts: 2
- Joined: Thu Aug 06, 2009 12:29 pm
Can any help
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
NPC is install in cacti and can see any host data or services .
Please Help
Re: NPC does not show any data.
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,
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 (51.31 KiB) Viewed 6312 times
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
thank you all in advance
- Attachments
-
- npc.jpg (68.37 KiB) Viewed 4805 times
Who is online
Users browsing this forum: No registered users and 2 guests