Multiple disks monitoring in one command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Justino
Posts: 3
Joined: Mon May 19, 2014 9:22 am

Multiple disks monitoring in one command

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Multiple disks monitoring in one command

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked