[Xymon] Cannot open directory from tasks.cfg
Martin Flemming
martin.flemming at desy.de
Wed Oct 19 15:44:16 CEST 2011
Hi, Tracy !
I've use the tasks.d/ for the usual task.cfg (ex-hobbitlaunch.cfg)
with the additional directory-directive
http://www.xymon.com/xymon/help/manpages/man5/hosts.cfg.5.html
directory directoryname
This tag is used to include all files in the named directory. Files
are included in alphabetical order. If there are sub- directories, these
are recursively included also. The following files are ignored: Files that
begin with a dot, files that end with a tilde, RCS files that end with
",v", RPM package manager files ending in ".rpmsave" or ".rpmnew", DPKG
package manager files ending in ".dpkg-new" or ".dpkg-orig", and all
special files (devices, sockets, pipes etc).
This works for all (?) xymon-config-files ....
So you only needs to add yopur additional server-ext-tests in this
directory and they will be automaticly executed ....
The advance is that you haven't a big/very big task.cfg-file and it's
cleary arranged
cheers,
martin
On Wed, 19 Oct 2011, Tracy Di Marco White wrote:
>
> On Oct 18, 2011, at 8:19 PM, Jeremy Laidman <jlaidman at rebel-it.com.au> wrote:
>
>> On Wed, Oct 19, 2011 at 9:21 AM, Tracy Di Marco White
>> <gendalia at iastate.edu> wrote:
>>> I assume the error is because tasks.cfg contains this:
>>> # Include add-on modules.
>>> directory /usr/pkg/share/xymon/xymonhome/etc/tasks.d
>>>
>>> Which doesn't exist.
>>
>> This directory should be created by "make install" or by the package
>> definition (eg spec file, for RPM-based systems). I'm guessing that
>> the "tasks.cfg" file was updated with the "include" but the installer
>> for BSD was not updated accordingly.
>>
>> Actually, I think "make install" won't create this subdir either.
>
> Having pkgsrc create it is not a problem.
>
>>> Is there documentation on using / setting up tasks.d?
>>
>> "install.html" is included in the source, and should be in the
>> installed package. You should be able to view it from the menu. Or
>> here: http://xymon.org/xymon/help/install.html
>
> I don't see anything there about tasks.d. I am somewhat familiar with hobbit, having run it for a while, but I'm trying to see what has changed and how to use new things in xymon. I'm starting by replacing my network test server. I just would like to know more about what tasks.d is for and how to use it. The same is likely true for other new features I just haven't gotten to yet.
>
> Thanks,
> Tracy
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
More information about the Xymon
mailing list