shortname enhancement
commitc128d293b015291c5e45637d9e3d5b1e1fb36c12
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 10 Mar 2010 06:54:06 +0000 (10 01:54 -0500)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Fri, 12 Mar 2010 13:09:11 +0000 (12 08:09 -0500)
tree4b406d48f9d21b59a2aa4600b6d52ac11b7da4fd
parent58a1764446e5a1a30db360ee7a69555d7f2e8f1a
shortname enhancement

This patch makes shortname use the defined plugin's name if set,
otherwise the normal method should prevail. To do so I had to
generate shortname during np initialization instead of at use time.
lib/Nagios/Plugin.pm
lib/Nagios/Plugin/Functions.pm
t/Nagios-Plugin-01.t