Re: Nagios® Core™ Version 4.0.8
Posted: Fri Mar 20, 2015 10:48 am
1) I wouldn't modify stuff in the objects folder, that's not a good idea. There is a conf.d folder which is where all of your configs should go
2) In the conf.d folder create a file called domates.karel.com.tr.cfg and put the following contents in it:
3) Erase your ubuntu.cfg file
4) Your nagios.cfg should not need to be modified.
Make these changes and let us know how it works.
2) In the conf.d folder create a file called domates.karel.com.tr.cfg and put the following contents in it:
Code: Select all
define host{
use linux-server
host_name domates.karel.com.tr
alias dosya_paylasim1
address 192.168.169.120
}
define service{
use generic-service ; Name of service template to use
host_name domates.karel.com.tr
service_description Root Partition
check_command check_nrpe!check_disk
}
define service{
use generic-service ; Name of service template to use
host_name domates.karel.com.tr
service_description Current Users
check_command check_nrpe!check_users
}
define service{
use generic-service ; Name of service template to use
host_name domates.karel.com.tr
service_description Total Processes
check_command check_nrpe!check_procs
check_command check_procs!250!400!RSZDT
}
define service{
use generic-service ; Name of service template to use
host_name domates.karel.com.tr
service_description Current Load
check_command check_nrpe!check_load
!5.0,4.0,3.0!10.0,6.0,4.0
}
define service{
use generic-service ; Name of service template to use
host_name domates.karel.com.tr
service_description Swap Usage
check_command check_nrpe!check_swap
!20!10
}4) Your nagios.cfg should not need to be modified.
Make these changes and let us know how it works.