Send alert for server uptime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Send alert for server uptime

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post by jamesc23 »

Box293 wrote:This guide explains how to enable the relevant modules:
http://sites.box293.com/nagios/guides/n ... t-ini-file

This should fix your problems.
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.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Send alert for server uptime

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Send alert for server uptime

Post by Box293 »

Yeah I think the systray no longer exists.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Send alert for server uptime

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Send alert for server uptime

Post by jamesc23 »

Box293 wrote: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.
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?
Locked