Table of Contents
osagent.conf.xmlosagent.conf.xmlosagent, the OpenSMART agent, has to know which checks to run and where to send the output. osagent looks in
the file you named in the "-f" option when calling osagent,
<directory with
osagent>/../etc/osagent.<FQDN-hostname>.conf.xml
,
<directory with
osagent>/../etc/osagent.<host name without domain name>.conf.xml,
and finally in <directory with osagent>/../etc/osagent.conf.xml.
osagent takes the first found file (in the given order) as configuration file.
osagent.conf.xml is a normal XML
file. You can edit it with every simple editor, like
vi, emacs,
notepad or wordpad.
Sometimes it is difficult to write correct XML and to close
all opened tags. It is a good idea to validate
osagent.conf.xml after every change with a XML
validator like xmllint:
cd ~osmart/etc
xmllint -noout -valid osagent.conf.xml