Oke here is the first working version of check_iostat.pl
NEW Version available HERE
Why this version?
Well to my big surprise I was not able to find any satisfying check plugin for diskio that didnt need all kinds of additional software or undocumented perl plugins. What i really wanted was a simple check plugin that would only require the default sysstat daemon allready present on allot of our systems (Oracle DB requirement).
Because no one seemed to have written such a plug-in I decided to write one myself. And here is the result.
How to get started?
Copy paste the source into a check_iostat.pl file within nagios/libexec.
The following needs to be on your Linux machine.
sysstat must be installed!
iostat must be available!
perl (base) should be installed!
What can you do?
1. Let us know on what distro you have tested this code! And or what changes you made to make it work.
2. Tell me if you spotted any improvements in the code.
3. Tell me if there are any bugs.
Questions? Different requirements? Improvements? Code cleanup?
Please let me know…
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
SUSE LINUX Enterprise Server 9 (i586)
the code is still a bit messy but functional. Keep an eye out here for updates. I will be cleaning up this code further.
Read the rest of this entry
Full Working version can be found here
/* CHECK OUT THE LINK AT THE TOP OF THIS POST 😉 */ /* OR CHECK THE SOURCE DIRECTLY HERE ; http://technology.amis.nl/download/iostat/ THIS SCRIPT REQUIRES THE SYSSTAT PACKAGE (IOSTAT) */
Just Wrote :
An application to start / stop multiple custom scripts during INIT in a specific order without the need to understand the full INIT.d process. Written by AMIS to enable DBAs to create basic tiny startup / stop scripts and run them using the chkconfig / services commands. through a very basic config file.
Application should create a basic abstraction between the init.d process and the to be executed configurable scripts. main goal is to prevent poor scripting from killing the init.d proces, and follow the system guidlines concerning init scripting as much as possible.
Please tell us what you think or what could be improved. naturally even we dont know it all. Suggestions, Bugs, Hints, Tips, Arguments, Alternatives? Please let us know 🙂
Rename the “AMIS.zip.doc” file back to “AMIS.zip” to access its content. We have tested this script on the following systems.
RHEL 5.3 Perl v5.8.8
RHEL 5.2 Perl v5.8.8
RHEL 5.1 perl v5.8.8
SLES 9.0 perl v5.8.8
Need to compile the “Config::IniFiles” even though its shipped with the app as module? use > cpan -i Config::IniFiles.
Installing Config::IniFiles, this is a requirement for using some of the Centreon included plugins. Well the “howto” on installing this is rather illusive. Well here is a “copy” paste manual for installing the perl ConfigIniFiles.
This manual assumes you have wget installed, else download the files manually using other means like windows and copying files using a scp client (putty?)
If you have wget, you should be able to copy paste the section below and end up with Config::IniFiles installed…
echo "Create an Installation directory for the module packages"
echo “Go there”
echo “Get the Modules needed to install the Config::IniFiles”
echo “Unpack both the packages”
tar -xf C*.tar.gz
tar -xf M*.tar.gz
echo “Build the buildscript”
echo “Install the build module”
echo “Build the IniFiles Buildscript”
echo “Cleanup our mess”
rm -rf ./installers/
This should be it…
Hope this helps, rgrds…