Execute a script in Pentaho DI using an URL - pentaho

I am new to use this tool.
I am trying to load or execute a script in PHP (http:\.....\re_certification/re_certification.php) in Pentaho. I don't know what tool can I use to be able to do it.
Any idea or example?

Use the HTTP Client step, it will fetch an URL using parameters given - http://wiki.pentaho.com/display/EAI/HTTP+Client.
Do not forget that it needs to be triggered - use generate rows or any other input step before this.
There is also a sample at the
samples/transformations/HTTP Client - simple retrieval example.ktr

Related

Executing Pentaho transformation(ktr) using node js with Pentaho CE

I can able to successfully execute the .ktr files using browser and as well as using postman tool by using below url
http://localhost:8089/kettle/executeTrans/?trans=D:\Pentaho\ktr\MyJson_to_Database.ktr
But I want to automate the process and this ktr and it need to accept a json file as input(right now the json data is in side the ktr file itself). As I am using NodeJS to automate the ktr executing processing, I am trying to use wreck and post method to execute it(I am new to wreck), I am facing difficulties to identify the problem whether the error is due to wrek or kettle transformation itself
In the mean time I am trying to execute it without passing path as query string in url and instead I want to use it in body, I have searched google with no success so far.
EDIT 1
I am able to reach to the ktr file from NodeJS Microservice and now the challenge is to read the file path inside docker image.
Could you work storing the json data in a file, and modifying/adding the transformation to read the file and pass the information in the file?

How to create a Logic/Script for a Data Extension?

I always implement scripts into a Cloudpage or directly into a newsletter but I never created a script which will run by her own in a special interval. Would that be possible? Maybe every night?
There is a script activity that is available that allows you to do that. However, it's for Server-Side JavaScript opposed to AMPscript. Once you save the script in the script activity you can then add it to an automation just like any other activity and execute it at the required intervals.
The feature isn't typically on by default so you will likely need to request it to be enabled by support. You should then see it listed as an option with the other activities.

how would you retrieve cacti data remotely

I have a cacti instance that polls many servers. I have a different analytic platform where I need to get the data to this platfrom from cacti. Has anybody done something like this? Is it possible to retrieve cacti data remotely via web service calls or anything?
You could use the rrdtool dump data. Find where cacti stores the rrd files. Usually something like /var/lib/cacti/rra or /usr/share/cacti/rra
For each graph there should be a graph_name.rrd. Use rrdtool dump command to convert these into XML files which can be parsed and sent to your other program?
rrdtool dump graph_name.rrd
Please verify that the correct datasource is created as well as there is no mistakes when creating the graph template. You can also use a debug function at the top of the graph that tells you if it found the rd database or not.

Can i export a jmeter test as a script?

I am trying to build a test framework for front end and back end services. One of the test I want to do is if a certain webpage loads well. I have made a simple test in jmeter, and now my question is: Can i export a script that will run this test on command without having to manually open jmeter?
The idea is that i will be able to go on a webpage and see the results from there. But also i want to be able to run the test when i want to remotely (obviously the back end server will trigger the script on http request)..
So is it possible to export a jmeter test script? if not, is there another tool that can do this?
Thanks in advance!
EDIT:
Ok, i think i found what i was looking for.. and in case anyone else needs something like this check out this link: http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
Yes, as soon as you have saved your test, you can start JMeter in many different ways - from Ant, from Maven, through a shell script, from continuous integration servers and so on.

Shell Scripting and Intersystems Cache: Extracting Information?

I would like to be able to execute a script to draw out the current cache process information. Has anybody done much scripting with cache? Is there an easier way to basically log the process information? The end result of this is I would like to present this information in a way that I could log it into Splunk
You try to solve an easy problem using the hard way. Just use the built-in SNMP provider.
The documentation for Cache 2008.2.6 contains a document Monitoring Cache Using SNMP.