[Nagiosplug-help] basic check_httpd configuration
Ferrill, James
james.ferrill at NEXTIRAONE.COM
Fri Nov 12 11:47:11 CET 2004
Hey Tom,
Here's one way you can do it.
In checkcommands.cfg, put this command:
# 'check_http_port' command definition
define command{
command_name check_http_port
command_line $USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$
}
In services.cfg, define your service to check with the port specified on the check_command line:
# Generic web site - HTTP service check
define service{
use generic-service ; Name of service template to use
host_name hosttocheck
service_description Generic Website
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups contact-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_http_port!8080
}
That should get you running.
James Ferrill
NextiraOne LLC
-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf Of Tom
Grassia
Sent: Friday, November 12, 2004 12:29 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] basic check_httpd configuration
Hello,
I've worked with Nagios before (back when it was Netsaint) as an admin, but
I've never had to configure and set it up before. I've got the system
compiled and running, which is, you know good.
However....
For the life of me, I haven't been able to configure service checks outside
of the default ones. For example, check_http. I can't get it to check for
servers running on ports outside of port 80. Now I read -h and I can do it
from a command line (./check_http -h server -p 8080) but I can't set it up
in services.cfg and get it to run. I know I'm probably missing something
simple, but I can't for the life of me find it in the documentation. I
tried check_http!-h host-p8080 and so forth, but I'm just missing it. Can
anyone tell me what I'm doing wrong?
Thanks,
--Tom
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Help
mailing list