I had the same results initially, it was because freebsd does not add pdo_mysql by default. To check for pdo_mysql create a phpinfo() file like phpinfo.phpI can confirm in mysql that the npc_hosts table is populated with 159 rows.
Code: Select all
<?php
phpinfo();
?>
Code: Select all
nagios1# php phpinfo.php | grep mysql
PDO drivers => sqlite, mysql
pdo_mysql
The hostinfo plugin works pretty well too
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - FreeBSD 6.1-RELEASE-p11
Web Server - Apache/2.2.8 (FreeBSD) mod_ssl/2.2.8 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.5 with Suhosin-Patch
PHP - 5.2.5
PHP Extensions - session, Reflection, date, libxml, apache2handler, ctype, pcre, SimpleXML, SPL, dom, filter, hash, iconv, json, mysql, PDO, pdo_sqlite, posix, standard, SQLite, tokenizer, xml, xmlreader, xmlwriter, sockets, snmp, pdo_mysql, gd
MySQL - 5.0.51a-log
RRDTool - 1.2.23
SNMP - 5.3.1
Plugins
- Thresholds (thold - v0.3.9)
Global Plugin Settings (settings - v0.3)
Network Tools (tools - v0.2)
Host Info (hostinfo - v0.2)
Nagios plugin for Cacti (npc - v2.0.0a)
SuperLinks (superlinks - v0.72)