Page 5 of 5

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 10:05 am
by ssax
Let's start from the beginning, please replace your files and commands (even if they look identical, copy and paste just to be sure) with the ones below.

Change your command to:

Code: Select all

$USER1$/service_restart.sh $SERVICESTATE$ $HOSTADDRESS$ '$SERVICEOUTPUT$'
Then apply configuration.

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)
service_restart.zip
Then run this command:

Code: Select all

chmod +x /usr/local/nagios/libexec/service_restart.sh
Replace your batch script with this one: (again, don't rename, leave as is for testing)
multi_service_restart.zip
Now 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$"
Now restart the nsclient service, try it again, and let me know.

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 3:44 pm
by mhixson2
Frustrating. I have all the pieces in place just as you showed, but it's still not working. Here are screenshots of my entire config.
I am out of the office for the rest of the week, so hopefully when I'm back on Monday we can make some progress on this.

Thanks!

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 3:45 pm
by mhixson2
More

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 3:46 pm
by mhixson2
The rest.

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 3:56 pm
by ssax
I notice that when you are doing the test command you are using all lowercase "citrix encryption service" but in your service you are using "Citrix Encryption Service", I wonder if that would cause an issue, try it all lowercase.

Edit: Nevermind, that shouldn't matter since it's pulling it from the output.

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 4:00 pm
by ssax
When you get back send an email to [email protected] with a descriptive subject and post a link referencing this thread, I'd like to setup a remote to dig into this and figure out why it's not working.

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 4:05 pm
by mhixson2
ssax wrote:When you get back send an email to [email protected] with a descriptive subject and post a link referencing this thread, I'd like to setup a remote to dig into this and figure out why it's not working.
Sounds good. Thanks!

Re: NRPE: Automatic restart of multiple services

Posted: Wed Jul 22, 2015 4:21 pm
by lmiltchev
As soon as you open a new ticket in our ticketing system, we will lock this post and continue communicating via emails. Thanks!

Re: NRPE: Automatic restart of multiple services

Posted: Mon Jul 27, 2015 8:27 am
by mhixson2
Email has been sent.

Re: NRPE: Automatic restart of multiple services

Posted: Mon Jul 27, 2015 9:36 am
by lmiltchev
You opened a new support ticket in our email ticketing system. We will continue communicating via emails. I am locking this topic.