Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
If you are not sure, lets start with this procedure :
- Define command without arguments, just copy working command from command line and create a copy in nagios command definitions. Then assign command to service and test (should works)
- lets try to replace strings in command and add arguments one by one, at first replace -H with $ARG1$ and modify check_command for service (add !server_address)
Last edited by rkennedy on Mon Jul 18, 2016 10:41 am, edited 2 times in total.
Reason:Changed $ARG3 to $ARG3$
@saiyen2002 - as @kiklop mentioned, looks like you're missing additional $ARG$ values. His answer will work.
Alternatively, you could just change your command_line in the command definition to include $ARG3$, $ARG4$, $ARG5$, and $ARG6$. You're able to pass the variables how you want. The minimalist way is what @kiklop mentioned though.