[Nagiosplug-help] basic check_httpd configuration
james.ferrill at NEXTIRAONE.COM
Fri Nov 12 11:47:11 CET 2004
Here's one way you can do it.
In checkcommands.cfg, put this command:
# 'check_http_port' command definition
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
use generic-service ; Name of service template to use
service_description Generic Website
That should get you running.
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf Of Tom
Sent: Friday, November 12, 2004 12:29 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] basic check_httpd configuration
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.
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?
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.
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
::: 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