machinedots is wrong and not all processes killed on stop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xymon (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi guys
the init file configuration is wrong
/etc/init.
[ -z "$MACHINEDOTS" ] && MACHINEDOTS=
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:/
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/
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/
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 19832 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/
hobbit 19842 0.0 0.0 4400 696 ? S 15:54 0:00 \_ /bin/sh /usr/lib/
hobbit 19871 0.0 0.0 4400 616 ? S 15:54 0:00 \_ sh -c vmstat 300 2 1>/var/
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_
DISTRIB_
DISTRIB_
installed xymon-client 4.3.0~beta2.
Kind regards,
Joao
description: | updated |
Please file separate bug reports for separate issues. This bug report contains two completely independent issues.