Hi all,

I'm trying to achieve the following:
- Generate a Nagios config files, with a specific line for each local
filesystem (/, /boot, /home etc.)

My idea was to somehow fill an slist with all these local filesystems,
and generate a proper configuration for each list item.

I've looked at /proc/partitions, even thought of parsing the output of
a shell command like this:

   mount |egrep '(ext2|ext3|ext4)' |cut -f3 -d" "

... but somehow I feel that I am about to reinvent a wheel ;-)

Is there a proper way to achieve this with CFengine 3 Community?

Thanks,

Met vriendelijke groet / Kind regards,
  Ed Voncken.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to