User Tools

Site Tools


wiki:new_host_setup_-_windows

New host setup - windows

Download and Install nsclient++

https://www.nsclient.org/download/

Example of C:\Program Files\NSClient++\nsclient.ini:

# If you want to fill this file with all available options run the following command:
#   nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
#   nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help

 
; TODO
[/settings/default]

; Undocumented key
password = password123

; Undocumented key
allowed hosts = 127.0.0.1,::1,<icinga server public ip>

; TODO
[/settings/NRPE/server]

; Undocumented key
verify mode = none

; Undocumented key
insecure = true

 
; TODO
[/modules]

; Undocumented key
CheckExternalScripts = 1

; Undocumented key
CheckHelpers = 1

; Undocumented key
CheckEventLog = 1

; Undocumented key
CheckNSCP = 1

; Undocumented key
CheckDisk = 1

; Undocumented key
CheckSystem = 1

; Undocumented key
NRPEServer = 1

; A list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)
[/settings/external scripts/alias]

; alias_cpu - Alias for alias_cpu. To configure this item add a section called: /settings/external scripts/alias/alias_cpu
alias_cpu = checkCPU warn=80 crit=90 time=5m time=1m time=30s

 
; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk
alias_disk = check_drivesize "crit=free<10%" drive=c: 

 
; alias_mem - Alias for alias_mem. To configure this item add a section called: /settings/external scripts/alias/alias_mem
alias_mem = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page

 
; alias_updates - Alias for alias_updates. To configure this item add a section called: /settings/external scripts/alias/alias_updates
;alias_updates = check_updates -warning 0 -critical 0
 
[/settings/external scripts/scripts]
check_megaraid = cscript.exe //T:30 //NoLogo scripts\\lib\\wrapper.vbs megaraid.vbs
 
check_updates= cscript.exe //T:30 //NoLogo scripts\\lib\\wrapper.vbs check_updates.vbs

Allow NSClient in windows firewall

In Inbound rules from IP of Icinga server (Under “New Rule > Custom > Scope > “Remote IP address”). In “Protocol and Ports” > “Local Port” > “Specific Ports” > 5666. Protocol Type is “TCP”.

Download MegaCli and Storage Manager

Storage Manager: https://docs.broadcom.com/docs/17.05.06.00_MSM_Windows.zip

MegaCli: https://www.broadcom.com/site-search?q=megacli

Unzip Megacli and copy the MegaCli.exe and MegaCli64.exe from Windows folder to C:\Program Files (x86)\MegaRAID Storage Manager. Otherwise you will get an error from icinga like “C:Program FilesNSClient++scriptslibwrapper.vbs(0, 1) WshShell.Exec: The system cannot find the file specified.”

Tested on

See also

References

wiki/new_host_setup_-_windows.txt · Last modified: 2022/07/26 11:21 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki