Hi Community!
I want to ask you about help to create a specific monitoring which will check status (started or stopped) a proper app pool from IIS (Windows Server 2016) via Nagios.
I found a few solutions related with create script with powershell, but it doesn't work correctly.
Best Regards
Check status app pool in IIS WS 2016
-
- Posts: 120
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Check status app pool in IIS WS 2016
Hi @providentpolska,
Some more detail would be good here. What specifically did you try? And when it didn't work, what didn't work about it? Can you provide error messages and the steps you followed?
Thanks,
Aaron
Some more detail would be good here. What specifically did you try? And when it didn't work, what didn't work about it? Can you provide error messages and the steps you followed?
Thanks,
Aaron
-
- Posts: 14
- Joined: Fri Jan 10, 2020 2:58 am
Re: Check status app pool in IIS WS 2016
Hi,
Sorry for lack of more details, so:
1. I created a script, which is resposible for checking of status a proper app pool and save it on location C:\Program Files\NSClient++\scripts
2. Added the check command to NSClient++ Configuration on location C:\Program Files\NSClient++ to file nsclient.ini on section /settings/external-scripts: check_apppool = cmd /c echo scripts\check_apppool.ps1; exit($lastexitcode) | powershell.exe -command -
Now, I am not sure what's next? I found one solution about "configure Nagios to Check the App Pool Status in server Nagios", but I don't know which file should be enter this service:
define service {
use generic-service
host_name windows-server
service_description IIS App Pool Status
check_command check_apppool
}
Sorry for lack of more details, so:
1. I created a script, which is resposible for checking of status a proper app pool and save it on location C:\Program Files\NSClient++\scripts
2. Added the check command to NSClient++ Configuration on location C:\Program Files\NSClient++ to file nsclient.ini on section /settings/external-scripts: check_apppool = cmd /c echo scripts\check_apppool.ps1; exit($lastexitcode) | powershell.exe -command -
Now, I am not sure what's next? I found one solution about "configure Nagios to Check the App Pool Status in server Nagios", but I don't know which file should be enter this service:
define service {
use generic-service
host_name windows-server
service_description IIS App Pool Status
check_command check_apppool
}
-
- Posts: 120
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Check status app pool in IIS WS 2016
Hello, apologies for the delay, I was out of the office.
I'd think you should be able to go to the CCM, click on Services, and then click the Add New button and go from there.
Let me know how that works.
I'd think you should be able to go to the CCM, click on Services, and then click the Add New button and go from there.
Let me know how that works.
-
- Posts: 14
- Joined: Fri Jan 10, 2020 2:58 am
Re: Check status app pool in IIS WS 2016
Hi,
In service management - I am not sure what exactly should choose in Check command. Do you know what I should choose on these commands?
In service management - I am not sure what exactly should choose in Check command. Do you know what I should choose on these commands?