-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/28/2014 9:03 AM, Michael Friedrich wrote:
> > Same as the already defined service, but with a different name, > and obviously a different value for the command macro. > > services["checkpgsql"] = { templates = [ "generic-service" ], > notifications[ "mail" ] = { ... } check_command = "check_nrpe", > macros = { command = "check_pgsql", } > I'm lost, so let's start over. This is what I have in the 'Postgres' Host object: 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", } }, services["checkpgsql"] = { templates = [ "generic-service" ], check_command = "check_nrpe", macros = { command = "check_pgsql", } }, macros = { address = "10.10.10.1", }, } As it's setup, this works in part. The 'check_load' section works just fine. I get the load average displayed. But, the check_pgsql plugin gives the error 'NRPE: 'check_pgsql' not defined'. I /think/ this is because the check_pgsql plugin requires not just the host address but also (at minimum) a username and password for the database. (I'm just checking the default 'template1' database for the time being.) The problem is I have NO CLUE where to put those additional parameters to be passed to the check_pgsql command. I've tried adding them to the CheckCommand 'check_nrpe' object in the macros section as well as just adding them to the 'command = "check_pgsql -l mhaney -p Password" line in the macro. Nothing seems to make any difference. Maybe I'm too thick to see it, or I'm over-thinking it. I don't know. - -- 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/ iQEcBAEBAgAGBQJS58uVAAoJEDgEuzPE0JQv60AIALopYXmt8OoIRWMFAx8iGHU+ fGC4GOPB8dw54ZPB5zrSDQQLdP38w2HBvsB+yjS0+H1cs1HKYlfUjJmTlqTmN6A1 MqZ4zVlmyOo3WRy7vqJA9ERgAt65T373xnUjnt4iEvG6Z7EGmn7WsUzkpwin6ojF 1E5QC+3fkPdmNvHP0/lm8t14RZ8aIEUVtfx4LKk+ql2GBiU3qlM1GVPOhtNIp83n xF1SCyJCt7J1iXY28oaiaix/OmUf5Xxo7rRLCPhriHLFRa9okH/PiqvEpsh1rvPC cP9VvR36VZ99j8IyGipVKvzUfl2i9/WVo/5gABgQRjz6QCdD93BlVHuTppHVbQU= =c7XW -----END PGP SIGNATURE----- _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users