Cheers guys... seems to have worked for the most part.
Copied original file, and used VI to edit the file contents. The object seems to be responding to PING ok, see below. But failing all checks. I also dont see any attempts to monitor hitting my firewall logs, which i do see for the original device i copied.
Is there some other settings, IP addresses etc i need to ammend also??
Host State Information
Host Status: UP (for 0d 0h 2m 42s)
Status Information: PING OK - Packet loss = 0%, RTA = 1.19 ms
Performance Data: rta=1.194000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
Current Attempt: 1/10 (SOFT state)
Last Check Time: 06-18-2014 13:02:45
Check Type: ACTIVE
Check Latency / Duration: 0.213 / 4.032 seconds
Next Scheduled Active Check: 06-18-2014 13:07:55
Last State Change: 06-18-2014 13:02:55
Last Notification: N/A (notification 0)
Is This Host Flapping? NO (11.71% state change)
In Scheduled Downtime? NO
Last Update: 06-18-2014 13:05:35 ( 0d 0h 0m 2s ago)
This is my new host. Basically just edited out anywhere which mentioned previous object and put in new object / hostname.
edirlinux:/usr/local/nagios/etc/objects # more webproxy2.cfg
define host{
use generic-host ; Name of host template to use
host_name webproxy2
alias Proxy - webproxy2 (10.10.10.12 / 10.10.10.13)
address webproxy2
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 #
Host Service Status Last Check Duration Attempt Status Information
webproxy2
WEBSENSE POLICY SERVER: ALLOW EDUCATION
CRITICAL 06-18-2014 13:15:39 0d 1h 10m 52s 3/3 CRITICAL - Socket timeout after 10 seconds
WEBSENSE POLICY SERVER: BLOCK WEBEMAIL
CRITICAL 06-18-2014 13:15:39 0d 1h 11m 32s 3/3 CRITICAL - Socket timeout after 10 seconds
WWW.GOOGLE.IE
CRITICAL 06-18-2014 13:15:39 0d 1h 11m 11s 5/5 CRITICAL - Socket timeout after 10 seconds
WWW.IRISHTIMES.COM
CRITICAL 06-18-2014 13:15:39 0d 1h 10m 51s 5/5 CRITICAL - Socket timeout after 10 seconds