Andre, this strongly looks like a path-not-found error -- if you are running SEC with -nodetach, SEC is able to find the Java module, while with -detach this is no longer the case. Please note that with -detach option SEC changes it's work directory to /, so external programs with incorrect or missing absolute paths are not found anymore. hth, risto
Andre Gustavo Lomonaco wrote: > Hi guys, > > > > I´m trying to integrate SEC (Great Software, congratulations Risto > Vaarandi) with HP Service Desk. > > > > I want to open an incident when the Cisco Interface goes down and I want > to close the same incident when the interface comes up… > > > > I´m using SEC 2.4.2 in a Centos 5.2 Box and Omer Ben-Shalom Cisco Rules > (thanks too for sharing that). > > > > I only changed the action to use my java application: > > > > action=shellcmd /usr/local/java -cp > .:/usr/local/service/web-api.jar:/usr/local/service/ AbrirIncidenteSEC $1 $0 > > > > When I execute the sec.pl script with –nodetach option, everthing works > ok. I got the incidents created in HP Service Desk. > > > > But when I try to use sec.pl with –detach option, I got the following > error in my log file: > > > > Mon Jul 14 17:56:48 2008: Executing shell command '/usr/local/java -cp > .:/usr/local/service/web-api.jar:/usr/local/service/ AbrirIncidenteSEC > 192.168.254.2 Jul 14 17:56:48 192.168.254.2 76876: %LINEPROTO-5-UPDOWN: > Line protocol on Interface FastEthernet3/4, changed state to down' > > Mon Jul 14 17:56:48 2008: Child 4999 created for command > '/usr/local/java -cp > .:/usr/local/service/web-api.jar:/usr/local/service/ AbrirIncidenteSEC > 192.168.254.2 Jul 14 17:56:48 192.168.254.2 76876: %LINEPROTO-5-UPDOWN: > Line protocol on Interface FastEthernet3/4, changed state to down' > > Mon Jul 14 17:56:48 2008: Child 4999 terminated with non-zero exitcode 1 > ( /usr/local/java -cp > .:/usr/local/service/web-api.jar:/usr/local/service/ AbrirIncidenteSEC > 192.168.254.2 Jul 14 17:56:48 192.168.254.2 76876: %LINEPROTO-5-UPDOWN: > Line protocol on Interface FastEthernet3/4, changed state to down ) > > > > Any tip to resolve my problem? > > > > Thanks in Advanced, > > > > My Best Regards, > > > > Andre Lomonaco > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Simple-evcorr-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
