Phase one, Check IOStat for Nagios.

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)
*/

Thanks, Rgrds,

Advertisements

2 thoughts on “Phase one, Check IOStat for Nagios.

  1. the script has a lot of &quot… stuff in it. I don’t know perl, did something go wrong?

    When I replace the " with ” I can run this, but the output is not good:

    [martin@186395-NOC01 ~]$ ./iostat-plugin.pl
    Name “main::CT” used only once: possible typo at ./iostat-plugin.pl line 59.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 61.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 62.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 63.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 64.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 65.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 66.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 67.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 68.
    Number of devices : 0; sda total wait: sda total util: sdb total wait: sdb total util: sdc total wait: sdc total util: sdd total wait: sdd total util: [martin@186395-NOC\
    01 ~]$
    [martin@186395-NOC01 ~]$ ./iostat-plugin.pl
    Name “main::CT” used only once: possible typo at ./iostat-plugin.pl line 59.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 61.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 62.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 63.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 64.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 65.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 66.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 67.
    Use of uninitialized value in concatenation (.) or string at ./iostat-plugin.pl line 68.
    Number of devices : 0; sda total wait: sda total util: sdb total wait: sdb total util: sdc total wait: sdc total util: sdd total wait: sdd total util: [martin@186395-NOC\
    01 ~]$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s