A new virtual host monitor

Hello
I install this on centos, no problem doing that

How does this work ?

How to get it to read a log file ?

Thx
Sky
 
floyd:

One of the big changes going from .3 to .4 was to replace error-return checking with C++ exception handling. The "Empty watch list" exception is thrown by getWatchList() when it completes without finding a non-zero length domain name. There have been changes in the configuration file but they should not have changed the way the watch list is compiled.

Try "topvhost -d" and if you don't see anything other that Input text (the CLF default) then the config file is not being found (probably should be another exception!). Also, cd to the build directory and see if

src/topvhost -vf./.topvhost

lists the logs to be monitored (slightly different info than previous incarnations:domain, log, time-stamp, size).

The only settings that effect the list are 'config_src' (and related config file section), 'file_src' (and related file contents), and 'glob_src'/'gob_omit'

Good luck
 
Please edit and fix post #3.

./configure
make
src/topvhost -vf./.tophvost

I caught it once. I don't know why I did not catch it again.
 
i have install it. now how can i chek my server status graph and log ?

tnx
 
The app is just a console app - if you are using DA to manage your server, you probably need to just invoke it from a shell prompt on an account that has read access to your server logs. The app is a visualization of what is currently happening on the server not a monitoring solution like mrtg.
 
Is there or can there be a way to sort by hits so that the highest number stays at the top?
 
Yes. Just preess h (hits) or t (time)
but i must say that after few hours it stucks
and the screen doesn' updated
 
Compile error on Debian 5.0.4

When i try to compile the prog i get the following error:

config.cpp: In member function ‘std::string Config::filename()’:
config.cpp:61: error: ‘getenv’ was not declared in this scope
make[2]: *** [config.o] Error 1

With some googling it looks like is has to do with gcc4.3 and getenv(HOME)

Any sugestions?
 
When i try to compile the prog i get the following error:

config.cpp: In member function ‘std::string Config::filename()’:
config.cpp:61: error: ‘getenv’ was not declared in this scope
make[2]: *** [config.o] Error 1

With some googling it looks like is has to do with gcc4.3 and getenv(HOME)

Any sugestions?

Add #include <stdlib.h> to the top of src/config.cpp and make will work fine.
 
~/downloads/topvhost-0.5# src/topvhost -f./.topvhost -sDA
basic_string::substr
CentOS 5.5 x86_64 and with kernel 2.6.18 (version 0.4 works without problems)
 
Last edited:
Add #include <stdlib.h> to the top of src/config.cpp and make will work fine.

I did that but then got:

Code:
Making all in src
make[2]: Entering directory `/usr/local/src/topvhost-0.5/src'
g++ -DHAVE_CONFIG_H -I. -I..    -Wall -g -O2 -MT config.o -MD -MP -MF .deps/config.Tpo -c -o config.o config.cpp
mv -f .deps/config.Tpo .deps/config.Po
g++ -DHAVE_CONFIG_H -I. -I..    -Wall -g -O2 -MT monitor.o -MD -MP -MF .deps/monitor.Tpo -c -o monitor.o monitor.cpp
monitor.cpp: In member function 'watchList* Monitor::getWatchList(Config*)':
monitor.cpp:134: error: 'snprintf' was not declared in this scope
make[2]: *** [monitor.o] Error 1
make[2]: Leaving directory `/usr/local/src/topvhost-0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/topvhost-0.5'
make: *** [all] Error 2
root@http5:/usr/local/src/topvhost-0.5#
 
I installed but run and get this:

root@vmi2365 [~/topvhost-0.5]# /root/topvhost-0.5/src/topvhost -f /root/topvhost-0.5/.topvhost -sDACO
basic_string::substr
 
Back
Top