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?
NSClient++ and monitor hdd SMART
Re: NSClient++ and monitor hdd SMART
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
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?
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
I would edit the check_nrpe command in the commands.cfg file.
Change it from
to
Try that and see if that fixes it.
Change it from
Code: Select all
command_line /usr/lib/nagios/plugins/check_nrpe -H '$HOSTADDRESS$' -c '$ARG1$' -a '$ARG2$'Code: Select all
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$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
It works perfectly.
Thank you for your kind support.
Thank you for your kind support.
Re: NSClient++ and monitor hdd SMART
Are we all right to mark this one resolved and close it up?
Former Nagios Employee.
me.
me.
-
ThinkFast86
- Posts: 26
- Joined: Fri Jul 24, 2015 5:30 am
Re: NSClient++ and monitor hdd SMART
Yes is resolved. Thank you again.