[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-install
Subject:    Re: [opennms-install] Problem with send-event.pl
From:       Tarus BALOG <tarus () opennms ! org>
Date:       2014-01-09 23:18:11
Message-ID: 52CF2E33.80308 () opennms ! org
[Download RAW message or body]

On 01/09/2014 01:44 PM, Ivà Martí wrote:
> Hi,
> 
> I'm trying to add a service on one node with the event
> uei.opennms.org/internal/capsd/updateService
> <http://uei.opennms.org/internal/capsd/updateService>, but when i check
> the event sent to web-console UI the action doesn't have any value.
> (atachement evenDetail.png)
> 
> This is the command that i use to add service:
> 
> send-event.pl <http://send-event.pl>
> uei.opennms.org/internal/capsd/updateService
> <http://uei.opennms.org/internal/capsd/updateService> localhost --nodeid
> 2377 --interface 10.31.75.109 --service HTTP-8980-IMS --parm 'action ADD'
> 
> And this is the xml generated:
> 
> - sending to localhost on port 5817...
> <log>
>  <events>
>   <event >
>    <uei>uei.opennms.org/internal/capsd/updateService
> <http://uei.opennms.org/internal/capsd/updateService></uei>
>    <source>perl_send_event</source>
>    <nodeid>2377</nodeid>
>    <time>Thursday, 9 January 2014 18:34:36 o'clock GMT</time>
>    <host>xoc1-dev</host>
>    <interface>10.31.75.109</interface>
>    <service>HTTP-8980-IMS</service>
>    <parms>
>     <parm>
>      <parmName><![CDATA[action]]></parmName>
>      <value type="string" encoding="text"><![CDATA[ADD]]></value>
>     </parm>
>    </parms>
>   </event>
>  </events>
> </log>
> 
> Any idea ?

All the updateService and updateServer events do is add entries to the
ServiceMap and ServerMap tables. This allows you to filter on those
table for use in packages.

I would suggest using foreign sources under the provisioning system to
add services to nodes.

-T

-- 
Tarus BALOG, Maintainer                     Main:   +1 919 533 0160
The OpenNMS Group, Inc.                     Fax:    +1 773 345 3645
Email: tarus@opennms.org                    URL: http://www.opennms.org
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic