Restarting a Program

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
digitalbennu
Posts: 20
Joined: Fri Apr 19, 2013 10:46 am

Restarting a Program

Post 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,
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Restarting a Program

Post 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.
digitalbennu
Posts: 20
Joined: Fri Apr 19, 2013 10:46 am

Re: Restarting a Program

Post 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"
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Restarting a Program

Post 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
Locked