Page 1 of 1

Localhost.cfg

Posted: Fri Sep 18, 2020 10:06 pm
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

Re: Localhost.cfg

Posted: Sat Sep 19, 2020 4:02 pm
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