Monitor Wizard change check_nrpe command?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
r34220
Posts: 72
Joined: Fri Feb 06, 2015 6:47 pm

Monitor Wizard change check_nrpe command?

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitor Wizard change check_nrpe command?

Post 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$
}
Former Nagios Employee.
me.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitor Wizard change check_nrpe command?

Post 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.
r34220
Posts: 72
Joined: Fri Feb 06, 2015 6:47 pm

Re: Monitor Wizard change check_nrpe command?

Post 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".
r34220
Posts: 72
Joined: Fri Feb 06, 2015 6:47 pm

Re: Monitor Wizard change check_nrpe command?

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitor Wizard change check_nrpe command?

Post 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?
Former Nagios Employee.
me.
Locked