Xymon Mailing List Archive search

Disable a test permanently

list Dominique Frise
Tue, 08 Mar 2011 11:46:14 +0100
Message-Id: <user-8789d738c305@xymon.invalid>

On 03/ 8/11 10:39 AM, Benoit SCHMID wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Dominique,

Thanks for the config.

Just to be sure that I understand well, the client would still send its
info, but it would be ignore by the server?
yes
As you know Solaris zones, which tests do you run/disable in non local
zones?
For non-global zones we use :

NOCOLUMNS:cpu,disk,memory
route:<global zone name>

Thanks in advance for your answer.

On 03/08/2011 10:35 AM, Dominique Frise wrote:
On 03/ 8/11 09:16 AM, Benoit SCHMID wrote:
Hello,

On a client, I would like to permanently disable tests like for example
the memory.

How can I disable the memory test on a specific xymon client?

Thanks in advance for your answer.
Have you tried NOCOLUMS?
from hosts.cfg(5) (or bb-hosts(5) if you use Hobbit):
      NOCOLUMNS:column[,column]
           Used to drop certain of the status columns generated by
           the  Xymon  client.  column is one of cpu, disk, files,
           memory, msgs, ports, procs.  This setting  stops  these
           columns  from  being updated for the host. Note: If the
           columns already exist, you must use the xymon(1)  util-
           ity to drop them, or they will go purple.
Dominique
- --
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

      Benoit Schmid              Tel: (++41-22) 379-7209

      University of Geneva - Information Technology Division

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk11+WIACgkQPzupdm8BofwAhACeP6pTMTzngqm93Goof75WvAd3
WIYAnjIT/2yskzD+O9ohmJnFyQ+NfRXR
=9tfz
-----END PGP SIGNATURE-----
Our xymonclient-sunos.sh for Solaris zones (global and non global) is 
also modified :

@@ -36,7 +36,11 @@
  echo "[mount]"
  mount
  echo "[prtconf]"
-/usr/sbin/prtconf
+if [ -x /bin/zonename ] && [ "`/bin/zonename`" != "global" ]; then
+  /usr/sbin/prtconf -p
+else
+  /usr/sbin/prtconf
+fi


Dominique