Nagios3 gives a warning on HTTP service monitoring
Solution 1
people. Many thanks for the help but I found the answer by myself before checking any of your answers, sorry!
To solve it I made a custom command in the commands.cfg file, like this:
define command{
command_name custom_check_http command_line $USER1$/check_http -H $HOSTNAME$ -I $HOSTADDRESS$
}
Not really sure about the purpose of $USER1$ but it crashes without it, with a 127 limit out of bonds error.
The host definitions were already correctly written with host_name and address (sorry for that lack of info!), simillar as the one that pQd wrote.
define host{
host_name SERVERNAME alias SERVERNAME_ALIAS address 192.168.1.52 ...
}
Finally the definition of the service at services_nagios2.cfg file just simple as the default ones:
define service {
hostgroup_name http-servers service_description Apache check_command custom_check_http use generic-service notification_interval 0 ; set > 0 if you want to be renotified
}
I hadnt' realized the use of variables $HOSTNAME$ and $HOSTADDRESS$ before asking this question. Thanks again for the help.
Solution 2
how do you define service in nagios?
it should be sth like this:
define command{
command_name my_check_http
command_line $USER1$/check_http -H$ARG1$ -I $HOSTADDRESS$
}
define host{
use generic-host
host_name something
alias something
address 192.168.1.52
# ...
}
define service{
use generic-service
host_name something
check_http_args!nameofvhost
# ...
}
Solution 3
Had the "same" problem on one of our web servers. And it appeared after an update on our website was done. they also changed the headers in the IIS and that´s why the error started to appear.
solution: changed the server name to the website name; "server name" to "site.com"
Related videos on Youtube
ali asad
Updated on September 17, 2022Comments
-
ali asad almost 2 years
I need to implement tabular input form in yii (by tabular I mean multiple models at same time)
as I have asked in this question
Is there any user interface available in yii framework for tabular data input?
But after searching internet I found ztabularinputmanager extension of yii as possible solution.
But I am unable to find any good documentation or implementation detail about this extension.
-
user3622502 about 14 yearsWe need to know how the check is acutally executed by nagios. Can you give is the full service and command objects in question in your configuration?
-