Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
Last edited by vadoodc; 03-29-2016 at 11:48 PM.
Reason: Attachment
I'm not so impressed with that script, as you can't pass many things in as arguments. Ie - timeout, or whether it should be using --no-check-certificates for wget which its doing by default ...
I haven't used nagios in a coupld years, but I would probably use the built in check_url which would be much more widely used, and more likely more robust.
As I posted above, looking at the code, it looks like 255 means its running into a timeout.
I would, however, recommend not using that check and using the builtin 'check_url' check instead as it looks more robust, and provides better options like setting the timeout different per check.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.