How to launch Xymon client on Ubuntu 12.04
list Larry A. Rosen
There is no documentation regarding starting/configuring the client. Does the client run continuously (like a daemon) or is it run on-demand from the server? How do I start the client as I currently show no xymon processes in ps after installation? I tried running /usr/lib/xymon/client/bin/xymonclient-linux.sh, but it doesn't do anything but send a bunch of output to std out. I notice there are no init.d startup scripts either. The only info I'm getting from a monitored host is: conn, info, and trends, no cpu or disk, etc. How do I enable the other services? The config help page states: "With the Xymon client running and reporting data into Xymon, you should see the cpu-, disk-, memory- and procs-columns appear" and does not mention what config files need to be edited to set host thresholds (/etc/localclient.cfg???) Larry Rosen, Linux Administrator Digonex Technologies, Inc. XXX West Market St. - Suite XXX, Indianapolis, IN, 46204, U.S.A. Telephone: XXX.XXX.XXXX X206 | Mobile: XXX.XXX.XXXX | Fax: XXX.XXX.XXXX
list Wilfrid Beauchaine
README.CLIENT:
Running it
==========
To start the client, su to the "xymon" user, then run
$HOME/client/runclient.sh start
You should arrange for your boot-time scripts to run this
command at startup.
▸
...
Le 2012-09-05 21:49, Larry A. Rosen a écrit :There is no documentation regarding starting/configuring the client. Does the client run continuously (like a daemon) or is it run on-demand from the server? How do I start the client as I currently show no xymon processes in ps after installation? I tried running /usr/lib/xymon/client/bin/xymonclient-linux.sh, but it doesn't do anything but send a bunch of output to std out. I notice there are no init.d startup scripts either. The only info I'm getting from a monitored host is: conn, info, and trends, no cpu or disk, etc. How do I enable the other services? The config help page states: "With the Xymon client running and reporting data into Xymon, you should see the cpu-, disk-, memory- and procs-columns appear" and does not mention what config files need to be edited to set host thresholds (/etc/localclient.cfg???) Larry Rosen, Linux Administrator Digonex Technologies, Inc. XXX West Market St. - Suite XXX, Indianapolis, IN, 46204, U.S.A. Telephone: XXX.XXX.XXXX X206 | Mobile: XXX.XXX.XXXX | Fax: XXX.XXX.XXXX
list Benjamin P. August
Re: lack of init scripts: I think 12.04 is systemd-based now and not sysvinit or upstart based. You can look for a compatibility package in the Ubuntu repos (RHEL and OpenSUSE both have some form of compatibility for old-style init scripts along with systemd), or look into writing your own service file to have systemd start Xymon on boot: https://wiki.archlinux.org/index.php/Systemd#Writing_custom_.service_files Re: Not being able to start it from a shell: Is anything showing up in the console? What are you getting on stdout?
▸
----- Original Message -----
From: "Larry A. Rosen" <user-3b1a71d25d97@xymon.invalid>
To: xymon at xymon.com
Sent: Wednesday, September 5, 2012 12:49:46 PM
Subject: [Xymon] How to launch Xymon client on Ubuntu 12.04
There is no documentation regarding starting/configuring the client. Does the client run continuously (like a daemon) or is it run on-demand from the server? How do I start the client as I currently show no xymon processes in ps after installation? I tried running /usr/lib/xymon/client/bin/xymonclient-linux.sh, but it doesn't do anything but send a bunch of output to std out.
I notice there are no init.d startup scripts either.
The only info I'm getting from a monitored host is: conn, info, and trends, no cpu or disk, etc. How do I enable the other services?
The config help page states: "With the Xymon client running and reporting data into Xymon, you should see the cpu-, disk-, memory- and procs-columns appear" and does not mention what config files need to be edited to set host thresholds (/etc/localclient.cfg???)
Larry Rosen, Linux Administrator
Digonex Technologies, Inc.
XXX West Market St. - Suite XXX, Indianapolis, IN, 46204, U.S.A.
Telephone: XXX.XXX.XXXX X206 | Mobile: XXX.XXX.XXXX | Fax: XXX.XXX.XXXX
list Larry A. Rosen
The xymon package for Debian must be seriously hosed, there is no runclient.sh script and no README.Client files. I will try the one from the 12.04 repository. Below is listed all that was installed with xymon-client package on 12.04: I installed xymon-client_4.3.10_i386.deb from sourceforge: dpkg -i xymon-client_4.3.10_i386.deb ... ... root at indy-dt-l-01:/var/run/xymon# dpkg -l xymon-client Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-================-================-================================================ ii xymon-client 4.3.10 client for the Xymon network monitor root at indy-dt-l-01:/var/run/xymon# dpkg -L xymon-client /. /usr /usr/bin /usr/share /usr/share/xymon /usr/share/xymon/init-common.sh /usr/share/xymon/xymon-client.default /usr/share/doc /usr/share/doc/xymon-client /usr/share/doc/xymon-client/changelog.Debian.gz /usr/share/doc/xymon-client/changelog.gz /usr/share/doc/xymon-client/copyright /usr/share/man /usr/share/man/man7 /usr/share/man/man7/xymon.7.gz /usr/share/man/man8 /usr/share/man/man8/msgcache.8.gz /usr/share/man/man8/xymonlaunch.8.gz /usr/share/man/man1 /usr/share/man/man1/logfetch.1.gz /usr/share/man/man1/xymoncfg.1.gz /usr/share/man/man1/xymon.1.gz /usr/share/man/man1/clientupdate.1.gz /usr/share/man/man1/orcaxymon.1.gz /usr/share/man/man1/xymoncmd.1.gz /usr/share/man/man1/xymondigest.1.gz /usr/share/man/man1/xymongrep.1.gz /usr/share/man/man5 /usr/share/man/man5/xymonclient.cfg.5.gz /usr/share/man/man5/clientlaunch.cfg.5.gz /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/xymon-client /usr/lib /usr/lib/xymon /usr/lib/xymon/client /usr/lib/xymon/client/bin /usr/lib/xymon/client/bin/xymonclient.sh /usr/lib/xymon/client/bin/xymonclient-sco_sv.sh /usr/lib/xymon/client/bin/xymoncfg /usr/lib/xymon/client/bin/xymonclient-irix.sh /usr/lib/xymon/client/bin/clientupdate /usr/lib/xymon/client/bin/xymongrep /usr/lib/xymon/client/bin/orcaxymon /usr/lib/xymon/client/bin/xymonclient-osf1.sh /usr/lib/xymon/client/bin/xymonclient-hp-ux.sh /usr/lib/xymon/client/bin/xymon /usr/lib/xymon/client/bin/xymonlaunch /usr/lib/xymon/client/bin/xymonclient-linux.sh /usr/lib/xymon/client/bin/logfetch /usr/lib/xymon/client/bin/xymonclient-netbsd.sh /usr/lib/xymon/client/bin/xymonclient-openbsd.sh /usr/lib/xymon/client/bin/msgcache /usr/lib/xymon/client/bin/xymonclient-darwin.sh /usr/lib/xymon/client/bin/xymonclient-unixware.sh /usr/lib/xymon/client/bin/xymonclient-freebsd.sh /usr/lib/xymon/client/bin/xymondigest /usr/lib/xymon/client/bin/xymoncmd /usr/lib/xymon/client/bin/xymonclient-sunos.sh /usr/lib/xymon/client/bin/xymonclient-aix.sh /usr/lib/xymon/client/local /usr/lib/xymon/client/local/README /usr/lib/xymon/client/ext /etc /etc/default /etc/xymon /etc/xymon/localclient.cfg /etc/xymon/clientlaunch.cfg /etc/xymon/clientlaunch.d /etc/xymon/xymonclient.cfg /etc/xymon/xymonclient.d /var /var/log /var/log/xymon /var/lib /var/lib/xymon /var/lib/xymon/tmp /usr/bin/xymon /usr/bin/xymoncmd /usr/lib/xymon/client/tmp /usr/lib/xymon/client/logs /usr/lib/xymon/client/etc
▸
README.CLIENT:
Running it
==========
To start the client, su to the "xymon" user, then run
$HOME/client/runclient.sh start
You should arrange for your boot-time scripts to run this
command at startup.
wbeauchaine user-ee69b0db7015@xymon.invalid
Wed Sep 5 22:19:59 CEST 2012
▸
README.CLIENT: Running it ========== To start the client, su to the "xymon" user, then run $HOME/client/runclient.sh start You should arrange for your boot-time scripts to run this command at startup. From: Benjamin P. August [user-e992dd5eb2a5@xymon.invalid] Sent: Wednesday, September 05, 2012 4:20 PM To: Larry A. Rosen Cc: xymon at xymon.com Subject: Re: [Xymon] How to launch Xymon client on Ubuntu 12.04 Re: lack of init scripts: I think 12.04 is systemd-based now and not sysvinit or upstart based. You can look for a compatibility package in the Ubuntu repos (RHEL and OpenSUSE both have some form of compatibility for old-style init scripts along with systemd), or look into writing your own service file to have systemd start Xymon on boot: https://wiki.archlinux.org/index.php/Systemd#Writing_custom_.service_files Re: Not being able to start it from a shell: Is anything showing up in the console? What are you getting on stdout? ----- Original Message ----- From: "Larry A. Rosen" <user-3b1a71d25d97@xymon.invalid> To: xymon at xymon.com Sent: Wednesday, September 5, 2012 12:49:46 PM Subject: [Xymon] How to launch Xymon client on Ubuntu 12.04 There is no documentation regarding starting/configuring the client. Does the client run continuously (like a daemon) or is it run on-demand from the server? How do I start the client as I currently show no xymon processes in ps after installation? I tried running /usr/lib/xymon/client/bin/xymonclient-linux.sh, but it doesn't do anything but send a bunch of output to std out. I notice there are no init.d startup scripts either. The only info I'm getting from a monitored host is: conn, info, and trends, no cpu or disk, etc. How do I enable the other services? The config help page states: "With the Xymon client running and reporting data into Xymon, you should see the cpu-, disk-, memory- and procs-columns appear" and does not mention what config files need to be edited to set host thresholds (/etc/localclient.cfg???) Larry Rosen, Linux Administrator Digonex Technologies, Inc. XXX West Market St. - Suite XXX, Indianapolis, IN, 46204, U.S.A. Telephone: XXX.XXX.XXXX X206 | Mobile: XXX.XXX.XXXX | Fax: XXX.XXX.XXXX
list Henrik Størner
▸
On 06-09-2012 00:30, Larry A. Rosen wrote:
The xymon package for Debian must be seriously hosed, there is no runclient.sh script and no README.Client files. I will try the one from the 12.04 repository.
[...]
I installed xymon-client_4.3.10_i386.deb from sourceforge:
Seems to be a packaging error in the client-package - it doesn't include the /etc/init.d/xymon-client script. The real quick-and-dirty solution (until I figure out the Debian packaging bug) is to fetch the debian/xymon-client.init script from http://xymon.svn.sourceforge.net/viewvc/xymon/branches/4.3.10/debian/xymon-client.init?revision=7121 Copy it to /etc/init.d/xymon-client, then run chmod 755 /etc/init.d/xymon-client update-rc.d xymon-client 98 02 Regards, Henrik
list Larry A. Rosen
Thanks for the info, I'm glad I am not nuts for not finding those files. I installed the xymon-client package through Ubuntu's repo via apt-get and I have it working now. It is confusing since it uses the old hobbit naming for files. I typically like to get software like this from the author's source (i.e. sourceforge) rather than the distro maintainer since they (Canonical) usually change a lot of things that conflict with the original documentation and file structure.
▸
Thu Sep 6 07:44:01 CEST 2012 Henrik Størner wrote:Seems to be a packaging error in the client-package - it doesn't include the /etc/init.d/xymon-client script. The real quick-and-dirty solution (until I figure out the Debian packaging bug) is to fetch the debian/xymon-client.init script from http://xymon.svn.sourceforge.net/viewvc/xymon/branches/4.3.10/debian/xymon-client.init?revision=7121 Copy it to /etc/init.d/xymon-client, then run chmod 755 /etc/init.d/xymon-client update-rc.d xymon-client 98 02 Regards, Henrik
Thanks, Larry
list Kraig Amador
The problem is in the dh_install calls in the rules. I was able to fix this by applying this patch:
diff --unified xymon-4.3.10/debian/changelog xymon-4.3.10-sz/debian/changelog
--- xymon-4.3.10/debian/changelog 2012-08-04 05:13:20.000000000 -0700
+++ xymon-4.3.10-sz/debian/changelog 2012-10-10 18:42:25.662517487 -0700
@@ -1,3 +1,9 @@
+xymon (4.3.10-sz) unstable; urgency=low
• + * Fixed Debian/Ubuntu build to put init and logrotate scripts in the right packages.
• + -- Kraig Amador <user-94a3294e96d3@xymon.invalid> Wed, 10 Oct 2012 18:42:00 -0800
• xymon (4.3.10) unstable; urgency=low
* rev 7164
diff --unified xymon-4.3.10/debian/rules xymon-4.3.10-sz/debian/rules
--- xymon-4.3.10/debian/rules 2011-03-08 09:20:28.000000000 -0800
+++ xymon-4.3.10-sz/debian/rules 2012-10-10 18:50:14.663024230 -0700
@@ -137,9 +137,9 @@
rmdir $S/usr/share/man/man7
dh_installdebconf -a
# use the old file names for now
- dh_installlogrotate --name=xymon-client -a
- dh_installinit --name=xymon -p'xymon' -- defaults 98 02
- dh_installinit --name=xymon-client -p'xymon-client' -- defaults 98 02
+ dh_installdebconf -a
+ dh_installlogrotate -a
+ dh_installinit -a -- defaults 98 02
dh_installman -a
dh_link -a
dh_strip -a
--
Kraig Amador