I need to check a few OSX (10.8.x) systems to verify local NFS mounts (to a remote system, not local exports). The existing script will not work, due to it needing /proc and /etc/mtab.
I've looked in the nagios exchange and only found server monitoring.
Since OSX is not my specialty, I wonder if someone here may have a shell script solution I can plug in to Nagios and make the monitoring system happy.
Thanks.
check_nfs equivalent for OSX
Re: check_nfs equivalent for OSX
There are a few scripts here - not sure if they are going to work (OSX is not my specialty either.).
http://exchange.nagios.org/directory/Pl ... System/NFS
You can run checks locally (on the remote machines), and use NRPE.
http://exchange.nagios.org/directory/Pl ... System/NFS
You can run checks locally (on the remote machines), and use NRPE.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_nfs equivalent for OSX
I did look there; the scripts are geared towards Linux-type systems. OSX does things a little differently. I know that there's fstab, but it's managed otherwise. Lots of differences.
Re: check_nfs equivalent for OSX
You can probably use:
or showmount...
https://developer.apple.com/library/mac ... unt.8.html
Once you figure out what check would work for you, you can run it via NRPE.
Code: Select all
diskutil list
https://developer.apple.com/library/mac ... unt.8.html
Once you figure out what check would work for you, you can run it via NRPE.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_nfs equivalent for OSX
The diskutil command refers only to local mounts (not NFS mounts, at least). Showmount is intended for checking remote systems -- it doesn't work properly on this OSX station as it's not exporting any NFS mounts, only importing.
Re: check_nfs equivalent for OSX
To add to Ludmil's statement - you will need to find a cli utility that can check the metric you want from the mounted filesystem. Then you could create a wrapper script to be run from nrpe.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.