91
edits
Changes
0.4.3.88 with improved installation package
NSClient++ can be downloaded from [http://nsclient.org/nscp/downloads http://nsclient.org/nscp/downloads]
== NSClient++ 0.4.3, single package for 32- or 64-bit with configuration control ==
This package installs the 32-bit or 64-bit version of NSClient++, as appropriate, and opens the necessary holes in the firewall.
This package controls configuration with <code>nscp.exe settings --path ''path to key'' -key ''key name'' --set ''value''</code> instead of copying an INI file.
<source lang="xml">
<package
id="nscp"
name="NSClient++"
revision="%version%-%configversion%"
reboot="false">
<variable name="version" value="0.4.3.88" />
<variable name="configversion" value="1" />
<!-- Set IP address or network of your monitoring system(s) -->
<variable name="myips" value="10.0.0.0/24" />
<check
type="uninstall"
condition="versiongreaterorequal"
value="%version%"
path="NSClient\+\+.*" />
<check
type="file"
condition="versiongreaterorequal"
path="%PROGRAMFILES%\NSClient++\nscp.exe"
value="%version%" />
<install cmd='msiexec /qn /norestart /i "%SOFTWARE%\NSclient\NSCP-%version%-x64.msi"' architecture="x64" />
<install cmd='msiexec /qn /norestart /i "%SOFTWARE%\NSclient\NSCP-%version%-Win32.msi"' architecture="x86" />
<install cmd="netsh advfirewall firewall set rule name="NSClient++ Monitoring Agent" profile="any" new remoteip="%myips%"" />
<!-- Somewhere between 0.41.105 and 0.4.3.88 this became necessary to work with the check_nt shipped with Debian 7 -->
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /settings/NSClient/server --key "use ssl" --set 1" />
<!-- Put settings here -->
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckDisk --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckEventLog --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckExternalScripts --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckHelpers --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckNSCP --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckSystem --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key CheckWMI --set 1" />
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /modules --key NSClientServer --set 1" />
<!-- Example: set alternate port -->
<!--
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /settings/NSClient/server --key port --set 1248" />
-->
<!-- Example: set allowed remote host -->
<!--
<install cmd=""%PROGRAMFILES%\NSClient++\nscp.exe" settings --path /settings/default --key "allowed hosts" --set 10.0.0.1" />
-->
<!-- This works around a bug in NSClient++ and must appear after ALL other configuration commands! -->
<install cmd='powershell -noprofile -command "(get-content \"%PROGRAMFILES%\NSClient++\\nsclient.ini") | %{$_ -replace \"^An alias is an internal command.*$\", \"\"} | set-content \"%PROGRAMFILES%\NSclient++\nsclient.ini\""' />
<install cmd="net stop nscp">
<exit code="any" />
</install>
<install cmd="net start nscp" />
<upgrade include="install" />
<remove cmd="net stop nscp">
<exit code="any" />
</remove>
<!-- Product code verified with 0.4.3.88 x64, check
HKLM\Microsoft\Windows\CurrentVersion\Install\erUserData\S-1-5-18\Products\
for correct GUID with future versions
-->
<remove cmd="MsiExec.exe /qn /x{53603f7c-1fde-47bc-98ed-12960267712d}">
<exit code="any" />
</remove>
<remove cmd='msiexec /qn /norestart /x "%SOFTWARE%\NSclient\NSCP-%version%-x64.msi"' architecture="x64" >
<exit code="any" />
</remove>
<remove cmd='msiexec /qn /norestart /x "%SOFTWARE%\NSclient\NSCP-%version%-Win32.msi"' architecture="x86" >
<exit code="any" />
</remove>
</package>
</source>
== NSClient++ 0.4.1 ==
One package for the 32bit-version, one for the 64bit.