check_disk strange on solaris

Jedrzej Jajor jedrzej at man.poznan.pl
Tue Jun 13 11:41:10 CEST 2006


Hi,

you are comparing different versions of the plugin. In 1.4.3 there is
new feature to test i-node usage (--iwarning, --icritical options). I
suppose the bug is in the "-p" parameter handling. If you look into the
check_disk.c you can find four assingments around line 464. These are
w_df, c_df, w_dfp, c_dfp, but there are no assignments for w_idfp and
c_idfp, so these two structure members remain uninitialized. After adding
se->w_idfp = w_idfp;
se->c_idfp = c_idfp;
and recompiling the plugin works fine for me.
I suppose that assignments of w_idfp and c_idfp should be also added to
"-x" and "-X" parameters processing, and around line 550.

Regards,
Jedrzej

Martin Møller Pedersen wrote:
> Hi,
>   I have problems with the check_disk plugin on solaris.
> 
> -bash-3.00# /usr/local/nagios/libexec/check_disk -w 8 -c 4 -p /
> INPUT ERROR: C_IDFP
> (30921422145122913280688628035811224757608221345310986534862865070038080057393929234440030082558635962973836854288896764936583266668058930356980333691804700554233010460325310262775727685686679067115016275490894316823635502904258885990887044258247524818658732802048.000000)
> should be less than W_IDFP (0.0) and both should be between zero and
> 100 percent, inclusive for /
> check_disk: Could not parse arguments
> Usage: check_disk -w limit -c limit [-p path | -x device] [-t
> timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q]
> bash-3.00# /usr/local/nagios/libexec/check_disk --version
> check_disk (nagios-plugins 1.4.3) 1.64
> 
> 
> But on my linux-box it works:
> sirius:/home/mm/nrpe-2.5.1# /usr/lib/nagios/plugins/check_disk -w 8 -c 4 -p /
> DISK OK - free space: / 23761 MB (91%);| /=2337MB;26089;26093;0;26097
> sirius:/home/mm/nrpe-2.5.1# /usr/lib/nagios/plugins/check_disk --version
> check_disk (nagios-plugins 1.4) 1.56
> 
> Strange ?
> 
> Regards
> Martin
> 

-- 
Jedrzej Jajor

Network Services Department
Poznan Supercomputing and Networking Center
10 Noskowskiego Str., 61-704 Poznan, Poland
tel. +48 61 858 20 36 fax. +48 61 855 13 68
e-mail: jedrzej at man.poznan.pl


_______________________________________________
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