Page 1 of 1

Restarting a Program

Posted: Thu Jun 13, 2013 11:09 am
by digitalbennu
Been reading on how to restart a LINUX service. Is the process about the same for restarting a program not a service running on a machine running the NRPE?

Thanks,

Re: Restarting a Program

Posted: Thu Jun 13, 2013 11:18 am
by slansing
Sorry, are you asking how to restart a service? It should be the same across virtually all RHEL based systems, and across all Debian based systems.

Re: Restarting a Program

Posted: Thu Jun 13, 2013 11:22 am
by digitalbennu
No...I am looking to execute a command that will restart a program NOT a LINUX services....Command I need to run is "fmsadmin START WPE"

Re: Restarting a Program

Posted: Thu Jun 13, 2013 12:23 pm
by slansing
You could create a NRPE command definition to run that command, then pass the command an argument from the Nagios XI server containing the name of what you would like it to be used on. I suggest taking a look at how such a relationship is formed in this document, though it shows services, it will explain how to define a command such as this, and get it up and running:

http://assets.nagios.com/downloads/nagi ... h_NRPE.pdf