Page 4 of 5
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 12:56 am
by jamesc23
jamesc23 wrote:Just did a manual upgrade to latest client and I can see number of extra lines have been added to NSC.ini in the new version;
SysTray.dll=
FileLogger.dll=
CheckWMI.dll=
CheckSystem.dll=0
NSClientListener.dll=0
CheckHelpers.dll=0
CheckEventLog.dll=0
CheckDisk.dll=0
CheckExternalScripts.dll=0
CheckNSCP.dll=0
NSCAAgent.dll=0
NRPEListener.dll=0
Do I need to be concerned about the above?
And as expected, most of the services cannot fetch information from the server after client upgrade. I can only get a ping service to work. I suspect that nsc.ini will need a bit of work? I get connection refused on all of the windows services after running monitoring wizard.
Thanks.
Figured it out. I uncommented the clientlisterner port as well as getting rid of some 0's so that the modules are loaded. I think this is correct? I can now see services being reported.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 12:59 am
by Box293
You might need to enable some of the other modules. My previous reply with the link to a guide will sort you out.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 1:03 am
by jamesc23
Interesting. The guide talks about nsclient.ini but the changes I did was in nsc.ini. Was I not meant to touch nsc.ini? I'll try to revert back the changes.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 1:04 am
by jamesc23
Box293 wrote:You might need to enable some of the other modules. My previous reply with the link to a guide will sort you out.
Thanks.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 1:05 am
by Box293
You can do it either way.
I like doing it from a command line as it prevents further issues. The --add-defaults argument adds stuff that isn't there by default and sometimes it's easy to add something to the wrong section and you end up wasting more time trying to get it to work.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 2:43 am
by jamesc23
Box293 wrote:You can do it either way.
I like doing it from a command line as it prevents further issues. The --add-defaults argument adds stuff that isn't there by default and sometimes it's easy to add something to the wrong section and you end up wasting more time trying to get it to work.
Ran into an issue where modules\systray.dll could not load library. I checked the modules folder and this file isn't present. I looked at the older version and I can see this dll file there. Have I missed something?
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 2:45 am
by Box293
Yeah I think the systray no longer exists.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 8:15 pm
by jamesc23
I'm stuck again. I can't recreate nsclient.ini because it was looking for systray.dll. So I went back to NSC.ini and made the changes there. Now I'm getting CHECK_NRPE: error - Could not complete SSL handshake when I run the command against the server with the new client. Server with the old client works fine.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 8:53 pm
by Box293
If you follow these steps:
http://sites.box293.com/nagios/guides/n ... t-ini-file
Including deleting the old ini file, does it work?
If not, please post your ini file here.
Re: Send alert for server uptime
Posted: Thu Aug 06, 2015 9:30 pm
by jamesc23
It doesn't work. I get error message saying c:\program files\nsclient++/modules\systray.dll: could not load NSLoadModulesEx......DL\source\nscp\service\nsclient++.cpp:426
Did you want me to post the nsclient.ini that I just deleted?