Search found 11 matches

by cpuguy83
30 Aug 2012, 17:00
Forum: General
Topic: Nagios Acknowledgment not working
Replies: 3
Views: 1622

Re: Nagios Acknowledgment not working

I had a similar issue, and it was due to me not using the default regex for finding hosts/services.
The way I fixed it was by looking at the Nagios logs to see what was coming into the command interface vs what happens when I went through the Nagios UI directly and tweaked accordingly.
by cpuguy83
10 Oct 2011, 15:01
Forum: Developers
Topic: Why xml_storage?
Replies: 2
Views: 1424

Re: Why xml_storage?

But wouldn't you just write a converter to go from a relational table structure to XML?
by cpuguy83
07 Oct 2011, 22:27
Forum: Developers
Topic: Why xml_storage?
Replies: 2
Views: 1424

Why xml_storage?

After spending more time than I'd like writing code to script changes to xml_storage versions for ConfigItems... including reading from and writing to... taking input as something human readable/writeable and making the output human readable.... I have to ask, why xml_storage for custom fields/versi...
by cpuguy83
30 Sep 2011, 16:57
Forum: Developers
Topic: ITSM No SCALAR param in Bind!
Replies: 4
Views: 3365

Re: ITSM No SCALAR param in Bind!

Going through more code, I have found this is fairly benign as long as none of my records are over 4K in size. Essentially Bind is a method to insert into the database. XMLHashAdd is looking for the Bind param and attempting to insert with that. For me this is failing because I'm missing something i...
by cpuguy83
30 Sep 2011, 16:37
Forum: Developers
Topic: ITSM No SCALAR param in Bind!
Replies: 4
Views: 3365

Re: ITSM No SCALAR param in Bind!

Seems like I'm missing something from my array but I'm not sure what.
Wondering if I'm getting this because this is being converted from a Ruby array into JSON then to Perl.

Anyone know what this Bind object is for? Is it wise to proceed with this error?
by cpuguy83
30 Sep 2011, 16:34
Forum: Developers
Topic: ITSM No SCALAR param in Bind!
Replies: 4
Views: 3365

Re: ITSM No SCALAR param in Bind!

Obviously this is coming from the XMLHashAdd method. Specifically when it sends it to the db: $Self->{DBObject}->Do( SQL => 'INSERT INTO xml_storage (xml_type, xml_key, xml_content_key, xml_content_value) VALUES (?, ?, ?, ?)', Bind => [ \$TmpKey, \$Param{Key}, \$Key, \$ValueHASH{$Key}, ], ); } Code ...
by cpuguy83
30 Sep 2011, 15:06
Forum: Patches / Modules
Topic: Rails API connector
Replies: 5
Views: 57347

Re: Rails API connector

Added support for services, create/update methods for CI's + xml_storage stuff, several other items.
by cpuguy83
30 Sep 2011, 00:57
Forum: Developers
Topic: ITSM: get type of config item
Replies: 1
Views: 1200

Re: ITSM: get type of config item

Not sure what you mean by type. If Type is a field in your CI definition then the only place to get it is from the xml_storage table. Links work as follows: config_item.id = configitem_version.config_item_id configitem_version.id = xml_storage.xml_key In xml_storage you should look at the xml_conten...
by cpuguy83
30 Sep 2011, 00:17
Forum: Developers
Topic: ITSM No SCALAR param in Bind!
Replies: 4
Views: 3365

ITSM No SCALAR param in Bind!

I'm getting the following error/trace in my logs when creating a new XML version via the API. Here is the XML data I am sending: [nil, {"Version"=> "State"=>[nil, {"Content"=>"NY"}], "TimeZone"=>[nil, {"Content"=>""}], "Union...
by cpuguy83
16 Sep 2011, 16:08
Forum: Patches / Modules
Topic: Rails API connector
Replies: 5
Views: 57347

Re: Rails API connector

I'm not 100% sure, I believe the iPhone module provides that json.pl file in OTRS_ROOT/bin/cgi-bin/json.pl, but again I'm not sure. This is what I'm interfacing with. I have added new code to this file and will publish it in the lib directory of the rails app for people to access. It will have to be...
by cpuguy83
15 Sep 2011, 23:57
Forum: Patches / Modules
Topic: Rails API connector
Replies: 5
Views: 57347

Rails API connector

I have begun work on a RoR app that maps Rails RESTFul controllers to OTRS/ITSM API via the OTRS json interface. Relies heavily on ActiveModel and I am trying to make the methods look/feel like you are using full ActiveRecord. I have modified the supplied json.pl (I believe this is bundled as part o...