How to stop logging for check_init_service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

How to stop logging for check_init_service

Post by Berto »

Hello,

In my environment I have no need to monitor through Nagios XI our Linux servers sshd or crond. I have a few servers that were configured for them and removed the services through the Nagios XI web interface but still see logging in /var/log/messages for sshd and crond. How can I stop the check_init_service plugin to stop logging for them? This is what I see in the logs;

Jan 30 10:50:49 server sudo: nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/nagios/libexec/check_init_service sshd
Jan 30 10:53:07 server sudo: nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/nagios/libexec/check_init_service crond

--Berto
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to stop logging for check_init_service

Post by ssax »

Was apply config successful? Please edit your /usr/local/nagios/etc/services/CONFIGNAME.cfg and see if they still show up in there.

Do you have a single service assigned to a hostgroup/multiple hosts that could be causing it?
Berto
Posts: 162
Joined: Tue Jul 01, 2014 6:12 pm

Re: How to stop logging for check_init_service

Post by Berto »

This can be closed. I noticed that our other Nagios server still had the server configured for sshd and crond and once I removed it it stopped logging.

Thanks,

--Berto
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: How to stop logging for check_init_service

Post by bwallace »

Thanks for that update Berto, we'll lock this thread now and feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked