Page 1 of 1

Installing NSClient after import

Posted: Mon Feb 07, 2011 9:02 am
by jpipitone
I've used the Nagios import prep tool to move our existing Nagios 2.9 config into NagiosXI with no issues, perfectly smooth.

After bringing the config into XI, I noticed that NagiosXI was able to perform service checks even though I haven't installed the new NSClient on any of our servers, it still was able to perform the service checks. I would imagine that the checks are still connecting to the existing legacy Nagios agent.

Moving forward, do you recommend installing the updated NSClient? I would imagine we should probably do so in order to support newer checking techniques used by NagiosXI.

Do you have any recommendations as far as remotely deploying the new NSClient while at the same time uninstalling the old one, or is it more of a manual process?

Thank you for an easy import tool.

Re: Installing NSClient after import

Posted: Mon Feb 07, 2011 11:14 am
by rdedon
We would strongly recommend upgrading to the latest NSClient++ as some of the previous ones could be buggy intermittently.

Mostly it will be manual but there is one thing you could do to ease deployment is create and edit a "master nsc" file such as this snippet:

Code: Select all

[modules]
;# NSCLIENT++ MODULES
;# A list with DLLs to load at startup.
;  You will need to enable some of these for NSClient++ to work.
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
; *                                                               *
; * N O T I C E ! ! ! - Y O U   H A V E   T O   E D I T   T H I S *
; *                                                               *
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
;SysTray.dll
CheckEventLog.dll
;CheckHelpers.dll
;CheckWMI.dll
And drop them onto each machine. Another note, systray "can" be problematic so you may want to avoid having that run altogether.

Hope this helps! :-)

Re: Installing NSClient after import

Posted: Mon Feb 07, 2011 11:24 am
by jpipitone
OK - so even during installation of the agent where I choose which modules to enable, I still have to manually uncomment those things out within NSC.ini?

EDIT: just took another look at my NSC.ini file, those values are all uncommented at the top.

Thank you!

Re: Installing NSClient after import

Posted: Mon Feb 07, 2011 11:30 am
by rdedon
In my last testing I did have to edit but it was not the latest. You may want to push to one machine as a pre-deploy and go from there.

Re: Installing NSClient after import

Posted: Mon Feb 07, 2011 11:31 am
by rdedon
jpipitone wrote:OK - so even during installation of the agent where I choose which modules to enable, I still have to manually uncomment those things out within NSC.ini?

EDIT: just took another look at my NSC.ini file, those values are all uncommented at the top.

Thank you!
Ah great! I saw this after my last post :-)