[xymon] Xymon Integration with Remedy Ticketing system
Kai Kulicke
kai.kulicke at gmx.net
Mon Aug 30 14:43:58 CEST 2010
It works quite well with a external page alert script using the Mechanize
perl module to submit a ticket via the web frontend
with that you can limit for what a ticket should be raised in the
hobbit-alerts.cfg
HOST=foo SERVICE=conn,disk,meta,prtdiag
SCRIPT /xymon/server/ext/page_alert/ticket.pl admins REPEAT=365d
COLOR=yellow,red FORMAT=PLAIN
my $agent = WWW::Mechanize->new();
$agent->get("http://bmc remedy ticket web form");
$agent -> field("Customer", "XYMONAPI");
$agent -> field("Subject", "BMSEIT XYMON: $BBCOLORLEVEL " . " $BBSVCNAME " .
" $BBHOSTNAME " );
$agent -> field("InitialDescription", "$htmldata");
$agent -> field("host", "$BBHOSTNAME\n");
$agent -> field("ip", "$MACHIP\n");
$agent -> field("service", "$BBSVCNAME\n");
# submit the ticket
$agent -> click('SUBMIT1');
my $ticket;
# get the result of the submit
my $result = $agent ->content;
# check if ticket was submitted
if ($result =~ m{Ticket Submission Successful}) {
# get ticket number
if ($result =~ m{Your ticket number for this request is
<B>(INC\d+).</B>}) {
$ticket = $1;
}
}
else {
print " ERROR: $result\n";
}
#log ticket in page.log
print " created:$ticket \n";
# acknowledge alert for 365 days with ticket information
`$BB $BBPAGE "hobbitdack ${ACKCODE} 525600 ${ticket}"`;
regards
kai
From: Minaz Khalife [mailto:Minaz.Khalife at neotel.co.za]
Sent: Friday, August 27, 2010 11:36 AM
To: xymon at xymon.com
Subject: [xymon] Xymon Integration with Remedy Ticketing system
Dear All,
Has anybody integrated Remedy (Ticketing System) with Xymon.?
Is it possible ?
Any suggestions/inputs are much appreciated.
Regards,
Minaz
Click here to read the Neotel electronic communications disclaimer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100830/1fef0625/attachment.html>
More information about the Xymon
mailing list