NSClient++ and monitor hdd SMART

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NSClient++ and monitor hdd SMART

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ThinkFast86
Posts: 26
Joined: Fri Jul 24, 2015 5:30 am

Re: NSClient++ and monitor hdd SMART

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NSClient++ and monitor hdd SMART

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ThinkFast86
Posts: 26
Joined: Fri Jul 24, 2015 5:30 am

Re: NSClient++ and monitor hdd SMART

Post by ThinkFast86 »

It works perfectly.
Thank you for your kind support.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NSClient++ and monitor hdd SMART

Post by hsmith »

Are we all right to mark this one resolved and close it up?
Former Nagios Employee.
me.
ThinkFast86
Posts: 26
Joined: Fri Jul 24, 2015 5:30 am

Re: NSClient++ and monitor hdd SMART

Post by ThinkFast86 »

Yes is resolved. Thank you again.
Locked