Cactiusers.org


It is currently Mon May 21, 2012 5:32 pm




Post new topic Reply to topic  [ 2 posts ] 
 how to verify thold and monitor working by command prompt 
Author Message
New User

Joined: Fri Sep 23, 2005 10:30 am
Posts: 4
Post 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.


Mon Sep 26, 2005 6:15 am
Post Re: how to verify thold and monitor working by command promp
danviv wrote:
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.


Monitor is not actually meant to be ran from the command line, I can definitely add the ability though (run it from the command line, and make it display a total count of all hosts down, and hosts up, and the names of the down hosts).

Thold, has check-thold.php which can be ran from the command line, but it will not give you much info at all. I will see about adding in the same stuff that I plan on adding to monitor plugin.


Mon Sep 26, 2005 10:01 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: