Localhost.cfg

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
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Localhost.cfg

Post by kwhogster »

Running Nagios Core 4.3.4

I need to modify the settings in my localhost which is my nagios server.

I have the file localhost.cfg in /usr/local/nagios/etc/objects

When I VI that file and restart nagios the changes are not reflected in nagios

Code: Select all

# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 users.

#define service{
#        use                             local-service         ; Name of service template to use
#        host_name                       localhost
#        service_description             Total Processes
#       check_command                   check_local_procs!500!800!RSZDT
#        }


As you can see I commented this out and I still see this check in nagios

I then renamed the file to localhostold.cfg and it was still in nagios.

Where is this info kept in nagios?


Thank you

Tom


DOES any one know where I can find the cfg file for the nagios server it has to be buried somewhere ??????????

Need help please
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Localhost.cfg

Post by kwhogster »

I found it

I did this command on the nagios server and found the cfg file


grep -r -A 5 -B 5 'Total Processes' /usr/local/nagios/etc/


This can be marked as resolved

Thank you
Locked