NRPE Command to Fileshare

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FrontlineIT
Posts: 94
Joined: Tue Jul 26, 2016 8:46 am

NRPE Command to Fileshare

Post by FrontlineIT »

We are running Nagios XI.
No special configurations.

I am using the NRPE command to run a powershell script that writes a file to a file share although I am getting access denied.
The reason is that the Nagios service is tied to a service account on the domain that does not have access to the share.
I would like the service account on the domain that HAS access to write to the share, the ability to run the command after the Nagios server executes the nrpe command.

Is there an argument that i can put that i could add the user and password of the service account that has access to the share?

Thank you for any input!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRPE Command to Fileshare

Post by mcapra »

Just so we're clear on all the pieces, you are using check_nrpe to talk to NSClient++ which is executing a powershell script. Correct?

You might have to use a wrapper powershell script on the NSClient++ side of things to execute your "write my file" script:
https://blogs.technet.microsoft.com/ben ... e-process/
Former Nagios employee
https://www.mcapra.com/
Locked