I'm trying to run a powershell on NCPA 2.3.1 but I'm having trouble making it accept a command separeted list of arguments. The powershell run directly will be like
Code: Select all
PS C:\Program Files (x86)\Nagios\NCPA\plugins> .\get_dhcp_stats.ps1 -w 10 -c 5 -e 10.108.6.0, 10.112.96.0, 10.112.10.0,10.121.10.0, 10.121.63.0, 10.121.123.64, 10.118.255.0Code: Select all
-M 'plugins/get_dhcp_stats.ps1' -q 'args=-w 10 -c 5 -e 10.178.255.0'This is what I'm trying
Code: Select all
-M 'plugins/get_dhcp_stats.ps1' -q 'args=-w 10 -c 5', 'args= -e 10.108.6.0, 10.112.96.0, 10.112.10.0, 10.121.10.0,10.121.63.0, 10.121.123.64, 10.118.255.0'Code: Select all
-M 'plugins/get_dhcp_stats.ps1' -q 'args=-w 10 -c 5 -e 10.108.6.0\, 10.112.96.0\, 10.112.10.0\, 10.121.10.0\, 10.121.63.0\, 10.121.123.64\, 10.118.255.0'