Xymon Mailing List Archive search

Unable to view xymon web pages

7 messages in this thread

list Jewel Makda · Wed, 07 Sep 2011 13:14:05 -0500 ·
I am trying to setup xymon on Ubuntu and for days now have not been able to get it working.  I have followed the installation steps to a "T" and have created a user called "xymonuser" for xymon.  I copied the xymon-apache.conf file to my /etc/apache2/apache2.conf and when I start the xymon.sh service as xymonuser I only see the "index/xymon" directory when I go to http://localhost/xymom/
  Here are some of my one of my log files:

tail /var/log/xymon/xymonlaunch.log
     Cannot access checkpoint file /home/xymonuser/srver/tmp/xymond.chk for restore
     Setting up network listener on 0.0.0.0:1984
     Cannot bind to listen socket (Address already in use)
     Task xymond terminated, status 1

There are errors at in my apache logs and when I start the xymon service it starts successfully.

I have to say I am a newbie when it comes to linux and am still learning how to use vi.

Jewel


--
list Josh Luthman · Wed, 7 Sep 2011 14:26:31 -0400 ·
You can use nano or pico as an easier file editor.

Did you overwrite apache2.conf with xymon's xymon-apache.conf?  You are
supposed to append it.

It seems xymond is running.  Do a:

netstat -an|grep 1984

Then look at your web files and look for bb.html and bb2.html, probably in
/var/html/www

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:14 PM, Jewel Makda <
quoted from Jewel Makda
user-f94a3a1b7030@xymon.invalid> wrote:
I am trying to setup xymon on Ubuntu and for days now have not been able to
get it working.  I have followed the installation steps to a "T" and have
created a user called "xymonuser" for xymon.  I copied the xymon-apache.conf
file to my /etc/apache2/apache2.conf and when I start the xymon.sh service
as xymonuser I only see the "index/xymon" directory when I go to
http://localhost/xymom/
 Here are some of my one of my log files:

tail /var/log/xymon/xymonlaunch.log
   Cannot access checkpoint file /home/xymonuser/srver/tmp/**xymond.chk
for restore
   Setting up network listener on 0.0.0.0:1984
   Cannot bind to listen socket (Address already in use)
   Task xymond terminated, status 1

There are errors at in my apache logs and when I start the xymon service it
starts successfully.

I have to say I am a newbie when it comes to linux and am still learning
how to use vi.

Jewel


--


______________________________**

Xymon at xymon.com<
list Jewel Makda · Wed, 07 Sep 2011 13:35:17 -0500 ·
I appended the xymon-apache.conf to the end of the apache2.conf file.
When I run a netstat -an | grep 1984 I get the following:
tcp  0  0  0.0.0.0:1984          0.0.0.0:*              LISTEN
tcp  0  0  127.0.0.1:51250   127.0.0.1:1984   TIME_WAIT
tcp  0  0  127.0.0.1:51251   127.0.0.1:1984   TIME_WAIT

When I search for the bb.html file it's located in:
/var/lib/hobbit/www/bb.html
/var/lib/hobbit/www/bb2.html
quoted from Josh Luthman

On 9/7/2011 1:26 PM, Josh Luthman wrote:
You can use nano or pico as an easier file editor.

Did you overwrite apache2.conf with xymon's xymon-apache.conf?  You 
are supposed to append it.

It seems xymond is running.  Do a:

netstat -an|grep 1984

Then look at your web files and look for bb.html and bb2.html, 
probably in /var/html/www

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:14 PM, Jewel Makda 
<user-f94a3a1b7030@xymon.invalid 
<mailto:user-f94a3a1b7030@xymon.invalid>> wrote:

    I am trying to setup xymon on Ubuntu and for days now have not
    been able to get it working.  I have followed the installation
    steps to a "T" and have created a user called "xymonuser" for
    xymon.  I copied the xymon-apache.conf file to my
    /etc/apache2/apache2.conf and when I start the xymon.sh service as
    xymonuser I only see the "index/xymon" directory when I go to
    http://localhost/xymom/
     Here are some of my one of my log files:

    tail /var/log/xymon/xymonlaunch.log
       Cannot access checkpoint file
    /home/xymonuser/srver/tmp/xymond.chk for restore

       Setting up network listener on 0.0.0.0:1984 <http://0.0.0.0:1984>;
quoted from Josh Luthman
       Cannot bind to listen socket (Address already in use)
       Task xymond terminated, status 1

    There are errors at in my apache logs and when I start the xymon
    service it starts successfully.

    I have to say I am a newbie when it comes to linux and am still
    learning how to use vi.

    Jewel


    -- 

--
list Josh Luthman · Wed, 7 Sep 2011 14:44:23 -0400 ·
Looks like Xymon is running, so that's all good.

Double check to see, in apache2.conf, this:
Alias /xymon/  "/var/lib/hobbit/www/"

Next do a
file index.html #you should see index.html: symbolic link to `bb.html'

Now do an ls -lh bb.html and make sure it isn't blank

Now when you go to foobarhost.com/xymon/ (note the trailing slash) what page
do you see?
quoted from Jewel Makda

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:35 PM, Jewel Makda <
quoted from Jewel Makda
user-f94a3a1b7030@xymon.invalid> wrote:
 I appended the xymon-apache.conf to the end of the apache2.conf file.
When I run a netstat -an | grep 1984 I get the following:
tcp  0  0  0.0.0.0:1984          0.0.0.0:*              LISTEN
tcp  0  0  127.0.0.1:51250   127.0.0.1:1984   TIME_WAIT
tcp  0  0  127.0.0.1:51251   127.0.0.1:1984   TIME_WAIT

When I search for the bb.html file it's located in:
/var/lib/hobbit/www/bb.html
/var/lib/hobbit/www/bb2.html


On 9/7/2011 1:26 PM, Josh Luthman wrote:

You can use nano or pico as an easier file editor.

Did you overwrite apache2.conf with xymon's xymon-apache.conf?  You are
supposed to append it.

It seems xymond is running.  Do a:

netstat -an|grep 1984

Then look at your web files and look for bb.html and bb2.html, probably in
/var/html/www

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:14 PM, Jewel Makda <
user-f94a3a1b7030@xymon.invalid> wrote:
I am trying to setup xymon on Ubuntu and for days now have not been able
to get it working.  I have followed the installation steps to a "T" and have
created a user called "xymonuser" for xymon.  I copied the xymon-apache.conf
file to my /etc/apache2/apache2.conf and when I start the xymon.sh service
as xymonuser I only see the "index/xymon" directory when I go to
http://localhost/xymom/
 Here are some of my one of my log files:

tail /var/log/xymon/xymonlaunch.log
   Cannot access checkpoint file /home/xymonuser/srver/tmp/xymond.chk for
restore
   Setting up network listener on 0.0.0.0:1984
   Cannot bind to listen socket (Address already in use)
   Task xymond terminated, status 1

There are errors at in my apache logs and when I start the xymon service
it starts successfully.

I have to say I am a newbie when it comes to linux and am still learning
how to use vi.

Jewel


--

--

list Jewel Makda · Wed, 07 Sep 2011 13:55:07 -0500 ·
I changed the first two lines in my apache2.conf file to:

Alias /xymon/  "/var/lib/hobbit/www/"
<Directory "/var/lib/hobbit/www/">

and now I can see the home page!  But when I click on anything I get:
/Forbidden "You don't have permission to access 
/hobbit-cgi/bb-hostsvc.sh on this server"/

Here is what my apache2.conf file looks like now:

Alias /xymon/  "/home/xymonuser/server/www/"
<Directory "/home/xymonuser/server/www">
     Options Indexes FollowSymLinks Includes MultiViews
     Order allow,deny
     Allow from all
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymonuser/cgi-bin/"
<Directory "/home/xymonuser/cgi-bin">
     AllowOverride None
     Options ExecCGI Includes
     Order allow,deny
     Allow from all
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymonuser/cgi-secure/"
<Directory "/home/xymonuser/cgi-secure">
     AllowOverride None
     Options ExecCGI Includes
     Order allow,deny
     Allow from all

Thanks so far so the quick and helpful response!
quoted from Josh Luthman


On 9/7/2011 1:44 PM, Josh Luthman wrote:
Looks like Xymon is running, so that's all good.

Double check to see, in apache2.conf, this:
Alias /xymon/  "/var/lib/hobbit/www/"

Next do a
file index.html #you should see index.html: symbolic link to `bb.html'
I am not sure what you mean here.
quoted from Josh Luthman
Now do an ls -lh bb.html and make sure it isn't blank

Now when you go to foobarhost.com/xymon/ 

<http://foobarhost.com/xymon/>; (note the trailing slash) what page do 
quoted from Josh Luthman
you see?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:35 PM, Jewel Makda 
<user-f94a3a1b7030@xymon.invalid 
<mailto:user-f94a3a1b7030@xymon.invalid>> wrote:

    I appended the xymon-apache.conf to the end of the apache2.conf file.
    When I run a netstat -an | grep 1984 I get the following:

    tcp  0  0 0.0.0.0:1984 <http://0.0.0.0:1984>;          0.0.0.0:*  
               LISTEN
    tcp  0  0 127.0.0.1:51250 <http://127.0.0.1:51250>; 127.0.0.1:1984
    <http://127.0.0.1:1984>;   TIME_WAIT
    tcp  0  0 127.0.0.1:51251 <http://127.0.0.1:51251>; 127.0.0.1:1984
    <http://127.0.0.1:1984>;   TIME_WAIT
signature

    When I search for the bb.html file it's located in:
    /var/lib/hobbit/www/bb.html
    /var/lib/hobbit/www/bb2.html


quoted from Josh Luthman
    On 9/7/2011 1:26 PM, Josh Luthman wrote:
    You can use nano or pico as an easier file editor.

    Did you overwrite apache2.conf with xymon's xymon-apache.conf? 
    You are supposed to append it.

    It seems xymond is running.  Do a:

    netstat -an|grep 1984

    Then look at your web files and look for bb.html and bb2.html,
    probably in /var/html/www

    Josh Luthman

    Office: XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
    Direct: XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
quoted from Josh Luthman
    XXXX Wayne St
    Suite XXXX
    Troy, OH XXXXX


    On Wed, Sep 7, 2011 at 2:14 PM, Jewel Makda
    <user-f94a3a1b7030@xymon.invalid
    <mailto:user-f94a3a1b7030@xymon.invalid>> wrote:

        I am trying to setup xymon on Ubuntu and for days now have
        not been able to get it working.  I have followed the
        installation steps to a "T" and have created a user called
        "xymonuser" for xymon.  I copied the xymon-apache.conf file
        to my /etc/apache2/apache2.conf and when I start the xymon.sh
        service as xymonuser I only see the "index/xymon" directory
        when I go to http://localhost/xymom/
         Here are some of my one of my log files:

        tail /var/log/xymon/xymonlaunch.log
           Cannot access checkpoint file
        /home/xymonuser/srver/tmp/xymond.chk for restore
           Setting up network listener on 0.0.0.0:1984
        <http://0.0.0.0:1984>;
           Cannot bind to listen socket (Address already in use)
           Task xymond terminated, status 1

        There are errors at in my apache logs and when I start the
        xymon service it starts successfully.

        I have to say I am a newbie when it comes to linux and am
        still learning how to use vi.

        Jewel


        -- 

    -- 

--
list Josh Luthman · Wed, 7 Sep 2011 15:05:33 -0400 ·
The user:group running httpd doesn't have permissions to /var/lib/hobbit/www
I expect.

name -i /var/lib/hobbit/www

Debian uses nobody for httpd, I think, so "nobody" needs to execute those
directories and read to bb.html and such.

Easiest way is to have Xymon run with the apache user, or create a group
that the two share, etc.
quoted from Jewel Makda

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:55 PM, Jewel Makda <
quoted from Jewel Makda
user-f94a3a1b7030@xymon.invalid> wrote:
 I changed the first two lines in my apache2.conf file to:


Alias /xymon/  "/var/lib/hobbit/www/"
<Directory "/var/lib/hobbit/www/">

and now I can see the home page!  But when I click on anything I get:
*Forbidden "You don't have permission to access /hobbit-cgi/bb-hostsvc.sh
on this server"*

Here is what my apache2.conf file looks like now:

Alias /xymon/  "/home/xymonuser/server/www/"
<Directory "/home/xymonuser/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Order allow,deny
    Allow from all
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymonuser/cgi-bin/"
<Directory "/home/xymonuser/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Order allow,deny
    Allow from all
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymonuser/cgi-secure/"
<Directory "/home/xymonuser/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Order allow,deny
    Allow from all

Thanks so far so the quick and helpful response!


On 9/7/2011 1:44 PM, Josh Luthman wrote:

Looks like Xymon is running, so that's all good.

Double check to see, in apache2.conf, this:
Alias /xymon/  "/var/lib/hobbit/www/"

Next do a
file index.html #you should see index.html: symbolic link to `bb.html'

I am not sure what you mean here.


Now do an ls -lh bb.html and make sure it isn't blank

Now when you go to foobarhost.com/xymon/ (note the trailing slash) what
page do you see?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:35 PM, Jewel Makda <
user-f94a3a1b7030@xymon.invalid> wrote:
 I appended the xymon-apache.conf to the end of the apache2.conf file.
When I run a netstat -an | grep 1984 I get the following:
tcp  0  0  0.0.0.0:1984          0.0.0.0:*              LISTEN
tcp  0  0  127.0.0.1:51250   127.0.0.1:1984   TIME_WAIT
tcp  0  0  127.0.0.1:51251   127.0.0.1:1984   TIME_WAIT

When I search for the bb.html file it's located in:
/var/lib/hobbit/www/bb.html
/var/lib/hobbit/www/bb2.html


On 9/7/2011 1:26 PM, Josh Luthman wrote:

You can use nano or pico as an easier file editor.

Did you overwrite apache2.conf with xymon's xymon-apache.conf?  You are
supposed to append it.

It seems xymond is running.  Do a:

netstat -an|grep 1984

Then look at your web files and look for bb.html and bb2.html, probably in
/var/html/www

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Sep 7, 2011 at 2:14 PM, Jewel Makda <
user-f94a3a1b7030@xymon.invalid> wrote:
I am trying to setup xymon on Ubuntu and for days now have not been able
to get it working.  I have followed the installation steps to a "T" and have
created a user called "xymonuser" for xymon.  I copied the xymon-apache.conf
file to my /etc/apache2/apache2.conf and when I start the xymon.sh service
as xymonuser I only see the "index/xymon" directory when I go to
http://localhost/xymom/
 Here are some of my one of my log files:

tail /var/log/xymon/xymonlaunch.log
   Cannot access checkpoint file /home/xymonuser/srver/tmp/xymond.chk for
restore
   Setting up network listener on 0.0.0.0:1984
   Cannot bind to listen socket (Address already in use)
   Task xymond terminated, status 1

There are errors at in my apache logs and when I start the xymon service
it starts successfully.

I have to say I am a newbie when it comes to linux and am still learning
how to use vi.

Jewel


--

 --

--

list Tim McCloskey · Wed, 7 Sep 2011 13:21:20 -0700 ·
I'm not near a system that I can take a look at right now (to get some more accurate details) but the following script alias and error message might need to be addressed.
quoted from Josh Luthman
Forbidden "You don't have permission to access /hobbit-cgi/bb-hostsvc.sh on this server"
Here is what my apache2.conf file looks like now:

ScriptAlias /xymon-cgi/ "/home/xymonuser/cgi-bin/"