Re: Monitoring MAC OS
Posted: Wed Mar 02, 2016 12:21 pm
This issue has now been fixed. I'm not sure when it will be included with a release, however.
In the meantime, you could run the following command to patch your check_osx_mem.sh
Of course, that is assuming that your script is in the /usr/local/nagios/libexec directory (which it should be unless you moved it). This will create a backup of the original file (/usr/local/nagios/libexec/check_osx_mem.sh.bak). There should be no more input necessary - Nagios will just start polling the proper data.
In the meantime, you could run the following command to patch your check_osx_mem.sh
Code: Select all
sed -i.bak 's/print $8/print $2/;s/print $10/print $6/' /usr/local/nagios/libexec/check_osx_mem.sh