Page 1 of 1

Renamed service

Posted: Wed Aug 03, 2016 1:12 pm
by rdubya
I've started using the check_procs plugin to monitor a few processes (java, mysql). It works good, but during the process of setting it up I renamed the service from check_java to blackduck_java. That actually worked good but I still have the old service name listed under services. This is distracting to some users who are monitoring these hosts. Is there anyway to remove these legacy services from the display?

EDIT:
Nagios version is 4.1.1
Host and remote are both Centos 6.5

Re: Renamed service

Posted: Wed Aug 03, 2016 2:03 pm
by rkennedy
After renaming it, it shouldn't be there still. Do you have multiple processes running by any chance? Please run the following and post back the output - ps -ef | grep 'nagios'

Also, please attach your /usr/local/nagios/var/objects.cache file for us to look at. What is the host / service that shouldn't be there?

Re: Renamed service

Posted: Wed Aug 03, 2016 2:11 pm
by rdubya
Hey, thanks for replying. Found the error in the host's config file on the monitoring server. I usually self check pretty hard before posting and missed this somehow. Thanks for the debugging tips though, I'm sure I'll use those in the future.

R

Re: Renamed service

Posted: Wed Aug 03, 2016 2:25 pm
by rkennedy
rdubya wrote:Hey, thanks for replying. Found the error in the host's config file on the monitoring server. I usually self check pretty hard before posting and missed this somehow. Thanks for the debugging tips though, I'm sure I'll use those in the future.

R
No problem. The objects.cache file is really handy as it'll show how Nagios has compiled all of your hosts / services together after templates.

Are we good to mark this thread as resolved?

Re: Renamed service

Posted: Wed Aug 03, 2016 2:38 pm
by rdubya
Yes indeed.