You are not logged in.

#1 2014-09-28 10:43:50

hbc2
Member
Registered: 2014-07-26
Posts: 13

Can't connect to the monitorix built-in http server

I can't connect to the built-in http server for monitorix (yep, I'm using the right IP:port and url). I have it enabled and the directory paths are correctly set (left as defaults) in the conf file.

I just did a fresh install of arch (I did have monitorix running on a previous install from a couple months back so I am a little familiar with it).  After ssh, mpd and lm_sensors, perl-config-general this was the fifth package I installed (so my system is not crufty yet).   I can see that monitorix-httpd is running and there are no errors in  /var/log/monitorix (index.html generated, HTTP server started and, OK ready are all there).   

I'm not sure how I enabled monitorix last time but I know that I always had to manually start it after a reboot.  This time after install I did the standard:  systemctl enable monitorix.service   and both daemons start after reboot. 

/var/log/monitorix-httpd  is zero bytes.   /var and /var/log both have execute permissions on them and monitorix-httpd is owned by nobody:nobody so monitorix-httpd should be able to write to it. 

since I can remotely ssh and connect to mpd, it does not seem like there is a network issue.   

ss does show that there is something listening on 8080  (I don't know how to resolve that to a process in linux but feel I can assume it is monitorix-httpd since starting and stopping changes the ss output accordingly. )

I don't know what else to check.

Any ideas?

Offline

#2 2014-09-29 06:28:11

hbc2
Member
Registered: 2014-07-26
Posts: 13

Re: Can't connect to the monitorix built-in http server

I solved it.  Stupid misunderstanding.  I put the name of my host on the host line whereas the config file was looking for an ip addr (though if you leave it blank it will bind to all interfaces).  Seems the latest install for arch/monitorix is less forgiving than my previous install - I was using a backup of the conf file from my old install with no changes . .  other than this change now.      (my clue was a closer look at ss showed the process on 8080 was only listening on 127.0.0.1)

Last edited by hbc2 (2014-09-29 06:29:18)

Offline

Board footer

Powered by FluxBB