I have written an ansible playbook to automate setup of nrpe 2.12 client which we use. The last step of the task is to start nrpe client as nagios user.
############### starting nrpe ################ |
|
|
|
become: yes |
|
become_user: nagios |
|
command: ./nrpe-server start |
|
args: |
|
chdir: /opt/app/nrpe-2.12/init.d |
We have the ansible git repo being invoked from GOCD. In GOCD console, I am not finding any errors.
TASK [nrpe : go to INIT.D and start nrpe] **************************************
changed: [96.118.233.22]
When i login to server, it shows nrpe is running, but I am unable to see the nrpe process. I am unable to figure out what mistake am committing here. Would appreciate any help with this ?