Configuring analysis.cfg
list Stephen Carville
I added the following lines to analysis.cfg: LOAD 8.0 12.0 HOST=scamanda01.lereta.com HOST=scaqmsrr01d.lereta.net PORT LOCAL=%*:5000 STATE=LISTEN TEXT="dgt balancer" As I understand the man page, the first should cause the cpu to go yellow at a load average of 8.0 and red at 12.0 but only for scamanda01.lereta.com. The second and third lines should cause xymon to report the state of port 5000 for scaqmsrr01d.lereta.net. My understanding must be wrong because neither works as I expect them to. Did I mess up the syntax? Is there something else I need to do to make this work? -- Stephen -- Stephen Carville Serf Without Portfolio XXX.XXX.XXXX x1326 user-45c5e542adfd@xymon.invalid There is no "I" in Team but there is in Integrity.
list Stephen Carville
▸
On 09/19/2017 02:42 PM, Stephen Carville wrote:
I added the following lines to analysis.cfg: LOAD 8.0 12.0 HOST=scamanda01.lereta.com HOST=scaqmsrr01d.lereta.net PORT LOCAL=%*:5000 STATE=LISTEN TEXT="dgt balancer" As I understand the man page, the first should cause the cpu to go yellow at a load average of 8.0 and red at 12.0 but only for scamanda01.lereta.com. The second and third lines should cause xymon to report the state of port 5000 for scaqmsrr01d.lereta.net. My understanding must be wrong because neither works as I expect them to. Did I mess up the syntax? Is there something else I need to do to make this work?
Answering my own question. For some reason, /var/xymon/etc/clientlaunch.cfg on almost all the machines has the line: CMD $XYMONCLIENTHOME/bin/xymonclient.sh --local I removed the --local and all works as expected now.
▸
-- Stephen
-- Stephen Carville Serf Without Portfolio XXX.XXX.XXXX x1326 user-45c5e542adfd@xymon.invalid There is no "I" in Team but there is in Integrity.
list Ralph Mitchell
That first entry should be the other way around:
HOST=scamanda01.lereta.com
LOAD 8.0 12.0
I think you need different quotes on the other entry:
HOST=scaqmsrr01d.lereta.net
PORT "LOCAL=%*:5000" STATE=LISTEN "TEXT=dgt balancer"
Ralph Mitchell
On Tue, Sep 19, 2017 at 5:42 PM, Stephen Carville <user-6ec031efcf79@xymon.invalid>
▸
wrote:
I added the following lines to analysis.cfg: LOAD 8.0 12.0 HOST=scamanda01.lereta.com HOST=scaqmsrr01d.lereta.net PORT LOCAL=%*:5000 STATE=LISTEN TEXT="dgt balancer" As I understand the man page, the first should cause the cpu to go yellow at a load average of 8.0 and red at 12.0 but only for scamanda01.lereta.com. The second and third lines should cause xymon to report the state of port 5000 for scaqmsrr01d.lereta.net. My understanding must be wrong because neither works as I expect them to. Did I mess up the syntax? Is there something else I need to do to make this work? -- Stephen -- Stephen Carville Serf Without Portfolio XXX.XXX.XXXX x1326 user-45c5e542adfd@xymon.invalid There is no "I" in Team but there is in Integrity.