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

Andreas Ericsson ae at op5.se
Tue May 24 00:19:03 CEST 2005

Rainer Traut wrote:
> Hi,
> thanks for your answer.

You're welcome. :)

> Andreas Ericsson wrote:
>> Rainer Traut wrote:
>>> 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 -w 2,10% -c 5,20%
>>> /bin/ping -n -U -w 10 -c 5
>>> 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). 
> Almost, it's Redhat Enterprise 4.

Same enough. ;)

>> Try check_icmp. It's at http://oss.op5.se/nagios
>> Just download, type make and copy the plugin to your libexec directory.
> Thanks for the hint, I'm using the 1.3 version of check_ping, which also 
> works.
> But it's a little sad, the most import plugin does not work.

Indeed. Don't be so surprised though. The code in the plugins is nothing 
short of horrible, and patches to clean it up doesn't appear to be welcome.

If I were you I'd give check_icmp a try. It's much cleaner and much, 
much faster, especially for host checks if you make a symbolic link from 
check_host to check_icmp and put check_host in your host-check-command 
definition in checkcommands.cfg.

>>> 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.
> Hmm, no.

Sorry. My bad. Looks like this is a real bug (it must have been newly 
introduced, because I can't remember seeing it in my CVS).

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

More information about the Help mailing list