Page 1 of 1

NRPE?

Posted: Mon Dec 19, 2016 4:50 pm
by ruffsense
Can NRPE do powershell or is this not possible yet?

Re: NRPE?

Posted: Mon Dec 19, 2016 5:05 pm
by dwhitfield
Well, it can with NSClient for sure. NSClient supposedly works on Linux. Most people don't do this since there are better options...but if you are trying to standardize on NSClient as much as possible, it might make sense.

Is this for your powershell on Linux script? If not, you might want to go through https://exchange.nagios.com/directory/P ... ndows-NRPE and see if anyone is using NRPE with NSClient. I spent the last ~15 min or so trying to find a reference to PS and NRPE without NSClient. I could not find one on the forums or on exchange, but my search was by no means exhaustive.

Re: NRPE?

Posted: Mon Dec 19, 2016 5:05 pm
by avandemore
It depends on what mean by "do powershell".

NRPE has been able to call PS scripts remotely for a very long time via NSClient.

You might also wish to look at https://github.com/NagiosEnterprises/ncpa

Re: NRPE?

Posted: Mon Dec 19, 2016 7:05 pm
by ruffsense
can i add a ps script to my nrpe.cfg?

Re: NRPE?

Posted: Tue Dec 20, 2016 10:31 am
by avandemore

Re: NRPE?

Posted: Tue Dec 20, 2016 4:33 pm
by ruffsense
avandemore wrote:Here are instructions:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
That is for windows. This is for Linux.

Re: NRPE?

Posted: Tue Dec 20, 2016 4:49 pm
by dwhitfield
ruffsense wrote:Can NRPE do powershell or is this not possible yet?
I think the clearest answer corporate answer I can give you is "it is untested."

Powershell on Linux is new and basically no one uses on NSClient on Linux, though it should be technically possible.

If there are enough people that want this, I am sure we will build something, but you are the first person to ask for it. There isn't a NRPE roadmap at https://www.nagios.com/roadmaps/. I can see if I can get some sort of NRPE roadmap if that would be useful for you.

Re: NRPE?

Posted: Tue Dec 20, 2016 4:52 pm
by avandemore
ruffsense wrote:That is for windows. This is for Linux.
I don't really understand the confusion. If you're trying to run PS from Linux NRPE, then just define as would any other executable. All NRPE really does is call the executable. It can be a binary, shell script, or any other type of executable you like as long as the NRPE host OS can run it.

Re: NRPE?

Posted: Tue Dec 20, 2016 5:16 pm
by ruffsense
avandemore wrote:
ruffsense wrote:That is for windows. This is for Linux.
I don't really understand the confusion. If you're trying to run PS from Linux NRPE, then just define as would any other executable. All NRPE really does is call the executable. It can be a binary, shell script, or any other type of executable you like as long as the NRPE host OS can run it.
Ok i will try

Re: NRPE?

Posted: Tue Dec 20, 2016 5:24 pm
by dwhitfield
One thing to keep in mind if you are copying and pasting PS code is the cr/lf issue of Linux/Windows. I have no idea is that is handled gracefully on PS on Linux.