shoekstra on use_nginx
tas50 on master
Depend on nginx instead of chef… Use nginx >= 7.0 Merge pull request #552 from so… (compare)
shoekstra on use_nginx
Use nginx >= 7.0 (compare)
shoekstra on use_nginx
Depend on nginx instead of chef… (compare)
shoekstra on release_8.0.0
Release 8.0.0 (compare)
shoekstra on use_nginx
Depend on nginx instead of chef… (compare)
require 'pry';binding.pry
you should be able to look at all the objects within the memory when you dump Nagios.instance.contacts for example.
- update content in file /etc/nagios/conf.d/templates.cfg from 63f798 to 8cba53
--- /etc/nagios/conf.d/templates.cfg 2015-11-16 10:39:36.261057411 -0500
+++ /tmp/chef-rendered-template20151116-26917-wtvl6i 2015-11-16 10:40:00.724595242 -0500
@@ -516,5 +516,18 @@
register 0
}
+define service {
+ name wefwefwef-service
+ service_description wefwefwef-service
+ check_command wefwefwef-service
+ active_checks_enabled 1
+ passive_checks_enabled 1
+ obsess_over_service 1
+ check_freshness 0
+ event_handler_enabled 1
+ notifications_enabled 1
+ parallelize_check 1
+ register 0
+}
register
as 0
for service defintion in nagios, we only do that for templates in best world of nagios implementation
Guys, another question, sorry if it is a stupid one.
I have nagios config file with about 100 definitions for services. It looks like:
define service{
use fine-vone-service
host_name fine-services-web
service_description API authenticaion for 192.168.220.244
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 10
retry_check_interval 2
notification_interval 20
notification_period 24x7
check_command check_fine_login!192.168.220.244
}
define service{
use fiine-vone-service
host_name fine-services-web
service_description API authentication for 192.168.220.245
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 10
retry_check_interval 2
notification_interval 20
notification_period 24x7
check_command check_fine_login!192.168.220.245
}
I've already prepared them for nagios_service definitions, by converting into hashes. From the link above, service should be defined like:
nagios_service 'default-service' do
What I should pass into nagios_service instead of 'default-service' ?
As you can see I do not have names in my current nagios configs.
Thanks!
nagios_service "bla" do
within a recipe, sets bla as the service_description in the object..