script output : OK; /: total 77.1GB, used 1.5GB (2.0%), free 75.6GB (98.0%) | 'used space'=1637978112B;82792865792;82792865792;0;82792865792 'used space (pct.)'=2.0%;100;100;0;100
We see there is a white space in the metric 'used space' and 'used space (pct.)'. This causes an exception while parsing the nagios data thus resulting in plugin not getting added.
Any value which occurs to the right of '|' is treated as performance data of the nagios script.
If the script provide more than one performance metric it is separated by white space. so white space should not be used any where in the performance data other than the separator.
In the above command since the metric key itself has a white space it results in the error. Generally nagios scripts does not use white space in the metric name. This script seems to be an exception.
Have made some changes in the script to provide a proper naming convention.
Now the output looks like
script output : OK; /: total 77.1GB, used 1.5GB (2.0%), free 75.6GB (98.0%) | used_space=1637978112B;82792865792;82792865792;0;82792865792 used_space_percentage=2.0%;100;100;0;100
Steps to be followed :
Kindly download the attachment and place the script in the server.
remove the file /opt/site24x7/monagent/temp/ignored_plugins.txt
Wait for next polling ( maximum of five minutes ) and see whether the plugin is working.
We request you to update the status after performing the above steps.