Coder Social home page Coder Social logo

docker-xymon's People

Contributors

deweysasser avatar mwl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-xymon's Issues

Upgraded to ubuntu 20.04 successfully

Only added tzdata and switch to ubuntu:20.04, all is working fine.
Dockerfile:

FROM ubuntu:20.04
MAINTAINER Dewey Sasser <[email protected]>

ENV DEBIAN_FRONTEND=noninteractive TZ=posixrules
ADD AutomaticCleanup /etc/apt/apt.conf.d/99AutomaticCleanup

# Install what we need from Ubuntu
RUN apt-get update

# tcpdump is for debugging client issues, others are required
RUN apt-get install -y curl xymon apache2 tcpdump ssmtp mailutils rrdtool tzdata

# Get the 'dumb init' package for proper 'init' behavior
RUN curl -L https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64.deb > dumb-init.deb && \
    dpkg -i dumb-init.deb && \
    rm dumb-init.deb

ADD add-files /

# Enable necessary apache components
# make sure the "localhost" is correctly identified
# and ensure the ghost list can be updated
# Then, save the configuration so when this container starts with a
# blank volume, we can initialize it

RUN a2enmod rewrite authz_groupfile cgi; \
     perl -i -p -e "s/^127.0.0.1.*/127.0.0.1    xymon-docker # bbd http:\/\/localhost\//" /etc/xymon/hosts.cfg; \
     chown xymon:xymon /etc/xymon/ghostlist.cfg /var/lib/xymon/www ; \
     tar -C /etc/xymon -czf /root/xymon-config.tgz . ; \
     tar -C /var/lib/xymon -czf /root/xymon-data.tgz .



VOLUME /etc/xymon /var/lib/xymon
EXPOSE 80 1984

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/etc/init.d/container-start"]

Custom Script Not Running Automatically - Works Manually

I have setup ZFS monitoring and I am able to run the check manually on the CLI but somehow the "clientlaunch" config doesn't seem to be picking it up correctly. I know this all worked correctly when I had server/client installed locally via APT. Any ideas?

https://www.freesoftwareservers.com/display/FREES/ZFS+Monitor+for+XYMon

Eg: This works correctly, but then status goes purple.

/usr/lib/xymon/client/bin/xymoncmd /usr/lib/xymon/client/ext/zfs.ksh

ClientLaunch:

cat << 'EOL' >/etc/xymon/clientlaunch.d/zfs.cfg
[zfs]
 ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
 CMD $XYMONCLIENTHOME/ext/zfs.ksh
 LOGFILE $XYMONCLIENTHOME/logs/zfs.log
 INTERVAL 5m
EOL

Get error 503 when show probe status (Only when container restart)

I get a 503 error when i click on a probe to show status.
Not append everytime, mostly when then container restart.
Here is the Apache logs:
[cgid:error] [pid 25:tid 140375637358336] (2)No such file or directory: [client 172.19.0.1:41104] AH02833: ScriptSock /var/run/apache2/cgisock.22 does not exist: /usr/lib/xymon/cgi-bin/svcstatus.sh

Some proposed enhancements

docker-xymon.txt

Proposed changes summarized below:

Install a few additional packages:

  • tzdata: timezone changes don't work right without it
  • vim-tiny: For in-container file edits. Non-preferred but sometimes handy.
  • ntpdate: needed for ntp check
  • rpcbind: Needed for rpc test to work
  • fping: For when xymonping just doesn't cut it
  • dumb-init: Sufficient version available from ubuntu. Is it still necessary to install it out-of-band?

Enabled two additional apache modules and added apache check in default config: info status

Added healthcheck using "xymon localhost ping"

I hope I'm not being presumptuous in suggesting these. The changes have been helpful for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.