Hi

You have two options: 1) write individual checks for each disk.
2) you the flags of the check_disk plugin :


Konsole output
-l, --local
   Only check local filesystems
-L, --stat-remote-fs
Only check local filesystems against thresholds. Yet call stat on remote filesystems
   to test if they are accessible (e.g. to detect Stale NFS Handles)
-M, --mountpoint
   Display the mountpoint instead of the partition
-m, --megabytes
   Same as '--units MB'
-A, --all
   Explicitly select all paths. This is equivalent to -R '.*'

and that can give you the answer you seek .

Assaf

On 29/08/15 21:28, Dewangga Bachrul Alam wrote:
Hello!

I got stuck for monitoring all available partition / disk on my linux
server, got clue from there
https://github.com/Icinga/icinga2/blob/master/doc/3-monitoring-basics.md, but
still got nothing.

The output on icingaweb2 should be print all on array
`disk_partitions = [ "/", "/tmp", "/var", "/home" ]` [1]

But, the output only show "/", the rest are gone.

Trying, second alternatives using `vars.disks["disk"] = {}`, got nothing
too, I got `DISK CRITICAL - /sys/kernel/config is not accessible:
Permission denied`. I've tried to disabling selinux on permissive mode,
it's not help.

My goal is want to monitor all available disk/partition on linux server,
and/or monitor the list of partition on `disk_partitions` array.

[1]
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/plugin-check-commands
-- The partition(s). Multiple partitions must be defined as array.

Any help are appreciated.
Thank you.
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to