ALL Mounted disk via check_snmp_storage_wizard.pl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

ALL Mounted disk via check_snmp_storage_wizard.pl

Post by biswajit.banerjee »

Dear Support ,

How can I get ALL Mounted disks checked via check_snmp_storage_wizard.pl with performance data on a Linux Box .
Want to have all disk mapped as there are lot of them and keeps on changing too .


TIA
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ALL Mounted disk via check_snmp_storage_wizard.pl

Post by scottwilkerson »

On a linux box you can set the -m flag to

Code: Select all

-m "^/*$"
However, you mention that there are a lot of them that keep changing. The above will work, however if the mount points change this will make performance graphs stop working.

This is because the storage mechanism (RRD files) has a set quantity of data sources from the creation of the RRD file (when nagios first processes performance data) and if this changes, the graphs will stop updating.

for this reason, if you choose to setup a check of this type, I would recommend not even using the -f flag which add the performance data as it will not process correctly.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: ALL Mounted disk via check_snmp_storage_wizard.pl

Post by biswajit.banerjee »

Thanks for the input .
Do you Suggest any other way to map all disk with Performance data not getting affected .

Do you think check_disk Plugin call with check_ssh or nrpe will have desired results .

TIA
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: ALL Mounted disk via check_snmp_storage_wizard.pl

Post by biswajit.banerjee »

The suggested Parameter of

Code: Select all

-m "^/*$"
'
gives only / partition in my case

Code: Select all

# ./check_snmp_storage_wizard.pl -H xxxxxxx -l xxxxx -x xxxxx  -m "^/*$" -w 90 -c 95 -f
/: 47%used(6483MB/13887MB) (<90%) : OK | '/'=6483MB;12498;13193;0;13887
But I have Many mounted partitions . Am I doing something wrong ?

Please Guide
biswajit.banerjee
Posts: 152
Joined: Fri Dec 08, 2017 10:24 pm

Re: ALL Mounted disk via check_snmp_storage_wizard.pl

Post by biswajit.banerjee »

Now I have sorted the issue out with
./check_snmp_storage_wizard.pl -H xxxxxxx -l xxxxx -x xxxxx -m zzzz -e -q "FixedDisk|NetworkDisk" -w 90 -c 95 -f

Thanks
You can Close the Ticket
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ALL Mounted disk via check_snmp_storage_wizard.pl

Post by scottwilkerson »

biswajit.banerjee wrote:Now I have sorted the issue out with
./check_snmp_storage_wizard.pl -H xxxxxxx -l xxxxx -x xxxxx -m zzzz -e -q "FixedDisk|NetworkDisk" -w 90 -c 95 -f

Thanks
You can Close the Ticket
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked