Page 1 of 1

Multiple disks monitoring in one command

Posted: Fri Sep 26, 2014 1:59 am
by Justino
Hi Everyone,

I've been using Nagios for a while now, but i'm rebuilding our set-up so we can monitor everything on SNMP level.
I only have one small problem with a command.

I'm trying to get multiple disks in 1 command, but I can't get it right :s

original: $USER1$/manubulon/check_snmp_storage.pl -H ***.***.***.*** -C public -m /vmfs/volumes/****** -w 1 -c 2
i tried applying -m twice, but it only takes the last -m command on the line.


I hope someone can help me out.

Thanks in advance.

Re: Multiple disks monitoring in one command

Posted: Fri Sep 26, 2014 12:50 pm
by Box293
check_snmp_storage.pl --help

Specifically:

Code: Select all

  example :
  Browse storage list : <script> -C <community> -H <host> -m <anything> -w 1 -c 2 -v
  the -m option allows regexp in perl format :
  Test drive C,F,G,H,I on Windows       : -m ^[CFGHI]:
  Test all mounts containing /var       : -m /var
  Test all mounts under /var            : -m ^/var
  Test only /var                        : -m /var -r
  Test all swap spaces                  : -m ^Swap
  Test all but swap spaces              : -m ^Swap -e

Test all mounts under /var : -m ^/var