Delete 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.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Delete Service

Post by toleolu »

OK, this is weird.

I normally use WINSCP to edit and copy the config files on the old system. When I open /usr/local/nagios/etc/nagios.cfg in WINSCP, the file shows the av services deleted. However if I telnet into the server and vi /usr/local/nagios/nagios/etc/services.cfg the av checks are there. There's also a couple of hosts I removed a couple of weeks ago.

Let me try the old fashion way of updating those files. Looks like WINSCP is lying to me.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Delete Service

Post by toleolu »

Previous post has a typo in the patch for the services.cfg file, that was my bad, I am working in the same directory
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Delete Service

Post by sreinhardt »

Interesting, I don't believe winscp should cache anything, but who knows! Any luck after modifying via vim or nano and a service restart?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Delete Service

Post by toleolu »

I'M TOO STUPID TO LIVE :oops: :oops: :oops:

Right directory, wrong server. I copied those files to the Nagios XI server instead of the old one. DUHHHHHHHHHHH!!!!!

Fortunately it didn't break anything in Nagios XI, should I do anything about that or just let it go.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Delete Service

Post by sreinhardt »

Ha, glad you figured it out! Nothing needs to be done on the XI server, it will overwrite those with the next apply config anyway. All set on this then, lock it up?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Delete Service

Post by toleolu »

Yep another PEBKAC (Problem Exists Between Keyboard And Chair)

Mahalos, I'll try to send some of our Island sunshine your way, maybe start thawing out those 10,000 lakes.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Delete Service

Post by sreinhardt »

Hey come on now, they are thawed... just not warm in any sense of the word, lol. Thanks though!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked