Forum

Problem monitoring second webserver

niko2
25 March 2010, 20:15
Hello,

I need some help getting monitoring information from a second server (192.168.1.15)

First server (192.168.1.50) is running websites and monitoring itself

Second server is listening on 8080 : here is my hiawatha conf :
MonitorServer = 192.168.1.50
My VirtualHost has :
MonitorRequests = yes

Each time cron is executed on the monitor server, I have got these logs on the second one :

==> /var/log/hiawatha/monitor-access.log <==
192.168.1.50|Thu 25 Mar 2010 20:05:39 +0100|200|5369||GET / HTTP/1.0|Host: monitor|Accept-Encoding: gzip|User-Agent: Mozilla/5.0 (compatible; Banshee HTTP class)

==> /var/log/hiawatha/monitor-error.log <==
Thu 25 Mar 2010 20:05:39 +0100|192.168.1.50|xml|file not found

and sometimes :
==> /var/log/hiawatha/system.log <==
127.0.0.1|Thu 25 Mar 2010 20:05:46 +0100|Client disconnected


I don't have any information in monitor interface for the second server
on second server, /var/lib/hiawatha/monitor is full of .txt.gz files



Hiawatha version: 7
Operating System: Debian Lenny
niko2
25 March 2010, 20:23
I tried change user running hiawatha on second server to the same one running the first server (sure it will not change anything), and nothing better happens for the monitoring !
Hugo Leisink
25 March 2010, 20:28
Have you entered the IP addresses of the webservers-to-be-monitored in the Monitor Website (Menu -> CMS Menu -> Webservers)?
niko2
25 March 2010, 20:38
Yes, I did

I already have some trouble monitoring first server.
Everything worked after resetting database and resetting monitor server

From this experience,
I wonder if monitor does not need monitored servers to be up and ready to serve monitor requests before to start monitor them ?
Or if something is missing when adding new server...
niko2
25 March 2010, 20:40
I also have trouble deleting non working monitored servers with an error that complains : no monitor.MY_WEBSERVER table exists or something like that
niko2
25 March 2010, 20:44
SQL query: select count(*) as count from `statistics` where webserver_id=3
Error message: Table 'monitor.statistics' doesn't exist
niko2
25 March 2010, 21:20
I tried to fetch manually the monitoring information: This what I got :

<index><hostname>monitor</hostname><request_uri>/</request_uri><files><file type="file" timestamp="24 Mar 2010, 22:10:18" size="1.4 kB" extension="gz" url_encoded="1269465018.txt.gz">1269465018.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:29:38" size="1.5 kB" extension="gz" url_encoded="1269466178.txt.gz">1269466178.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:31:56" size="1.5 kB" extension="gz" url_encoded="1269466316.txt.gz">1269466316.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:38:41" size="1.8 kB" extension="gz" url_encoded="1269466721.txt.gz">1269466721.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:43:01" size="1.3 kB" extension="gz" url_encoded="1269466981.txt.gz">1269466981.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:46:44" size="1.5 kB" extension="gz" url_encoded="1269467204.txt.gz">1269467204.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:49:29" size="1.4 kB" extension="gz" url_encoded="1269467369.txt.gz">1269467369.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:51:48" size="1.5 kB" extension="gz" url_encoded="1269467508.txt.gz">1269467508.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:54:40" size="1.4 kB" extension="gz" url_encoded="1269467680.txt.gz">1269467680.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:56:58" size="1.5 kB" extension="gz" url_encoded="1269467818.txt.gz">1269467818.txt.gz</file><file type="file" timestamp="24 Mar 2010, 22:59:49" size="1.4 kB" extension="gz" url_encoded="1269467989.txt.gz">1269467989.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:10:30" size="1.1 kB" extension="gz" url_encoded="1269472230.txt.gz">1269472230.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:22:36" size="2.2 kB" extension="gz" url_encoded="1269472956.txt.gz">1269472956.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:24:52" size="1.4 kB" extension="gz" url_encoded="1269473092.txt.gz">1269473092.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:27:39" size="1.5 kB" extension="gz" url_encoded="1269473259.txt.gz">1269473259.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:29:55" size="1.4 kB" extension="gz" url_encoded="1269473395.txt.gz">1269473395.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:32:52" size="1.5 kB" extension="gz" url_encoded="1269473572.txt.gz">1269473572.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:35:07" size="1.4 kB" extension="gz" url_encoded="1269473707.txt.gz">1269473707.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:38:04" size="1.5 kB" extension="gz" url_encoded="1269473884.txt.gz">1269473884.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:40:19" size="1.4 kB" extension="gz" url_encoded="1269474019.txt.gz">1269474019.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:42:46" size="1.5 kB" extension="gz" url_encoded="1269474166.txt.gz">1269474166.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:44:32" size="1.1 kB" extension="gz" url_encoded="1269474272.txt.gz">1269474272.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:47:12" size="1.5 kB" extension="gz" url_encoded="1269474432.txt.gz">1269474432.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:49:42" size="1.4 kB" extension="gz" url_encoded="1269474581.txt.gz">1269474581.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:52:26" size="1.5 kB" extension="gz" url_encoded="1269474746.txt.gz">1269474746.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:54:57" size="1.4 kB" extension="gz" url_encoded="1269474896.txt.gz">1269474896.txt.gz</file><file type="file" timestamp="25 Mar 2010, 00:57:42" size="1.5 kB" extension="gz" url_encoded="1269475062.txt.gz">1269475062.txt.gz</file><file type="file" timestamp="25 Mar 2010, 01:00:08" size="1.4 kB" extension="gz" url_encoded="1269475208.txt.gz">1269475208.txt.gz</file><file type="file" timestamp="25 Mar 2010, 01:02:57" size="1.5 kB" extension="gz" url_encoded="1269475377.txt.gz">1269475377.txt.gz</file><file type="file" timestamp="25 Mar 2010, 01:05:23" size="1.4 kB" extension="gz" url_encoded="1269475523.txt.gz">1269475523.txt.gz</file><file type="file" timestamp="25 Mar 2010, 01:07:29" size="1.4 kB" extension="gz" url_encoded="1269475649.txt.gz">1269475649.txt.gz</file><file type="file" timestamp="25 Mar 2010, 01:11:29" size="1.1 kB" extension="gz" url_encoded="1269475889.txt.gz">1269475889.txt.gz</file><file type="file" timestamp="25 Mar 2010, 06:42:24" size="1.5 kB" extension="gz" url_encoded="1269495744.txt.gz">1269495744.txt.gz</file><file type="file" timestamp="25 Mar 2010, 10:15:53" size="1.8 kB" extension="gz" url_encoded="1269508553.txt.gz">1269508553.txt.gz</file><file type="file" timestamp="25 Mar 2010, 12:13:20" size="1.4 kB" extension="gz" url_encoded="1269515600.txt.gz">1269515600.txt.gz</file><file type="file" timestamp="25 Mar 2010, 17:44:16" size="449 byte" extension="gz" url_encoded="1269535456.txt.gz">1269535456.txt.gz</file><file type="file" timestamp="25 Mar 2010, 19:43:19" size="244 byte" extension="gz" url_encoded="1269542599.txt.gz">1269542599.txt.gz</file><file type="file" timestamp="25 Mar 2010, 20:22:12" size="157 byte" extension="gz" url_encoded="1269544932.txt.gz">1269544932.txt.gz</file><file type="file" timestamp="25 Mar 2010, 20:24:50" size="47 byte" extension="gz" url_encoded="1269545090.txt.gz">1269545090.txt.gz</file><file type="file" timestamp="25 Mar 2010, 20:59:19" size="153 byte" extension="gz" url_encoded="1269547159.txt.gz">1269547159.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:02:16" size="130 byte" extension="gz" url_encoded="1269547336.txt.gz">1269547336.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:06:02" size="1.5 kB" extension="gz" url_encoded="1269547562.txt.gz">1269547562.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:06:54" size="934 byte" extension="gz" url_encoded="1269547614.txt.gz">1269547614.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:10:39" size="129 byte" extension="gz" url_encoded="1269547839.txt.gz">1269547839.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:17:35" size="130 byte" extension="gz" url_encoded="1269548255.txt.gz">1269548255.txt.gz</file><file type="file" timestamp="25 Mar 2010, 21:22:05" size="1.5 kB" extension="gz" url_encoded="1269548525.txt.gz">1269548525.txt.gz</file></files><total_size>57.8 kB</total_size><software>Hiawatha v7.0</software></index>root@xentest:~#

and I then I reached to retrieve the first archive :
wget http://monitor:8080/1269465018.txt.gz

niko2
25 March 2010, 21:50
I solved my problem : http://www.hiawatha-webserver.org/forum/topic/485
Hugo Leisink
25 March 2010, 23:33
Thanks, is everything working now?

Btw, the "xml|file not found" in the error logfile is a bug and will also be fixed in the next release.
This topic has been closed.