NRPE: Automatic restart of multiple services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRPE: Automatic restart of multiple services

Post 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.
You do not have the required permissions to view the files attached to this post.
mhixson2
Posts: 96
Joined: Wed Jun 24, 2015 3:02 pm

Re: NRPE: Automatic restart of multiple services

Post 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!
You do not have the required permissions to view the files attached to this post.
Last edited by mhixson2 on Wed Jul 22, 2015 3:47 pm, edited 1 time in total.
mhixson2
Posts: 96
Joined: Wed Jun 24, 2015 3:02 pm

Re: NRPE: Automatic restart of multiple services

Post by mhixson2 »

More
You do not have the required permissions to view the files attached to this post.
Last edited by mhixson2 on Wed Jul 22, 2015 3:47 pm, edited 1 time in total.
mhixson2
Posts: 96
Joined: Wed Jun 24, 2015 3:02 pm

Re: NRPE: Automatic restart of multiple services

Post by mhixson2 »

The rest.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRPE: Automatic restart of multiple services

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRPE: Automatic restart of multiple services

Post 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.
mhixson2
Posts: 96
Joined: Wed Jun 24, 2015 3:02 pm

Re: NRPE: Automatic restart of multiple services

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Automatic restart of multiple services

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
mhixson2
Posts: 96
Joined: Wed Jun 24, 2015 3:02 pm

Re: NRPE: Automatic restart of multiple services

Post by mhixson2 »

Email has been sent.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Automatic restart of multiple services

Post by lmiltchev »

You opened a new support ticket in our email ticketing system. We will continue communicating via emails. I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked