Activity log for bug #1380671

Date Who What changed Old value New value Message
2014-10-13 15:12:56 Joao Matos bug added bug
2014-10-13 15:13:29 Joao Matos description the init file configuration is wrong /etc/init.d/hobbit-client: [ -z "$MACHINEDOTS" ] && MACHINEDOTS="`hostname -f`" this is searching for a variable not set and then sets the machine name using hostname -f should be: MACHINEDOTS The hostname of the local system. Default: Taken from "uname -n". https://www.xymon.com/xymon/help/manpages/man5/xymonclient.cfg.5.html the reason is that uname -n takes only the name part of hostname and hostname -f takes the fqdn I've also noticed that every time the init script gets executed it doesn't kill all the processes, there is "trash" left behind hobbit 19162 0.0 0.0 4400 612 ? S 15:53 0:00 sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hostname-19132 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.ISSV-hostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19164 0.0 0.0 6508 516 ? S 15:53 0:00 \_ vmstat 300 2 hobbit 19233 0.0 0.0 4400 616 ? S 15:53 0:00 sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hhostname 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.hhostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19235 0.0 0.0 6508 516 ? S 15:53 0:00 \_ vmstat 300 2 hobbit 19831 0.0 0.0 8608 680 ? Ss 15:54 0:00 /usr/lib/hobbit/client/bin/hobbitlaunch --config=/etc/hobbit/clientlaunch.cfg --log=/var/log/hobbit/clientlaunch.log --pidfile=/var/run/hobbit/clientlaunch.pid hobbit 19832 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/hobbit/client/bin/hobbitclient.sh hobbit 19842 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/hobbit/client/bin/hobbitclient-linux.sh hobbit 19871 0.0 0.0 4400 616 ? S 15:54 0:00 \_ sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hosntame 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.hhostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19873 0.0 0.0 6508 512 ? S 15:54 0:00 | \_ vmstat 300 2 hobbit 19872 0.0 0.0 4308 356 ? S 15:54 0:00 \_ sleep 5 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS" installed xymon-client 4.3.0~beta2.dfsg-9.1ubuntu0.1 Hi guys the init file configuration is wrong /etc/init.d/hobbit-client: [ -z "$MACHINEDOTS" ] && MACHINEDOTS="`hostname -f`" this is searching for a variable not set and then sets the machine name using hostname -f should be: MACHINEDOTS The hostname of the local system. Default: Taken from "uname -n". https://www.xymon.com/xymon/help/manpages/man5/xymonclient.cfg.5.html the reason is that uname -n takes only the name part of hostname and hostname -f takes the fqdn I've also noticed that every time the init script gets executed it doesn't kill all the processes, there is "trash" left behind hobbit 19162 0.0 0.0 4400 612 ? S 15:53 0:00 sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hostname-19132 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.ISSV-hostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19164 0.0 0.0 6508 516 ? S 15:53 0:00 \_ vmstat 300 2 hobbit 19233 0.0 0.0 4400 616 ? S 15:53 0:00 sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hhostname 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.hhostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19235 0.0 0.0 6508 516 ? S 15:53 0:00 \_ vmstat 300 2 hobbit 19831 0.0 0.0 8608 680 ? Ss 15:54 0:00 /usr/lib/hobbit/client/bin/hobbitlaunch --config=/etc/hobbit/clientlaunch.cfg --log=/var/log/hobbit/clientlaunch.log --pidfile=/var/run/hobbit/clientlaunch.pid hobbit 19832 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/hobbit/client/bin/hobbitclient.sh hobbit 19842 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/hobbit/client/bin/hobbitclient-linux.sh hobbit 19871 0.0 0.0 4400 616 ? S 15:54 0:00 \_ sh -c vmstat 300 2 1>/var/lib/hobbit/tmp/hobbit_vmstat.hosntame 2>&1; mv /var/lib/hobbit/tmp/hobbit_vmstat.hhostname /var/lib/hobbit/tmp/hobbit_vmstat.hostname hobbit 19873 0.0 0.0 6508 512 ? S 15:54 0:00 | \_ vmstat 300 2 hobbit 19872 0.0 0.0 4308 356 ? S 15:54 0:00 \_ sleep 5 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS" installed xymon-client 4.3.0~beta2.dfsg-9.1ubuntu0.1 Kind regards, Joao