On 27.01.2014 20:29, Mark Haney wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This might be a stupid question, but I'm looking for the proper method
of checking more than one service for a host. In this case I want to
check the load (using NRPE) as well as check the PostgresQL DB on a
particular server. Because the check_pgsql plugin requires different
information do I need to specify those via macros in a separate
command or service definition?
Also, how do I add that service check to the existing host config file
I already have? Just add it in:
object Host "PostgresQL" inherits "linux-server" {
display_name = "PostgresQL Server",
services["checkload"] = {
templates = [ "generic-service" ],
notifications[ "mail" ] = {
templates = [ "mail-notification" ],
notification_command = "mail-service-notification",
users = [ "mhaney" ],
},
check_command = "check_nrpe",
macros = {
command = "check_load",
}
/** ADD NEW services["checkpgsql"] HERE? */
},
try it. it's an array of inline services. the best example is provided
in localhost.conf
I'm trying to get this as organized as I can now so I don't have to
re-do it later. Does this make sense?
- --
Mark Haney
Network Administrator/IT Support
Practichem
W:919-714-8428
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJS5rOLAAoJEDgEuzPE0JQvbFAH/2BawvgIL+mwlyif4DptaXwa
UZc1ElfPmcGt2Cb25gDMKzTukLonSOfqoTYQ20eJ3M9JjQjua5zUAb5qgkfwvXeI
EIBeZJ1BW7n00NOhL/x905GlqA73ZOeq2sTTgn/3DTVRJ85Vg4V64IZI8/XfQpLg
9tAalX/PFI+yyOf6+En9ZCsZndNxkoJ6w6E1tfpo1i8yC/jVr0hXAcQqhUH+MV70
wIes7xJaxkcYg/8q1iu4mQ3HXe3kssGnUMBFFwJjSooCQqJwAvqv1YKhQlu4zw/5
a6Kz+vCM8LVbCzthashSQXLt9y7ZMAzDa1g98olLKzEU74fIQ/h7L3l7jC2zLiE=
=eoLK
-----END PGP SIGNATURE-----
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
--
DI (FH) Michael Friedrich
mail: michael.friedr...@gmail.com
twitter: https://twitter.com/dnsmichi
jabber: dnsmi...@jabber.ccc.de
irc: irc.freenode.net/icinga dnsmichi
icinga open source monitoring
position: lead core developer
url: https://www.icinga.org
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users