How to change a ping parameter | No $ARG$

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jamie87
Posts: 9
Joined: Thu Jul 11, 2024 9:18 am

How to change a ping parameter | No $ARG$

Post by jamie87 »

Hi,

I have a service that does a ping check, the service itself has no values set but it does have a template assigned to it.

When i look at that template i can see the command

Code: Select all

$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5
I want to change the -p 5 to -p 10

How do i make this change as there is no $ARG$ variable and the command view box is read only

If i try to make a new check, when i select the command from the drop down "check_xi_service_ping" that also automatically sets -p 5


Regards,
Jamie
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: How to change a ping parameter | No $ARG$

Post by gwesterman »

Hi @jamie87,

There are a number of ways to go about this. Off of the top of my head, using the CCM you can either create a new command with the parameters you like or you can edit the one being used by this service template. For example, you can copy this command, go to CCM -> Commands -> Add New, give your new command a name, paste the command you copied, edit whatever you like, save, and apply configuration. Now you can edit the service template to use this command instead.

If you have any additional questions, please ask.

Thank you!
jamie87
Posts: 9
Joined: Thu Jul 11, 2024 9:18 am

Re: How to change a ping parameter | No $ARG$

Post by jamie87 »

Ah "Commands"!

I was looking at services and forgot about commands, i have copied the command as you suggested and added an arg so i can specify per service.

Thank you!
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: How to change a ping parameter | No $ARG$

Post by gwesterman »

No problem. I'm glad we found a solution.

Thank you!
Locked