check_nrpe help with multipple argument
Assaf Flatto
assaf.flatto at ssp-intl.com
Thu Apr 2 18:13:13 CEST 2009
On Thursday 02 April 2009 17:00:22 shadih rahman wrote:
> I am trying to execute a check_nrpe with multiple argument and it is not
> working. I have the following definition in my nrpe.cfg
>
> command[check_users_x64]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
> command[check_load_x64]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c
> 30,25,20
> command[check_hda1_x64]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10%
> -p /dev/hda1
> command[check_zombie_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 5
> -c 10 -s Z
> command[check_total_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 150
> -c 200
> command[check_disk_x64]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10%
> -p $ARG1$
> command[check_disk_excluding_x64]=/usr/lib64/nagios/plugins/check_disk -w
> 15% -c 10% -p $ARG1$ -x $ARG2$
> command[check_process_x64]=/usr/lib64/nagios/plugins/check_proc -w $ARG1$
> -c $ARG2$ -C $ARG3$
> command[restart-remote_x64]=/usr/lib64/nagios/eventhandlers/remote-restart.
>sh $ARG1$ $ARG2$ $ARG3$ $ARG4$
>
>
> when I try to execute the following from command line I get an error.
>
> -bash-3.2$ ./check_nrpe -H localhost -c check_process_x64 -a 10 10 nagios
> NRPE: Unable to read output
>
>
> however single argument works fine.
>
> -bash-3.2$ ./check_nrpe -H localhost -c check_disk_x64 -a /var
> DISK OK - free space: /var 6674 MB (72% inode=99%);|
> /var=2513MB;8234;8719;0;9688
>
> Please advise on this. Thanks
you are trying to compare output and behaviour of two different commands .
check_proc and check_disk have different parameters and argument list
run each with the -h and read more about how to use them.
Assaf
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE
IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.
We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.
Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.
Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.
Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
------------------------------------------------------------------------------
_______________________________________________
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