From: Frater, G. J <GJF...@be...> - 2009-09-24 17:05:13
|
> >Let me reask my question in a different way, maybe I can say it better. >I would like to get a particular service check using the generic "check_multi" plugin to use a special template. My understanding is that to do that I need a custom template. To point this unique instance of the >"check_multi" plugin to the special template I have tried to use a custom template setting of >"CUSTOM_TEMPLATE = 1" in a config file located here >"/usr/local/nagios/etc/pnp/check_commands/check_multi.cfg" >to uniquely identify the service check for a special template based on the first argument ($ARG1$) of the service check but all I am getting in the xml file is "<TEMPLATE></TEMPLATE>". My understanding of the custom >template setting is that it will read the $ARG1$ value of the service check and look for a template with that >name. Thus I would expect the xml file to read "<TEMPLATE>value for $ARG1$</TEMPLATE>". This last part is not happening. Am I understanding how this works wrong? My problem seems to lie in the custom template area >not the special template part (that's a whole other challenge for me but I'm not there yet). What do you suggest? > > When using the "check_multi" plugin and setting it with a reporting option "-r +32" PNP seems to always treat it as a "check_multi" plugin. I had tried to get away from this by making a copy of the "check_multi" plugin and calling it something else altogether but as long as you are setting it with the "-r +32" reporting value PNP handles the output as coming from "check_multi". Unless you set a "check_multi" custom template value then you get a blank value in the TEMPLATE tag of the xml files. Changing the reporting value to the standard perfdata format of "-r +8" in check_multi allows me to specify a template based on the name of the service check, in my case "check_multi_memory". I think I got this worked out, now we'll see how I do with creating custom graphs...thanks for the help -greg |