I have created an alert which runs an executable which interfaces to our Remedy ticketing system. I have created two trigger actions, one to execute a program, the other to write to the event log. The Event log action contains the exact same string as in the Execute Program action ... and is just to ensure that the variable substitution was working, etc.
Execute Program:
mbclient.exe nodb=true Priority=4 Short_Description=${NodeName} DOWN Details=${DateTime}: ${NodeName} down for over 15 minutes. SITE: ${City}. IP ADDRESS: ${IP_Address}. OOB #: ${OOB} Category=Other Type=Other Item=Other Group=Networks
NetPerfMon Event Log:
mbclient.exe nodb=true Priority=4 Short_Description=${NodeName} DOWN Details=${DateTime}: ${NodeName} down for over 15 minutes. SITE: ${City}. IP ADDRESS: ${IP_Address}. OOB #: ${OOB} Category=Other Type=Other Item=Other Group=Networks
The action is working for the event log when i do a test of the alert and I see the following in the event log:
mbclient.exe nodb=true Priority=4 Short_Description=aplbio-monzasg-1310043.pipngw.mci.com DOWN Details=Thursday, April 01, 2010 2:57 PM: aplbio-monzasg-1310043.pipngw.mci.com down for over 15 minutes. SITE: Monza. IP ADDRESS: 10.251.149.205. OOB #: Category=Other Type=Other Item=Other Group=Networks
However, I do not see the expected results from the program execution (i.e. a ticket is not created in our Remedy system).
I can copy the text from the event log and paste into a CLI window, though, and I *do* get the expected results, including positive creation of a ticket.
H:\>mbclient.exe nodb=true Priority=4 Short_Description=aplbio-monzasg-1310043.p<br />ipngw.mci.com DOWN Details=Thursday, April 01, 2010 2:57 PM: aplbio-monzasg-1310<br />043.pipngw.mci.com down for over 15 minutes. SITE: Monza. IP ADDRESS: 10.251.149<br />.205. OOB #: Category=Other Type=Other Item=Other Group=Networks
2010/04/01 14:58:39 Attempting to send: 21<br />2010/04/01 14:58:39 INFO: Starting WS Call<br />2010/04/01 14:58:45 INFO: Finished WS Call: [name=return] [type=class java.l<br/>ang.String] [value=0000429796] [encodingStyleURI=null]<br />2010/04/01 14:58:45 Transaction Sent: 21
Any ideas? Any way to verify that the command is in fact executing, verify output, etc?