NRPE?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

NRPE?

Post by ruffsense »

Can NRPE do powershell or is this not possible yet?
I don't insult, I diagnose.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE?

Post 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.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NRPE?

Post 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
Previous Nagios employee
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

Re: NRPE?

Post by ruffsense »

can i add a ps script to my nrpe.cfg?
I don't insult, I diagnose.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NRPE?

Post by avandemore »

Previous Nagios employee
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

Re: NRPE?

Post by ruffsense »

avandemore wrote:Here are instructions:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
That is for windows. This is for Linux.
I don't insult, I diagnose.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE?

Post 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.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: NRPE?

Post 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.
Previous Nagios employee
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

Re: NRPE?

Post 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
I don't insult, I diagnose.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE?

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