Nagios | Return code of 255 is out of bounds
Posted: Sun Apr 03, 2016 12:47 am
I am using Nagios for our monitoring system. Recently added plugin check_url.pl to check site availability with http response codes. Plugin is working fine but it frequently reporting an invalid response code of 255. Below is the exact message displayed on dashboard and it is disappearing automatically. It looks like some attempt is failing or getting invalid response code.
SERVICE ALERT: MAINSite ;Main site URL Check;CRITICAL;SOFT;1;(Return code of 255 is out of bounds
Here is my configuration details.
Defined command like below.
define command{
command_name url_check
command_line $USER1$/check_url.pl $ARG1$
}
Here is host configuration
define host{
use linux-server ; Inherit default values from a template
host_name MAINSite ; The name we're giving to this host
alias MAINSite ; A longer name associated with the host
address abcblabla.com ; IP address of the host
check_command check_tcp!80
}
define service{
use frequent-service
host_name MAINSite
service_description Main site URL Check
check_command url_check!abcblabla.com
}
Kindly share your thoughts/experience over this.
Attached screen shot for one event.
Thanks,
Abdul
SERVICE ALERT: MAINSite ;Main site URL Check;CRITICAL;SOFT;1;(Return code of 255 is out of bounds
Here is my configuration details.
Defined command like below.
define command{
command_name url_check
command_line $USER1$/check_url.pl $ARG1$
}
Here is host configuration
define host{
use linux-server ; Inherit default values from a template
host_name MAINSite ; The name we're giving to this host
alias MAINSite ; A longer name associated with the host
address abcblabla.com ; IP address of the host
check_command check_tcp!80
}
define service{
use frequent-service
host_name MAINSite
service_description Main site URL Check
check_command url_check!abcblabla.com
}
Kindly share your thoughts/experience over this.
Attached screen shot for one event.
Thanks,
Abdul