Page 1 of 1

How to change a ping parameter | No $ARG$

Posted: Tue Jul 23, 2024 7:18 am
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

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

Posted: Tue Jul 23, 2024 9:13 am
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!

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

Posted: Tue Jul 23, 2024 9:20 am
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!

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

Posted: Wed Jul 24, 2024 9:29 am
by gwesterman
No problem. I'm glad we found a solution.

Thank you!