Page 1 of 1

Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:08 pm
by r34220
I have older nagios configurations from a older nagios core instance and the check_nrpe command is ....

Code: Select all

define command{
	command_name check_nrpe
	command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$

}
Nagios XI Monitoring Wizard does not expect the "-a" for the arguments so I am getting a double "-a".

How can I either tell the Monitoring wizard to use a new "check_nrpe" command say "check_nrpe_wizard" or prevent the wizard from adding the "-a" attribute?

Thanks.

Re: Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:26 pm
by hsmith
r34220 wrote:I have older nagios configurations from a older nagios core instance and the check_nrpe command is ....

Code: Select all

define command{
	command_name check_nrpe
	command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$

}
Nagios XI Monitoring Wizard does not expect the "-a" for the arguments so I am getting a double "-a".

How can I either tell the Monitoring wizard to use a new "check_nrpe" command say "check_nrpe_wizard" or prevent the wizard from adding the "-a" attribute?

Thanks.
For some clarification here...

You have some commands that you wrote manually already in your XI configuration, but when using the Wizard, it overrides the syntax of the command you already have defined?

Without editing the code of the wizard itself, I can't think of a simple way to change this. I think the best solution in this case would be to modify your check_nrpe command back to the default, and modify your service checks.

If you need a default check_nrpe for comparison:

Code: Select all

define command {
       command_name                             check_nrpe
       command_line                             $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}

Re: Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:28 pm
by ssax
What version of XI are you running? You can find it on the bottom left hand side of the web interface.

Also, what version of the monitoring plugins are you using? You can find it by going to Admin > Manage Config Wizards and look next to it.

Re: Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:33 pm
by r34220
hsmith wrote:
r34220 wrote:I have older nagios configurations from a older nagios core instance and the check_nrpe command is ....

Code: Select all

define command{
	command_name check_nrpe
	command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$

}
Nagios XI Monitoring Wizard does not expect the "-a" for the arguments so I am getting a double "-a".

How can I either tell the Monitoring wizard to use a new "check_nrpe" command say "check_nrpe_wizard" or prevent the wizard from adding the "-a" attribute?

Thanks.
For some clarification here...

You have some commands that you wrote manually already in your XI configuration, but when using the Wizard, it overrides the syntax of the command you already have defined?

Without editing the code of the wizard itself, I can't think of a simple way to change this. I think the best solution in this case would be to modify your check_nrpe command back to the default, and modify your service checks.

If you need a default check_nrpe for comparison:

Code: Select all

define command {
       command_name                             check_nrpe
       command_line                             $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
I had modified the default check_nrpe to accommodate configurations imported from a previous nagios instance. So now that I have started using the wizard the commands are not correct because of my modifications. I am hoping I can change the command the wizard uses or modify its code to suppress the "-a".

Re: Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:39 pm
by r34220
ssax wrote:What version of XI are you running? You can find it on the bottom left hand side of the web interface.

Also, what version of the monitoring plugins are you using? You can find it by going to Admin > Manage Config Wizards and look next to it.
I am using Nagios XI 2014R2.7. I cant find the version of the monitoring plugins.

But this has led me to the location of the wizards and I see where I can make the modifications.

Thanks everyone.

Re: Monitor Wizard change check_nrpe command?

Posted: Tue Sep 01, 2015 4:41 pm
by hsmith
r34220 wrote:
ssax wrote:What version of XI are you running? You can find it on the bottom left hand side of the web interface.

Also, what version of the monitoring plugins are you using? You can find it by going to Admin > Manage Config Wizards and look next to it.
I am using Nagios XI 2014R2.7. I cant find the version of the monitoring plugins.

But this has led me to the location of the wizards and I see where I can make the modifications.

Thanks everyone.
Best of luck!

Here are some most likely outdated tips.

Would you like me to close this thread?