Change your command to:
Code: Select all
$USER1$/service_restart.sh $SERVICESTATE$ $HOSTADDRESS$ '$SERVICEOUTPUT$'Add this shell script to /usr/local/nagios/libexec: (don't rename, leave as is for testing, you can change after we test if you want)
Then run this command:
Code: Select all
chmod +x /usr/local/nagios/libexec/service_restart.shNow edit your nsclient.ini and replace the current line you have in there with this one:
Code: Select all
multi_service_restart=scripts\multi_service_restart.bat "$ARG1$"