Incorrect command line arguments supplied


#1

i updated my nagios from 2.2 to 2.5 and my plugins to 1.4.3 and nrpe to 2.5.1 lastly but I checked everything out and all was fine with the 1.9 plugin but after I upgraded all my nrpe plugins I get this error Incorrect command line on the web portion of nagios this is linux OS, Fedora Core 4 is where nagios is installed, rest of the systems are all redhat/centos or fedora

From the server im monitoring from…
[[email protected] libexec]# ./check_nrpe -H megs20.100mwh.com -c check_load
OK - load average: 0.07, 0.18, 0.34|load1=0.070;10.000;15.000;0; load5=0.180;9.000;20.000;0; load15=0.340;8.000;18.000;0;
[[email protected] libexec]# su nagios
./check_nrpe -H megs20.100mwh.com -c check_load
OK - load average: 0.08, 0.09, 0.23|load1=0.080;10.000;15.000;0; load5=0.090;9.000;20.000;0; load15=0.230;8.000;18.000;0;

On that server
/usr/local/nagios/libexec/check_load -w 10,9,8 -c 15,20,18
OK - load average: 0.04, 0.12, 0.20|load1=0.040;10.000;15.000;0; load5=0.120;9.000;20.000;0; load15=0.200;8.000;18.000;0;

checkcommands
define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

On the server im monitoring
nrpe.conf
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 10,9,8 -c 15,20,18
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 4% -c 1% -p /dev/hda6
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 4% -c 1% -p /dev/hda5
command[check_disk3]=/usr/local/nagios/libexec/check_disk -w 4% -c 1% -p /dev/hdd1
command[check_disk4]=/usr/local/nagios/libexec/check_disk -w 4% -c 1% -p /dev/hda8
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_procs]=/usr/local/nagios/libexec/check_procs -w 410 -c 700

What seems to to be the problem?


#2

and the services.cfg definition for the check that fails is what?


#3

define service{
use generic-service
host_name megs20.100mwh.com
service_description System Load
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 4
retry_check_interval 2
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_nrpe!check_load
}

Same as it was before? Does this new version require something different? This works on 1.9 NRPE and 1.4.3 plugins


#4

googledd around havent found any answers… probably be switching back to 1.9 as it works just not 2.5.1 :frowning:


#5

I don’t see anything wrong with it. All I can say is, try using an IP instead of megs20.100mwh.com


#6

Works the same way… from the command line does it work fine, only nagios is having a problem executing it…who knows, not a programmer or anything :cry:

Reverted back to 1.9 just hope this version isn’t exploitable or anything :shock: as its the only one that works right


#7

Is this set in nrpe.cfg?
It might help, but I doubt it.
dont_blame_nrpe=0


#8

yea its set to 0, tried it on 1 to but got

CHECK_NRPE: Error receiving data from daemon

when i swaped it back to 0 it still says the same thing I had to remove nrpe from the remote host and reinstall it again.

Ill have to start all over again im getting errors in the web portion saying i dont have permissions on nagios.cmd file when I did before i just changed apache versions is all because i wanted SSL support but that isn’t going to work so I think ill just save myself the headache and revert it all back the way it was before and close the book on it