Page 2 of 2

Re: Delete Service

Posted: Wed Apr 23, 2014 1:53 pm
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.

Re: Delete Service

Posted: Wed Apr 23, 2014 1:57 pm
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

Re: Delete Service

Posted: Wed Apr 23, 2014 2:11 pm
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?

Re: Delete Service

Posted: Wed Apr 23, 2014 2:14 pm
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.

Re: Delete Service

Posted: Wed Apr 23, 2014 2:16 pm
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?

Re: Delete Service

Posted: Wed Apr 23, 2014 2:19 pm
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.

Re: Delete Service

Posted: Wed Apr 23, 2014 2:33 pm
by sreinhardt
Hey come on now, they are thawed... just not warm in any sense of the word, lol. Thanks though!