A new virtual host monitor

I was curios to use this tool but on CentOS 5.6 64B the compile work great but ive this error/report:

Code:
>src/topvhost -vf./.topvhost
basic_string::substr

Here the conf took by the site:

Code:
# Configuration for topvhost
#
#
default=DA
hdr_format=%02m-%02d %02H:%02M:%02S Elapsed: %t Hosts: %3n Hits: %6o Read: %#I\n|
row_format=%02m-%02d %02H:%02M:%02S %8o %18h %v %3s %40r\n
[DA]
glob_omit=.error.log
glob_src=/var/log/httpd/domains/%s.log
log_format=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O
[Plesk]
glob_src=/var/www/vhosts/%s/statistics/logs/access_log
[Main]
config_src=MainFiles
[MainFiles]
main_log=/var/log/httpd/access_log
[Example]
glob_omit=.error.log
glob_src=/var/log/httpd/domains/%s.log
log_format=%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O
row_format=%02m-%02d %02H:%02M:%02S %8o %18h %v %3s %40r\n%40{Referer}i %40{User-Agent}i\n

Anyone is still using this? Any suggestion?

Thanks
 
error on MAKE

:/topvhost-0.4# ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for strftime... yes
checking for memset... yes
checking for select... yes
checking for strstr... yes
checking for library containing mvprintw... -lcurses
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


:/topvhost-0.4# make
make all-recursive
make[1]: Entering directory `/topvhost-0.4'
Making all in src
make[2]: Entering directory `/topvhost-0.4/src'
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -g -O2 -MT topvhost.o -MD -MP -MF .deps/topvhost.Tpo -c -o topvhost.o topvhost.cpp
mv -f .deps/topvhost.Tpo .deps/topvhost.Po
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 `/topvhost-0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/topvhost-0.4'
make: *** [all] Error 2
:/topvhost-0.4#
 
Back
Top