Renamed service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Renamed service

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Renamed service

Post 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?
Former Nagios Employee
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Re: Renamed service

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Renamed service

Post 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?
Former Nagios Employee
rdubya
Posts: 40
Joined: Mon Apr 11, 2016 8:38 am

Re: Renamed service

Post by rdubya »

Yes indeed.
Locked