When trying to use the sample_alarm_parser.pl script to send alarms from Foglight to a third party system (e.g. CA Unicenter) the following error is seen when trying to run the script from the command line:
"Undefined subroutine &main::XMLin called at sample_alarm_parser.pl"
This is usually indicates that the Perl script cannot locate the XML::Simple.pl module which contains this function.
- Extract the perl-xml-modules.tgz from the integration-samples.zip
- Unzip and untar perl-xml-modules.tgz to a directory on the FMS host , e.g. /usr/local/lib/perl. The module will be untarred to a subdirectory called XML.
- Uncomment the following line in sample_alarm_parser.pl:
#use lib '/tmp/perlLibs';
and change tmp/perlLibs to the directory where you extracted the modules. Using the same example as above this would be:
use lib '/usr/local/lib/perl';
Obviously change this to the directory you used.