In a typical Host Definition, the host_name directive looks like this:
Code: Select all
host_name router-001; key 118981When there's a Nagios alert, the notification command_line runs a Perl script (passing several Nagios macros) to open a Metrix trouble ticket.
Core documentation says under Object Definitions: "Characters that appear after a semicolon in configuration lines are treated as comments and are not processed".
Yet in a check_command directive, the semicolon clearly separates the command from the arguments to be passed. That's my first question; those two things seem to contradict.
Second question: is the key number 118981 from the host_name directive somehow being passed in the same way as command arguments from the check_command directive are? I can't find any place in the documentation where it mentions this.
I've put Nagios into debug mode to show the processed notification command, and the inventory ID (118981) is nowhere to be found in the call to the Perl script. But if I don't include the 118981 in the host_name directive, no Metrix ticket gets generated, and /var/adm/messages says that the host is "unknown to Metrix".
I certainly don't expect any help on the Metrix XML gateway, but my third question is: how the heck could the 118981 be being passed if not in the notification command?
Thanks....Lyle