Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

nikonier

Reviews(2)
bynikonier, October 29, 2018
In CentOS 7.5, it'couldn't find some modules.
You must enable the epel repository and install:
yum install perl-Monitoring-Plugin-0.38-1.el7.1.noarch
and as written below
yum install perl-Net-SNMP perl-Nagios-Plugin.

[root@testix tmp]# perl check_msa_hw.pl -C public -H 10.154.2.1
HP P2000 G3 SAS: OK
bynikonier, July 15, 2013
Hi,
after installing the plugin I got an error:
(Service check did not exit properly)

after some "googling" I modified my entry in the commands.cfg:
command_line /usr/bin/perl $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$

everything works, but I don't like the output:
OK: hd C in use 5.19659161907092 perc and 529.744556427002 GB free w-40 c-60

so I did some more modifications. edit the plugin check_hd:
around Line 72:
$freespace=$fullsize1 - $usedsize1;
$freespace=$freespace / 1024 / 1024 / 1024;
$freespace = sprintf("%.2f", $freespace);
$percfilled=$usedsize1 * 100 / $fullsize1;
$percfilled = sprintf("%.2f", $percfilled);

ADD the commands with the sprintf command.

output now:
OK: hd C in use 5.20 perc and 529.74 GB free w-40 c-60

regards,
Juergen