VPN 서비스에서 항상 상태를 확인하기위한 플러그인 모니터링 - Windows 서버에서 실행하려면
nsclient.ini (또는 nsclient.ini에 포함 된 다른 INI 파일)에서 [/settings/external_scripts/scripts]
섹션에서 서비스를 정의합니다 (여기서 check_aon_vpn
).
[/settings/external scripts/scripts]
check_aon_vpn = cmd /c echo scriptscheck_aon_vpn.ps1; exit($lastexitcode) | powershell.exe -command -
스크립트 자체를 NSCLIENT_PATHscripts
(예 : C:Program FilesNSclient++scripts
에 배치하십시오.
정의 된 nrpe 명령 check_aon_vpn
이제 check_nrpe
사용하여 원격으로 실행할 수 있습니다.
$ /usr/lib/nagios/plugins/check_nrpe -H aonserver -c check_aon_vpn
Always On VPN OK - All Services OK (Server Vpn Addressing Vpn Connectivity Services)