Hello XI support
I see similar (but not same) question in Forum from April.
General idea: Checking Web-portals with powershell script(s) launched from NRPE and returning results to XI.
(specifically MsOffice online portals, where re-directs is a disaster while powershell modules for their verification already exist)
Question1: say i have my Office365.ps1 script to run (how to configure it with NRPE)
Question2: say it has to produce result similar to this one:
Name Status Authentication
---- ------ --------------
litwareinc.onmicrosoft.com Verified Managed
- how to interpret one as "Verified" at XI end?
Thank you
Combining Powershell script with NRPE and returning results
Re: Combining Powershell script with NRPE and returning resu
You would need to create a powershell wrapper script, that checks if 'verify' exists in the output data (from Office365.ps1), and if it does then 'exit 0' (OK status), if it doesn't, then have the powershell script 'exit 2' (CRITICAL status).
Nagios decides what the status of a service is based off of the exit codes. The text that gets echoed could say anything.
Nagios decides what the status of a service is based off of the exit codes. The text that gets echoed could say anything.
Former Nagios Employee
Re: Combining Powershell script with NRPE and returning resu
Please close this one. Did not go this route.rkennedy wrote:You would need to create a powershell wrapper script, that checks if 'verify' exists in the output data (from Office365.ps1), and if it does then 'exit 0' (OK status), if it doesn't, then have the powershell script 'exit 2' (CRITICAL status).
Nagios decides what the status of a service is based off of the exit codes. The text that gets echoed could say anything.
Re: Combining Powershell script with NRPE and returning resu
Will do.
/closed
/closed
Former Nagios Employee