I've created a perl script that outputs the results with a newline, which works fine in Nagios:
Code: Select all
OK - S:\\ Total=50.00GB, Used=5.45GB (10.9%), Free=44.55GB (89.1%)
OK - E:\\ Total=300.00GB, Used=183.35GB (61.1%), Free=116.64GB (38.9%)
CRITICAL - [Triggered by _Free%<10] - D:\\ Total=600.00GB, Used=541.18GB (90.2%), Free=58.82GB (9.8%)
OK - G:\\ Total=399.99GB, Used=22.56GB (5.6%), Free=377.44GB (94.4%) Code: Select all
OK - C:\ Total=40.00GB, Used=20.83GB (52.1%), Free=19.17GB (47.9%) \nOK - S:\ Total=50.00GB, Used=5.45GB (10.9%), Free=44.55GB (89.1%) \nOK - E:\ Total=300.00GB, Used=183.35GB (61.1%), Free=116.64GB (38.9%) \nCRITICAL - [Triggered by _Free%10] - D:\ Total=600.00GB, Used=541.18GB (90.2%), Free=58.82GB (9.8%) \nOK - G:\ Total=399.99GB, Used=22.56GB (5.6%), Free=377.44GB (94.4%)Thank you,
Brian