<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=355301812-22022005>I am a
novice but I have found that the libexec directory of nagios contains the check
commands. Simply execute the command with --help appeneded and the usage
information is displayed.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=355301812-22022005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=355301812-22022005>I also
noticed that the way you were showing the command was the way it is expressed in
the services.cfg file. This is an alias to the actual command. The
actual command that is used can be found in the checkcommand.cfg file. You
will have to cross reference between that and the information obtained from the
command line to determine what is really going on. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2># pwd<BR>/<SPAN
class=355301812-22022005>xxxxxx</SPAN>/<SPAN
class=355301812-22022005>xxxxxxx</SPAN>/nagios/libexec<BR>#
ls<BR>check_breeze
check_icmp
check_nntp
check_ssh<BR>check_by_ssh
check_ifoperstatus
check_nt
check_swap<BR>check_dhcp
check_ifstatus
check_ntp
check_tcp<BR>check_dig
check_imap
check_nwstat
check_time<BR>check_disk
check_ircd
check_oracle
check_udp<BR>check_disk_smb
check_ldap
check_overcr
check_udp2<BR>check_dns
check_ldaps
check_ping
check_ups<BR>check_dummy
check_load
check_pop
check_users<BR>check_file_age
check_log
check_procs
check_wave<BR>check_flexlm
check_mailq
check_real
negate<BR>check_fping
check_mrtg
check_rpc
urlize<BR>check_ftp
check_mrtgtraf
check_sensors
utils.pm<BR>check_hpjd
check_mysql
check_smtp
utils.sh<BR>check_http
check_nagios check_snmp<BR>#
./check_http --help<BR>check_http (nagios-plugins 1.4) 1.81<BR>Copyright (c)
1999 Ethan Galstad <</FONT><A href="mailto:nagios@nagios.org"><FONT
face=Arial size=2>nagios@nagios.org</FONT></A><FONT face=Arial color=#0000ff
size=2>><BR>Copyright (c) 1999-2004 Nagios Plugin Development
Team<BR> <</FONT><A
href="mailto:nagiosplug-devel@lists.sourceforge.net"><FONT face=Arial
size=2>nagiosplug-devel@lists.sourceforge.net</FONT></A><FONT face=Arial
color=#0000ff size=2>></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>This plugin tests the HTTP service on
the specified host. It can test<BR>normal (http) and secure (https) servers,
follow redirects, search for<BR>strings and regular expressions, check
connection times, and report on<BR>certificate expiration times.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Usage: check_http -H <vhost> |
-I <IP-address> [-u <uri>] [-p
<port>]<BR>
[-w <warn time>] [-c <critical time>] [-t <timeout>]
[-L]<BR>
[-a auth] [-f <ok | warn | critcal | follow>] [-e
<expect>]<BR>
[-s string] [-l] [-r <regex> | -R <case-insensitive
regex>]<BR>
[-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6]
[-N]<BR>
[-M <age>] [-A string] [-k string]<BR>NOTE: One or both of -H and -I must
be specified</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Options:<BR> -h,
--help<BR> Print detailed help screen<BR> -V,
--version<BR> Print version information<BR> -H,
--hostname=ADDRESS<BR> Host name argument for servers using
host headers (virtual host)<BR> Append a port to include it in
the header (eg: example.com:5000)<BR> -I,
--IP-address=ADDRESS<BR> IP address or name (use numeric address if
possible to bypass DNS lookup).<BR> -p, --port=INTEGER<BR> Port
number (default: 80)<BR> -4, --use-ipv4<BR> Use IPv4
connection<BR> -6, --use-ipv6<BR> Use IPv6
connection<BR> -e, --expect=STRING<BR> String to expect in
first (status) line of server response (default: HTTP/1.)<BR> If
specified skips all other status line logic (ex: 3xx, 4xx, 5xx
processing)<BR> -s, --string=STRING<BR> String to expect in the
content<BR> -u, --url=PATH<BR> URL to GET or POST (default:
/)<BR> -P, --post=STRING<BR> URL encoded http POST
data<BR> -N, --no-body<BR> Don't wait for document body: stop
reading after headers.<BR> (Note that this still does an HTTP GET or
POST, not a HEAD.)<BR> -M, --max-age=SECONDS<BR> Warn if
document is more than SECONDS old. the number can also be of<BR> the
form "10m" for minutes, "10h" for hours, or "10d" for days.<BR> -T,
--content-type=STRING<BR> specify Content-Type header media type
when POSTing<BR> -l, --linespan<BR> Allow regex to span
newlines (must precede -r or -R)<BR> -r, --regex,
--ereg=STRING<BR> Search page for regex STRING<BR> -R,
--eregi=STRING<BR> Search page for case-insensitive regex
STRING<BR> -a, --authorization=AUTH_PAIR<BR> Username:password
on sites with basic authentication<BR> -A,
--useragent=STRING<BR> String to be sent in http header as "User
Agent"<BR> -k, --header=STRING<BR> Any other tags to be sent in
http header, separated by semicolon<BR> -L, --link=URL<BR> Wrap
output in HTML link (obsoleted by urlize)<BR> -f,
--onredirect=<ok|warning|critical|follow><BR> How to handle
redirected pages<BR> -m, --pagesize=INTEGER<:INTEGER><BR>
Minimum page size required (bytes) : Maximum page size required
(bytes)<BR> -w, --warning=DOUBLE<BR> Response time to
result in warning status (seconds)<BR> -c,
--critical=DOUBLE<BR> Response time to result in critical
status (seconds)<BR> -t, --timeout=INTEGER<BR> Seconds
before connection times out (default: 10)<BR> -v,
--verbose<BR> Show details for command-line debugging (Nagios
may truncate output)<BR>This plugin will attempt to open an HTTP connection with
the host. Successful<BR>connects return STATE_OK, refusals and timeouts return
STATE_CRITICAL, other<BR>errors return STATE_UNKNOWN. Successful connects,
but incorrect reponse<BR>messages from the host result in STATE_WARNING return
values. If you are<BR>checking a virtual server that uses 'host headers'
you must supply the FQDN<BR>(fully qualified domain name) as the [host_name]
argument.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Send email to <A
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
if you have questions<BR>regarding use of this software. To submit patches or
suggest improvements,<BR>send email to <A
href="mailto:nagiosplug-devel@lists.sourceforge.net">nagiosplug-devel@lists.sourceforge.net</A><BR>#<BR></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net] <B>On Behalf Of
</B>eugene<BR><B>Sent:</B> Tuesday, February 22, 2005 4:52 AM<BR><B>To:</B>
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> [Nagiosplug-help]
Nagios plugin Usage<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi Sir/Madam,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can i know how to use plugins which needed
in "check_command" in "services.cfg"? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>For check_ping, i follow the given sample config
which use </FONT><FONT face=Arial size=2>"check_ping!100.0,20%!500.0,60%" and
it works well.</FONT></DIV>
<DIV><FONT face=Arial size=2>For the others plugin I just use
"check_http", "check_pop", "check_ftp", "check_smtp" </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Must we add some config at the behind of the
plugin command? Example as below</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV><FONT face=Arial size=2>check_ping!100.0,20%!500.0,60%</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Currently i am still finding out the way to use
plugin. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank You...</FONT></DIV></FONT></DIV>
<DIV><FONT face="Trebuchet MS" color=#000080 size=2><BR><STRONG><FONT
size=4>Eugene Than </FONT><BR><FONT size=2>HelpDesk Support, Network and
System</FONT><BR><FONT size=3>MNC Wireless Berhad</FONT> <FONT
size=1>(635884-T)</FONT><BR>No. 45, Block A, Level 3, Unit 3.03,<BR>Medan
Setia 1, Plaza Damansara,<BR>Bukit Damansara, 50490 Kuala Lumpur<BR><BR>M:
+6012-613 4855 <BR>T: +603-2095 6063<BR>F: +603-2093 5909<BR>E: <A
href="mailto:eugene@mnc.com.my">eugene@mnc.com.my</A><BR>W: <A
href="http://www.mnc.com.my">www.mnc.com.my</A><BR>Mobile Portal: <A
href="http://www.gospecial.com">www.gospecial.com</A><BR></STRONG>
<HR color=#000099 noShade>
<FONT size=1>This email is intended only for the use of the individual or
entity named above and may contain information that is confidential and/or
privileged. If you are not the intended recipient, you are hereby notified
that any review, retransmission, dissemination, distribution, copying of, or
other use of, or taking of any action in reliance upon this email is strictly
prohibited. When addressed to our clients, any opinions or advice contained in
this email are subject to the terms and conditions expressed in the governing
MNC client engagement letter. If you have received this email in error, please
notify us immediately by return email or telephone +603-2095 6063 and destroy
the original message. Thank you. </FONT></FONT></DIV></BLOCKQUOTE></BODY></HTML>