[Xymon] Xymon Setup

Tres Finocchiaro tres.finocchiaro at gmail.com
Fri Sep 19 21:35:46 CEST 2014


We spent quite a while getting apache configured properly because
documentation had changed over the years.  Here were my steps (Ubuntu 14.04)


   1.    Install latest from source using makdeb instructions and dpkg
   2.    Enable CGI
      $ sudo a2enmod cgid
   3.    $ sudo nano /etc/apache2/mods-enabled/alias.conf
   4.    Fix Apache Startup error
      $ sudo nano /etc/apache2/apache2.conf
      Place this somewhere in the file:
      ServerName x <--- Where "x" is the hostname of your server
   5.    Setup apache Alias
      $ sudo nano /etc/apache2/mods-enabled/alias.conf
      Paste the text below between </Directory> and </IfModules>


>         Alias /xymon/ "/usr/lib/xymon/server/www/"
>         <Directory "/usr/lib/xymon/server/www/">
>                 Options Indexes FollowSymLinks Includes MultiViews
>                 Require all granted
>         </Directory>
>         ScriptAlias /xymon-cgi/ "/usr/lib/xymon/cgi-bin/"
>         <Directory "/usr/lib/xymon/cgi-bin">
>                 AllowOverride None
>                 Options ExecCGI Includes
>                 Require all granted
>         </Directory>
>         ScriptAlias /xymon-seccgi/ "/usr/lib/xymon/cgi-secure/"
>         <Directory "/usr/lib/xymon/cgi-secure">
>                 AllowOverride None
>                 Options ExecCGI Includes
>                 Require all granted
>                 # Password file where users with access to these scripts
> are kept.
>                 # Create it with "htpasswd -c
> /usr/lib/xymon/server/etc/xymonpasswd USERNAME"
>                 # Add more users / change passwords with "htpasswd
> /usr/lib/xymon/server/etc/xymonpasswd USERNAME"
>                 AuthUserFile /usr/lib/xymon/server/etc/xymonpasswd
>                 AuthType Basic
>                 AuthName "Xymon Administration"
>                 Require valid-user
>         </Directory>



   1. Fix a memory leak wih Apache/Ubuntu 14.04
      $ sudo apt-get install libpam-smbpass
   2. Restart the Apache Server
      $ sudo /etc/init.d/apache2 restart
   3. Finally, configure hosts, mail settings, alerts, etc

I can provide more detailed instructions for any of these steps if you
think they apply.

-Tres


- Tres.Finocchiaro at gmail.com

On Fri, Sep 19, 2014 at 3:16 PM, Steve Coile <
scoile at mcclatchyinteractive.com> wrote:

> I'd guess an Apache configuration issue, yes.  Of course, you should also
> check the permission on the *xymon.html* file to ensure it's readable by
> whatever user your Apache *httpd* process is running as.
>
>
> --
>
> *Steve Coile*Senior Network and Systems Engineer, McClatchy Interactive
> <http://www.mcclatchyinteractive.com/>
> Office: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300
>
> On Fri, Sep 19, 2014 at 2:56 PM, Andre Beyleveldt <Andreb at paym8.co.za>
> wrote:
>
>>  Hi Guys
>>
>>
>>
>> I’m down to having this error.  I know it’s due to a permission either on
>> a folder or config file.
>>
>>
>>
>> You don't have permission to access /xymon/xymon.html on this server.
>>
>>
>>
>> Am I correct in saying that Apache wants to hit the xymon web page but it
>> has not access hence the error.?
>>
>>
>>
>> *Regards*
>>
>>
>>
>> *Andre Beyleveldt*
>>
>> *System Engineer*
>>
>> *Phone:* +27 11 564 2480
>>
>> *Mobile*: +27 82 686 5828
>>
>> *Email:* andreb at paym8.co.za
>>
>> *Website*: www.paym8.co.za
>>
>> *Postal:* Private Bag X83, Halfway House 1685
>>
>>
>>
>> *From:* Steve Coile [mailto:scoile at mcclatchyinteractive.com]
>> *Sent:* 19 September 2014 02:54 AM
>> *To:* xymon at xymon.com
>> *Cc:* Andre Beyleveldt
>> *Subject:* Re: [Xymon] Xymon Setup
>>
>>
>>
>> Looks to me like (the *xymonserver.cfg* variable) *$XYMON* isn't defined
>> with an absolute path, and (the environment variable) *$PATH* does not
>> include *~xymon/server/bin*.
>>
>>
>>
>>
>> --
>>
>>
>> *Steve Coile *Senior Network and Systems Engineer, McClatchy Interactive
>> <http://www.mcclatchyinteractive.com/>
>>
>> Office: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300
>>
>>
>>
>> On Thu, Sep 18, 2014 at 8:21 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>
>> wrote:
>>
>>  That's weird.  The error message says that it's trying to load the task
>> defined in tasks.cfg section [xymon].  My tasks.cfg has no [xymon].  The
>> nearest match is [xymond].  Similarly, the command 'xymon' would have been
>> defined in a "CMD" line, and my tasks.cfg has no such line.
>>
>>
>>
>> You should check your tasks.cfg (and tasks.d directory contents) for
>> invalid entries.  A useful diagnostic is to dump the tasks like so:
>>
>>
>>
>> xymoncmd sh -c '$XYMONHOME/bin/xymonlaunch
>> --config=$XYMONHOME/etc/tasks.cfg --dump'
>>
>>
>>
>> This will show you the tasks configuration after being parsed by
>> xymonlaunch, which includes slurping in include files, stripping comments,
>> de-duplicating entries, and dropping unrecognised keywords.
>>
>>
>>
>> J
>>
>>
>>
>>
>>
>> On 19 September 2014 04:12, Andre Beyleveldt <Andreb at paym8.co.za> wrote:
>>
>>  Hi Guys
>>
>>
>>
>> I need some assistance with regards to setting up Xymon, I have seen it
>> once or twice but the actual config itself I have never done.
>>
>>
>>
>> I used the man pages etc. but I can’t get my Xymon url to show the page,
>> checked the log and I am getting the following.
>>
>>
>>
>>
>>
>> Then the error just repeats over and over.
>>
>>
>>
>> Does anyone perhaps have an example of what needs to be setup that I can
>> use to reference to mine to see what I did wrong.
>>
>>
>>
>> Kind regards,
>>
>>
>>
>>
>>
>> [image: Description: singature picture 1] <http://www.paym8.co.za/>
>>
>> *Andre Beyleveldt*
>>
>> *System Engineer*
>>
>> *Phone:* +27 11 564 2480
>>
>> *Mobile*: +27 82 686 5828
>>
>> *Email:* andreb at paym8.co.za
>>
>> *Website*: www.paym8.co.za
>>
>> *Postal:* Private Bag X83, Halfway House 1685
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> [image: Description: image003]
>> <https://sealserver.trustwave.com/cert.php?customerId=w6oj3BfC7hnnGnD5amTROytnX2IWgo&size=105x54&style=normal>
>>
>>
>>
>>
>>
>> *ATTENTION:*
>>
>> *PAYM8 continues its commitment to data security and is now in its fourth
>> straight year of successful re-certification for PCI DSS (Payment Card
>> Industry Data Security Standard) compliance.*
>>
>> PAYM8 operates in the Payment Card Industry environment. In order to
>> align with the Payment Card Industry Data Security Standard best practices,
>> we do not send or accept any unencrypted or unmasked PANs (Primary Account
>> Numbers as displayed on credit and debit cards) via end user messaging
>> technologies (such as email, instant messaging and chat). If there is a
>> business need to send unencrypted or unmasked PANs to PAYM8 please contact
>> the recipient to facilitate an appropriate mechanism.
>>
>>
>>
>> The information transmitted in this e-mail is intended only for the
>> person or entity to which it is addressed and may contain confidential
>> and/or privileged material. Should you have received this e-mail in error
>> please notify the sender and delete all copies of the e-mail. Unauthorized
>> use, disclosure or copying of any part of this e-mail, or any similar
>> action, is prohibited. No opinion expressed or implied by the sender
>> necessarily constitutes the opinion of PAYM8. This e-mail does not
>> constitute a guarantee or proof of the facts mentioned herein. No employee
>> or intermediary is authorized to conclude a binding agreement on behalf of
>> PAYM8 by e-mail without the express written confirmation by a duly
>> authorized representative of PAYM8.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>>
>>
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>>
>>
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140919/d79cc86a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 8548 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140919/d79cc86a/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 1435 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140919/d79cc86a/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 7995 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140919/d79cc86a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 12511 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140919/d79cc86a/attachment-0002.png>


More information about the Xymon mailing list