checking https

Hugo van der Kooij hvdkooij at vanderkooij.org
Mon Jul 14 07:14:36 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Jurgens wrote:
| If your check_http command is defined like:
| define command{
|         command_name    check_http
|         command_line    $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
| $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$
|         }

Seems rather cumbersome. Why not define an extra check command?

# 'check_https' command definition
define command{
~        command_name    check_https
~        command_line    $USER1$/check_http -H $HOSTADDRESS$ -S
~        }

Or even one to keep an eye out on the certificate:

# 'check_https_cert' command definition
define command{
~        command_name    check_https_cert
~        command_line    $USER1$/check_http -H $HOSTADDRESS$ -S -C 14
~        }

The last one I check only once an hour or once a day pe.r server

Never put things in a service definition if you are going to need them a
lot. Create the proper command definition to aid you.

Hugo.

- --
hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

	A: Yes.
	>Q: Are you sure?
	>>A: Because it reverses the logical flow of conversation.
	>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIeuC6BvzDRVjxmYERAiDWAJ4tVxBonKZmW6OHSYRtpTbQmG3rygCfexnG
xPhLkg6P8KD0tF76eQN+q4o=
=TLl8
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list