Search found 3 matches

by SoCalMike
Fri Jun 28, 2024 12:38 pm
Forum: Nagios XI
Topic: $ARG1$
Replies: 8
Views: 9374

Re: $ARG1$

Hello SoCalMike , Thank you for getting back to me! After rereading your issue, I think the issue might relate to the host/service structure. You will want the add the command and fill out the ARG fields in the service of your host. Do let me know if this helps! It definitely works that way. I was ...
by SoCalMike
Thu Jun 27, 2024 10:48 am
Forum: Nagios XI
Topic: $ARG1$
Replies: 8
Views: 9374

Re: $ARG1$

Hi AJcoil

Thanks for the help!

I did as you suggested. The command line variable still isn't getting passed off from the host config.

Command is now

/path/to/bash.sh -H $ARG1$

In the Service Config, $ARG1$ field is blank

In the Host Config, $ARG1$ field is populated
by SoCalMike
Wed Jun 26, 2024 3:10 pm
Forum: Nagios XI
Topic: $ARG1$
Replies: 8
Views: 9374

$ARG1$

I have a service that runs from a bash script that relies on one command line argument. I created a command with command line /path/to/bash.sh $ARG1$ I created a service with the check command and added 1 host to it IN the host config, I added -H 192.168.1.2 in ARG1 field. The host is not passing of...