help with nagiosplugins

Dean Bishop dbishop at ehvert.com
Mon May 12 17:15:02 CEST 2003


Good morning,

	The problem is that on the command-line you are using percent and in
the nagios command definition you are not.  If you don't specify a unit I
believe that the plugin defaults to bytes.  Try adding "%" to your command
definition.

Later,
dean

-----Original Message-----
From: Jasmine [mailto:jasmine.chua at securecirt.com] 
Sent: May 12, 2003 10:19 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] help with nagiosplugins

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi 

Just wondering is there anything wrong with my configuration? I am using 
(nagios-plugins 1.3.0-beta3) 1.7 and Nagios 1.0.

When I checked disk space manually:
# /usr/nagios/libexec/check_disk -w 30% -c 15% -p /var
DISK WARNING [1698424 kB (20%) free on
/dev/ide/host0/bus0/target0/lun0/part4]

However, when Nagios checked the disk space, it returns OK. This is from 
nagios.log after I restarted nagios:

[1052748510] SERVICE ALERT: hostname;Disk /var;OK;HARD;1;DISK OK [1698456 kB

(20%) free on /dev/ide/host0/bus0/target0/lun0/part4]

This is inside the service definition for checking disk space:

        service_description             Disk /var
        check_command                   check-disk!30!15!/var

This is the command definition: 
define command{
        command_name    check-disk
        command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
        }


I mean shouldn't nagios tell me that disk /var service is in warning state 
already? 


- -- 
Jasmine Chua

"Without change, something sleeps inside us, and seldom awakens.  The
sleeper must be awaken." -- Duke Leto Atreides
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+v607NgvTa7Hj2AURAlegAKDHh7lGMPdNxhL1G0CHbfKu5DupSQCgwzTC
Y31wKo10ZEU+WpUVbeTqwm4=
=63V4
-----END PGP SIGNATURE-----



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list