NRPE?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NRPE?
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.
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?
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
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
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: NRPE?
Previous Nagios employee
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NRPE?
I think the clearest answer corporate answer I can give you is "it is untested."ruffsense wrote:Can NRPE do powershell or is this not possible yet?
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?
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.ruffsense wrote:That is for windows. This is for Linux.
Previous Nagios employee
Re: NRPE?
Ok i will tryavandemore wrote: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.ruffsense wrote: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?
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.