Page 3 of 4

Re: Service Status NOT FOUND

Posted: Tue Jan 17, 2017 9:39 pm
by kwhogster
tgriep

I download 04.4.23 installed and my Nagios still thinks it has 4.1.73 installed

Do I need to uninstall restart then install what a good process for updating the nsclient?


Thanks

Tom

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 10:52 am
by rkennedy
I would uninstall the old nsclient completely (delete the folder out of program files to ensure it's clean), and then reinstall. If it's still reporting the old version, then a complete reinstall may be needed, or simply a restart of the nscp service.

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 1:26 pm
by kwhogster
I have restarted the server a few times no change.

So off to an uninstall

but first I will save my nsclient.ini


Thanks

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 2:44 pm
by kwhogster
After uninstalling
then restarted

deleted the folder nsclient++

installed new version

Restarted again

Nagios still thinks it has the old nsclient still

Not reporting correctly here whats up?

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 3:42 pm
by rkennedy
Are you trying to monitor a device behind NAT by chance? Are you able to see the device go down when it was deleted / uninstalled?

Please run this on the Windows machine and post the full output -

Code: Select all

dir "c:\Program Files\NSClient++"
ipconfig
Additionally, please post your nsclient.ini and nsclient.log file for us to review, as well as the full output of your testing over the CLI showing the wrong version.

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 8:17 pm
by kwhogster
see attached

This is not a network issue again I must repeat myself this same server has approx. 70 srvices I am checking in Nagios and only three of them fail


Very strange indeed.

Re: Service Status NOT FOUND

Posted: Wed Jan 18, 2017 8:23 pm
by kwhogster
To the one who told me to upgrade the nsclient

That suggestion foobared my nsclient ini and the new version is empty
I had a lot of custom entries to make checks from other plugins to work.

Also Nagios is not even seeing this change

Need help on this asap

Re: Service Status NOT FOUND

Posted: Thu Jan 19, 2017 4:53 pm
by avandemore
Have you considered using NCPA?

https://www.nagios.org/ncpa/help.php

We don't write or maintain NSClient so helping with advanced configurations is somewhat beyond the scope of what we can help with here.

Re: Service Status NOT FOUND

Posted: Thu Jan 19, 2017 9:34 pm
by kwhogster
To All

This is not a nsclient issue it is a Nagios issue

I do not understand why no one on here knows what is wrong.

I have many machines running same nsclient version and have no issues

I need someone to figure this out please help

Not going to switch to something else when what is going on here is Nagios related.


Also why does Nagios not pick up the new version of nsclient

Code: Select all

define service{
        use                     generic-service
        host_name               TGCS006
        service_description     NSClient++ Version
        servicegroups           nsclients
        check_command           check_nt!CLIENTVERSION
        }
Still claims it is running 4.1.73

Re: Service Status NOT FOUND

Posted: Fri Jan 20, 2017 2:14 pm
by rkennedy
When you uninstalled the NSClient++ service, was it still reporting the version? If so, it's possible you have the process open on the Windows machine.

If you're positive this is Nagios related - please post the EXACT commands you're running, as well as ALL related objects. This includes the command, host, and service. We should then be able to setup a test on our end to replicate it.