Monday, 21 December 2009

Settings for nsclient (Nagios agent for Windows)

It's not a hard task, but sometimes i forget it...

1.-Install the nsclient agent as service:
unzip the agent in c:\nsclient. Don't use the msi installer!
edit nsc.ini and uncomment the following lines:

[modules]
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll

Don't uncomment the CheckWMI.dll

[settings]
allowed_hosts=
use_file=1

[NSClient]
port=12489

Save the nsc.ini file and open a command prompt. Go to c:\nsclient and execute

C:\nsclient>"NSClient++.exe" /install
Service NSClientpp installed...
l NSClient++.cpp(224) Service installed!

Next, install the System Tray icon:

C:\nsclient>"NSClient++.exe" SysTray -install

Now, go to Services and allow the nsclient service to interact with the desktop (to allow the system tray icon)

Start the service from the service manager.

No comments:

Post a Comment