Page 2 of 2

Re: NSClient++ and monitor hdd SMART

Posted: Tue Sep 15, 2015 1:27 pm
by tgriep
OK, I see that the -a is defined twice. Once in the command and once in the service check.
Are you using the check_nrpe command for any other checks on your system?

Re: NSClient++ and monitor hdd SMART

Posted: Tue Sep 15, 2015 2:31 pm
by ThinkFast86
no i use it first time i have't usei it again for another host.
That means that i must use the arg -a only ine th check command and delete it from the define command of comands.cfg?

Re: NSClient++ and monitor hdd SMART

Posted: Tue Sep 15, 2015 3:03 pm
by tgriep
I would edit the check_nrpe command in the commands.cfg file.
Change it from

Code: Select all

command_line    /usr/lib/nagios/plugins/check_nrpe -H '$HOSTADDRESS$' -c '$ARG1$' -a '$ARG2$'
to

Code: Select all

command_line    /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
Try that and see if that fixes it.

Re: NSClient++ and monitor hdd SMART

Posted: Wed Sep 16, 2015 1:44 am
by ThinkFast86
It works perfectly.
Thank you for your kind support.

Re: NSClient++ and monitor hdd SMART

Posted: Wed Sep 16, 2015 9:08 am
by hsmith
Are we all right to mark this one resolved and close it up?

Re: NSClient++ and monitor hdd SMART

Posted: Mon Sep 21, 2015 4:54 am
by ThinkFast86
Yes is resolved. Thank you again.