The usual plugins are all about known stats of a system but we are seeing really odd results on some of our vmware instances with hdparm -t.
Anyone know of a test actually does a write/read on a disk or nfs mount in nagios?
|
The usual plugins are all about known stats of a system but we are seeing really odd results on some of our vmware instances with hdparm -t. Anyone know of a test actually does a write/read on a disk or nfs mount in nagios? |
|||
|
|
Haven't tested this, but if all you want to do is write then read a file try a little shell script like
That script could be improved greatly, and probably has some errors, but it writes to a file then reads it back, if ether of those fail it will return critical. You could probably do with modifying that so it uses an argv for the file path and it might throw some unwanted errors to the console but it's a start |
|||
|
|
|
It's trivial to write your own tests. Write a script that does what you want to test and evaluate the possible outcomes. In your case you could try a
You can add extra info in the string after the status. Ex:
Add the script in your check_nrpe-config (or whatever you are using to run remote scripts) and you are good to go. |
|||
|
|
|
I'd choose another approach (if you're using ESX)
perl Makefile.PL
make
make test
make install
Create this new command:
Now add a new service, f.e.:
Then use this check on a host:
Maybe that's not exactly what you wanted, but I thought I'd share it. |
|||
|
|
|
Monitoring disk performance can be a lot trickier than just writing a file and seeing how long it takes. Same thing with reading. How do you know what's going on during the writes/reads? There could be spikes in the cpu load, network traffic issues (especially if nfs), in short all kinds of things. At the very least run collectl in one window while write the file in another. Here's a quick example of what it shows after installing the RPM and simply running the command 'collectl':
lots more switches and options. it even can show nfs stats on the same line if you're interested. |
||||
|
|