[Nagiosplug-help] problems with check_load, check_ping, check_dns and check_dig on redhat el4

Andreas Ericsson ae at op5.se
Mon May 23 08:18:41 CEST 2005


Rainer Traut wrote:
> Hi,
> 
> I am using Dag Wieers rpm nagios-plugins-1.4-2.2.el4.rf on el4.
> 
> There are a couple of problems I found, besides check_ping I have not 
> found a bugreport.
> 
> check_ping:
> [root at jupiter ~]# ./check_ping -H 127.0.0.1 -w 2,10% -c 5,20%
> /bin/ping -n -U -w 10 -c 5 127.0.0.1
> CRITICAL - Could not interpret output from ping command
> 
> There seems to be a bugreport from January.
> 

This is a common problem on Fedora Core (which I assume you're using). 
Try check_icmp. It's at http://oss.op5.se/nagios
Just download, type make and copy the plugin to your libexec directory.

> 
> check_load:
> [root at jupiter ~]# /usr/lib/nagios/plugins/check_load -w 1,1,1 -c 2,2,2
> Warning threshold must be float or float triplet!
> 
> Usage: check_load -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
> [root at jupiter ~]# /usr/lib/nagios/plugins/check_load -w 1 -c 2
> OK - load average: 
> 0,02,0,01,0,00|load1=0,020000;1,000000;2,000000;0,000000load5=0,010000;1,000000;2,000000;0,000000load15=0,000000;1,000000;2,000000;0,000000 
> 
> 
> Looks like it doesn't like a triplet?
> 

This is a locale problem. The plugin accepts triplets but the separator 
MUST be . (a dot), while the localized message turns the output of the 
help message into the comma-separated list you see.
export LC_ALL=C
and rerun the plugin with --help and you'll get the real help message.

> Anybody has any idea about these problems?
> I must admit it looks like we're having DNS problems but this is not the 
> case, DNS works fine here and checked via 1.3 versions of the plugins is 
> ok.
> 

I suggest you migrate back to the 1.3 version, as it by far seems 
simpler, more robust and less bug-ridden.

In fact, 1.4 provides very little extra functionality. If you don't need 
that (localized messages is about the one thing I can think of now) you 
should use 1.3.1 instead.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list