hi.. and thanks again..
yes in same directory as all objects.. i can see the new nodes listed there..
and yes, verified and restarted service..
yes i renamed the host, and any references to old host within it.. but not done anything further with commands etc. I want the nodes to be pretty much exactly the same regarding commands etc.
Objects created and contents of each:
edirlinux:/usr/local/nagios/etc/objects # ls -lart | grep webproxy
-rwxr-xr-x 1 root root 3038 Jul 8 12:04 webproxy1.cfg
-rwxr-xr-x 1 root root 3049 Jul 8 12:06 webproxy2.cfg
edirlinux:/usr/local/nagios/etc/objects #
edirlinux:/usr/local/nagios/etc/objects # more webproxy1.cfg
define host{
use generic-host ; Name of host template
to use
host_name webproxy1
alias Websense V10000 - webproxy1 (10.8.x.x)
address 10.8.x.x
check_command check-host-alive
process_perf_data 1
max_check_attempts 10
notification_interval 120
notification_period workhours
notification_options d,u,r
}
define service{
use generic-service
host_name webproxy1
service_description
http://WWW.GOOGLE.IE
is_volatile 0
check_period workhours
max_check_attempts 5
process_perf_data 1
normal_check_interval 1
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_google
}
define service{
use generic-service
host_name webproxy2
service_description
http://WWW.IRISHTIMES.COM
is_volatile 0
check_period workhours
max_check_attempts 5
normal_check_interval 1
retry_check_interval 1
process_perf_data 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_irishtimes
}
define service{
use generic-service
host_name webproxy2
service_description WEBSENSE POLICY SERVER: BLOCK WEBEMAIL
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
contact_groups admins
process_perf_data 1
notification_interval 30
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_webemail
}
define service{
use generic-service
host_name webproxy2
service_description WEBSENSE POLICY SERVER: ALLOW EDUCATION
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
process_perf_data 1
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_education
}
edirlinux:/usr/local/nagios/etc/objects # more webproxy2.cfg
define host{
use generic-host ; Name of host template
to use
host_name webproxy2
alias Websense V10000 - webproxy2 (10.8.x.x)
address 10.8.x.x
check_command check-host-alive
process_perf_data 1
max_check_attempts 10
notification_interval 120
notification_period workhours
notification_options d,u,r
}
define service{
use generic-service
host_name webproxy2
service_description
http://WWW.GOOGLE.IE
is_volatile 0
check_period workhours
max_check_attempts 5
process_perf_data 1
normal_check_interval 1
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_google
}
define service{
use generic-service
host_name webproxy2
service_description
http://WWW.IRISHTIMES.COM
is_volatile 0
check_period workhours
max_check_attempts 5
normal_check_interval 1
retry_check_interval 1
process_perf_data 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_irishtimes
}
define service{
use generic-service
host_name webproxy2
service_description WEBSENSE POLICY SERVER: BLOCK WEBEMAIL
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
contact_groups admins
process_perf_data 1
notification_interval 30
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_webemail
}
define service{
use generic-service
host_name webproxy2
service_description WEBSENSE POLICY SERVER: ALLOW EDUCATION
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
process_perf_data 1
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_education
}
edirlinux:/usr/local/nagios/etc/objects #
I get the following error in verification logs...
Error: Could not find any host matching 'webproxy2' (config file '/usr/local/nagios331/etc/objects/webproxy2.cfg', starting on line 64)
Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios331/etc/objects/webproxy2.cfg', starting on line 64)
Error processing object config files!