
how to verify thold and monitor working by command prompt
Hi
I have installed cacti 0.8.6g with plugin architecture and thold and monitor plugins on a windows 2000 box. Now i want to make sure that they are working by running the scripts from command prompt. If i try to run
Code:
c:>php <cactifullpath>/plugins/monitor/monitor.php
i get teh following ODBC connection problem
Quote:
-------------------------------------------------------------------------------
Warning: main(./include/config.php): failed to open stream: No such file or dire
ctory in c:\Apache2\htdocs\cacti\plugins\monitor\monitor.php on line 16
Warning: main(): Failed opening './include/config.php' for inclusion (include_pa
th='.;C:\php5\pear') in c:\Apache2\htdocs\cacti\plugins\monitor\monitor.php on l
ine 16
Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using passwor
d: NO) in c:\Apache2\htdocs\cacti\plugins\monitor\monitor.php on line 41
Warning: mysql_query(): A link to the server could not be established in c:\Apac
he2\htdocs\cacti\plugins\monitor\monitor.php on line 41
Access denied for user 'ODBC'@'localhost' (using password: NO)
------------------------------------------------------------------------
The same is the case for thold.php and check-thold.php
Quote:
C:\Apache2\htdocs\cacti>php c:\apache2\htdocs\cacti\plugins\thold\thold.php
Warning: main(./include/auth.php): failed to open stream: No such file or direct
ory in c:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 15
Warning: main(): Failed opening './include/auth.php' for inclusion (include_path
='.;C:\php5\pear') in c:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 15
Warning: main(/rrd.php): failed to open stream: No such file or directory in c:\
Apache2\htdocs\cacti\plugins\thold\thold.php on line 17
Warning: main(): Failed opening '/rrd.php' for inclusion (include_path='.;C:\php
5\pear') in c:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 17
Warning: main(plugins/thold/thold-functions.php): failed to open stream: No such
file or directory in c:\Apache2\htdocs\cacti\plugins\thold\thold.php on line 18
Warning: main(): Failed opening 'plugins/thold/thold-functions.php' for inclusio
n (include_path='.;C:\php5\pear') in c:\Apache2\htdocs\cacti\plugins\thold\thold
.php on line 18
Fatal error: Call to undefined function db_fetch_assoc() in c:\Apache2\htdocs\ca
cti\plugins\thold\thold.php on line 47
C:\Apache2\htdocs\cacti>php c:\apache2\htdocs\cacti\plugins\thold\check-thold.ph
p
09/26/2005 11:49:13 AM - POLLER: Poller[0] Checking Thresholds
I tried shutting down a server and let "monitor" show me the results, but it showed me that the server is up and running.
I am obiviously doing something wrong here....
Can someone help me please?
Thanks in advance.