Documentation of Custom Agents in development

Are there documents specifically on the creation of custom agents and/or by creating the data model to host the data for these agents?  I understand that you can write about any script that collects data, but I don't understand how to set the data model for use with the script or if there are other common considerations that must be made during the development of the custom agents.

There is a specific data model guide for Foglight, which includes a tutorial for adding new models.

It is available online here: Guide of Foglight data model, or here on the Support Portal in PDF format: PDF data model Guide.

For custom script agents, first read the Administration guide: Building Script Agents.

Hope this helps,

Shay

SR. Technical Writer for Foglight

Tags: Dell Tech

Similar Questions

  • Custom agent - a power setting

    Allright, I have looked around and have not been able to find what I'm looking for custom agent documentation.  I have a custom agent script that I want to make it dynamic and re-usable by being able to pass a parameter.  The hope was so that I could deploy several custom agent in which each agent could pass the parameter to get their individual settings. Looks a lot like a logfilter agent where you create several people using the same agent, but feed you to the location of the logs that you want to crawl through the agent.  Similarly, I want to be able to feed my script parameter.

    Second, when you look at a custom property agent I see "cmdLine" property  Can someone explain the purpose of this property and how it is used?

    Considering how rarely you change settings as you describe, you can more easily deploy a simple configuration file to the location of the agent and set your configuration in the file.  The prototype config file could be included in the zip file you supply the agent script generator, and then be found and modified after the agent is deployed.  It is the process, I used for various agents of PowerShell script, but might work just about any language.

    Another approach would be to create a central configuration file and all have the script agents refers to the central location to get the configuration information as required.

    Given how limiting the F4 data structure is, there is not much point in getting more complex until a new script agent mechanism, possibly with a future platform F6.

  • Beginner with custom Agents

    Just read a few posts on Custom Agents and got all excited!

    I need to be able to monitor a specific folder and count the number of files with it.

    If I have used a script like

    strComputer = "."
    Set objWMIService = GetObject ("winmgmts: \"& strComputer & "\root\cimv2" ")

    Set colFiles = objWMIService.ExecQuery ("ASSOCIATORS OF {Win32_Directory.Name = 'c:\temp'} where" & "ResultClass = CIM_DataFile")

    WScript.Echo "TABLE MXQueue.
    WScript.Echo "START_SAMPLE_PERIOD."
    Set objWMIService = GetObject ("winmgmts: \"& strComputer & "\root\cimv2" ")
    Set colItems = objWMIService.ExecQuery ("Select * from Win32_ComputerSystem")

    For each objItem in colItems
    WScript.Echo "Host.String.id ="& objItem.Name.
    Next

    WScript.Echo "Mxqueue_File_Count ="& colFiles.count. "
    WScript.Echo "END_SAMPLE_PERIOD."
    WScript.Echo "END_TABLE.

    As a custom agent that would do the trick? the above works well on a command prompt when I run cscript...

    Hi Mike,.

    You will not be able to download this script on its own, because the agent script needs a file to run.

    What you need to do is to create a CountScript.bat file that runs "cscript count2.vbs".

    Then you zip CountScript.bat and count2.vbs in a ZIP file named CountScript.zip and CountScript.zip in the generator to deploy Script Foglight Agent.

    When this agent is deployed and created, CountScript.zip will be extracted on the target host.

    When you enable this agent, CountScript.bat will run and generate the named parameters.

    Please find a way to remove the 'Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. "lines as the script will attempt to interpret these lines and generate errors.

    Kind regards

    Brian Wheeldon

  • View the contents of the table on Custom Agent

    Hello

    I would like to create a dashboard with a table showing the ten entries with free low % of a custom agent that I wrote.

    The agent is when extracting data on data warehouses and each data storage capacity, % free and used. (this is temporary until we get approval from vFoglight)

    From what I see the agent is storing data as below

    • Agent_Name

      • tables
      • datastore_name
        • capacity
        • % free
        • used

    Is it possible to get a picture to view it as the below?

    Name of the data store % Free Used
    Datastore_3 10% 1.2 to
    Datastore_1 30% 800 GB
    Datastore_5 50% 500 GB
    ....

    Thank you much for the help

    Using WCF, it would be possible.  It is based on the normal approach of Foglight.

    • Find data
    • Enter the data in the structure you need
      • generally via a query or function
    • Send the result to a view in the context
    • Test it

    You can query against the Agent_Name/Tables level, to get you your ranks

    then use functions to dynamically create columns in the query result rows row

    Could start here http://en.community.dell.com/techcenter/performance-monitoring/foglight-administrators/w/admins-wiki/6155.custom-script-agent-1-leverage-an-existing-monitoring-script-to-push-data-into-foglight

  • Custom Agent monitoring-policy confusion

    Hello

    I am facing a problem with a custom field I added to my custom Agent's primary EPA. The LiveSet agent allows you to monitor the LiveSet (memory used after a full gc) of our application servers and the added field monitors allows us to add additional servers to monitor for this specific host.

    The field is not appear however in change them the properties of some agents (even after deactiving a reinstall of the agent and reapply the surveillance strategy.) (XML).

    I added via the Script Agent Builder agent and imported the surveillance strategy. XML for this agent.

                    d76917f8-61e1-46fd-ba18-7cd5e9da1289        SPI        LiveSet        Foglight4-XML        default        template                        ab2d11d8-d31b-4d9b-b5f2-a8f9b44c1f41                                                                            Platforms_supported                    WinNT4.0 Windows2000 Windows2003 WindowsXP Linux2.4 Linux2.6 AIX4.3 AIX5.1 AIX5.2 AIX5.3 SunOS5.8 SunOS5.9 SunOS5.10 HP-UXB.11                                                                        agentName                    Collector                                                                        cmdLine                    LiveSet.sh                                                                        purgeDays                    180                                                                        purgeTime                    Days                                                                        sample_freq                    60                                                                        monitors                    localhost:7191 localhost:7192                                                    
    

    I had some difficulty in setting this up, so I repeatedly tested, deployed and applied monitoring - strategie.xml for this agent, that may have caused the configuration in order to be a little confused.  But in the end, the script is able to pick up the field as an environment variable and to monitor the appropriate servers, at least on agents that allow to edit the field in the section change the properties of the FogLight Console.

    An export of the configuration show that there are 3 separate persistable-config-model elements with different config-id for agent LiveSet. Two of them are missing from the added field monitors . I think that there should be only one entry in the configuration, and this is the origin of the problem for some deployed agents.

    I tried to delete configurations incriminated through a groovy script

    cs=server['ConfigService']models=cs.getConfigs('SPI', 'LiveSet')
    
    a=[]for (model in models)  if (model.getId() == 'e326abb9-95e6-459c-a179-293fe559fa70' ||      model.getId() == '92e879a1-21fa-4713-8f0c-c481ec997feb')     cs.removeConfig(model)
    
    models=cs.getConfigs('SPI', 'LiveSet')
    

    but he will raise an error:

    com.quest.nitro.service.sl.interfaces.scripting.ScriptAbortException: script1000680: java.lang.RuntimeException: Removing default configurations is not permitted.
    

    So my question is, is my problem actually caused by a corrupted configuration?

    How to solve this?

    Hope you can help.

    Kind regards

    ISP

    Hi Brian,.

    Thanks for your reply. I uninstalled the cartridge and unfortunately configurations 'by default' always appears. Before I go ahead with the name change Agent, is ask you if there is really no way to cleanly remove this corruption of the configuration. I'd rather not stuck with this type of corruption even if it does not affect the stability of the duration of FogLight.

    Kind regards

    ISP

    ------------ update -----------------

    Hello

    I managed to clean configurations incriminated with a workaround using the following procedure.

    1. Export the configuration via the command line
      fglcmd.sh - usr - pwd cmd - f util:configexport
    2. Extract all the persistence-config-modelagent LiveSet s in a new control - strategie.xml
    3. Change the config_type of all the extracted elements to test
    4. Import configuration
      fglcmd.sh cmd - util:configimport - usr pwd - monitoring-f - strategie.xml
    5. Run the following in the Script Editor in the Console FogLight groovy script
    cs=server['ConfigService']models=cs.getConfigs('SPI', 'LiveSet')for (model in models)    cs.removeConfig(model)
    
    models=cs.getConfigs('SPI', 'LiveSet')
    
    remaining=[]for (model in models)  remaining += model.getId()
    
    remaining
    

    Make an another export confirms that incriminated configurations are deleted.

    Relocation of the agent and the application of the custom monitoring strategy works now.

    Brian Merci for your time.

    Kind regards

    ISP

    Post edited by: Fai Fung

  • Monitoring Apache with a custom agent State

    Hi people,

    Foglight includes an ApacheSvr agent in the cartridge of the BONE that monitors Apache locally by analyzing the history of the Apache access.

    Some Quest engineers have collaborated on an agent based on a script that monitors the Apache remote by analyzing the output generated by the page Status of Apache.

    This information is available when apache httpd is compiled with the "mod_status" module and ExtendedStatus is now as described in: http://httpd.apache.org/docs/2.0/mod/mod_status.html

    When activated, the Apache /server-status page looks like http://www.apache.org/server-status

    The agent script runs under Unix. It collects, analysis and reports 21 measures focused on the Apache Foglight.

    If you are interested in this agent custom, especially if you have Apache status active on your site and would like to beta test the agent and providing feedback, please respond.

    Kind regards

    Brian Wheeldon

    I would like to help test!

  • Reg: Custom formatting SQL Developer 4.1

    Hi Experts,

    I'm having a custom formatting. Has made some adjustments in Tools > Preferences > database > SQL Formatter but could not get it exactly like I want to.

    SELECT t1.col1

    T1.col2,

    T1.col3,

    T1. COL4,

    T1.col5,

    T1. OTP,

    T2. FID,

    T2. PID

    FROM table_1 t1,.

    table_2 t2,

    table_3 t3

    WHERE t1.rid = in_rid

    AND t1.col5 = t2.lid

    AND t1.col1 = t3.loid

    AND t1.atp NOT AS "ABC%".

    AND NOT EXISTS

    (

    SELECT t4.*

    OF table_4 t4.

    table_5 t5

    WHERE t4.tid = t5.tid

    AND t5.active = 'Y '.

    AND t4.flag = CC_FLAG

    AND t4.anw IS NULL

    )

    ORDER BY t1.col3;

    (1) I want to put join conditions (red) highlighted in the next line after the WHERE clause. (Do not want to place it in line with WHERE)

    (2) can we have another level of indentation (1 or 2 more tab-space) AND in the WHERE clause. (Don't want the AND and WHERE clauses to be on the same vertical line)

    Is this feasible?

    Thank you and best regards,

    -Nordine

    (1) Yes

    (2) Yes

  • Jar J2EE unrecognized custom Agent.

    Hi all, I'm a newbie using ODI, and I am facing a problem.
    I followed the ODI deployed installation guide latest version in WLS 10.3.6.
    When I added a file .jar to the <>/ oracledi/agent/drivers this driver is not recognized.
    What can I do?
    Do I need to redeploy the agent?

    Thanks in advance!

    Solved!
    What we did edit the setDomainEnv.sh script to add our new .jar to the CLASSPATH and now it works fine.

    Thanks for your help!

  • change device name of user/pass to customer (agent-msync dm)

    Greetings,

    When I download the cab file lite Oracle and install it on my handheld I wonder about the user name and password. Once I have them enter the device successfully connects and records with my server. How can I change the username and password of this device later in the future on the client, if for example someone else gets the device? is it possible to change the username and the password of the dmagent and msync utilities that seem to be saved?

    This is possible thanks to an interface of code or c#?

    Thank you

    From now on, the device is intended to be used for a single user.

    10.3.0.3.0 will be a device sharing feature that i.e. the device can be shared between multiple users. If you can't wait until then, you can try this - save the credentials via msync.exe and then restart the device.

  • Custom Script Agent - do not display under host

    Hello

    I tried to create my first agent custom foglight 5.5 following some blogs posted here, the script that I use is the following

    off @echo

    NETSTAT - year | Find/c '8080' > D:\scripts\test\QAS_Count.txt

    FOR /F "tokens = 1 delims =" % in (D:\scripts\test\QAS_Count.txt) set QAS_Count = %% a

    echo QASCheckScriptTest TABLE

    echo START_SAMPLE_PERIOD

    echo Host.String.id = TestHostString

    the echo of QAS = % QAS_Count %

    echo END_SAMPLE_PERIOD

    echo END_TABLE

    I tried to keep it as simple as possible just to try it. all I want is the number of connections on a specified port.

    I managed to create the custom agent, deploy the agent to the host package, create the agent and enable it to collect the data, the log file indicates it collects data and there are no errors. I lived a few interactions of the script work some other product of errors in the agent log.

    However, my problem is that the agent does not appear under the host in the form of agents, I have waited long, restarted the service of fglam but no joy. I tried to clean the system of my first attempts, thinking they can cause problems but still no joy.

    I'm new to foglight no idea where start with this problem? also, I have the feeling that it would never work without removing all traces of the previous agents\deployments\scripts can someone explain how to remove everything from the system

    Thank you

    KeV

    Hi Kev,

    If agent is producing a correct output, but the measures do not appear in the model of the FMS, there is probably an error in the processing of these metrics on the FMS. We have seen this before when there is a conflict between the definition of the current version of the script with an earlier version. If you download the FMS log file and look for references on behalf of your script, you will probably discover the source of the problem. Often, you can work around a problem like this by:

    -change the name of agent script,

    -change the name from agent table, or

    -explicitly delete the previous definition of the type of agent

    Kind regards

    Brian Wheeldon

  • Custom device error VeriStand-307603: no specified main page?

    I get the 307603 error when I try to add a custom device, I developed a VeriStand project on a client computer.  The message error window States:

    «Error 307603 occurred at Custom Devices Storage.lvlib:Initialize New Custom Device.vi > Custom Devices Main Page Data.vi Storage.lvlib:Get.»

    Possible reasons: NI VeriStand: the required custom device doesn't have a specified master page. Contact the creator of custom feature to correct the error. »

    I get this error when you add the device custom VeriStand on my development computer; only on the client computer.  I tried to copy the custom device built on top of the client computer and the custom device of source based on the customer's computer.  I also have three other devices custom that I developed that work fine on the same computer, so I don't know why it does not work.  I checked the specification of the build configuration to ensure that the VI home page is included in the source files, and to generate test preview shows only the custom device LLB and the XML from the file in the build directory, as expected.  The XML file is also oriented the correct path for the homepage VI and the GUID in the XML is the GUID file matches in overall search GUID variable.  I can't think of anything to check.

    Development computer:

    Windows 7, 64-bit

    LabVIEW 2011 SP1

    VeriStand 2011 SP1

    The client computer:

    Windows XP SP3, 32-bit

    LabVIEW 2011 SP1

    VeriStand 2011 SP1

    Everybody knows such a question or give me additional troubleshooting tips?

    I got it to work, but I don't know exactly what the problem was.  I made a copy of the part of the XML file that adds the device custom menu right-click and commented of the original, then edited the part I copied it to give the device custom a different name in the menu.  It worked fine on my development computer at the time I made the change, so I thought it was OK.  I just went and restored the file in the original version and now it works on my customer's computer.

  • analyze the custom step

    Hello

    My question is quite simple, is it possible to use TestStand sequence Analyzer to analyze custom steps I developed?

    If it is possible, where can I find tutorials to do this?

    Best regards

    CFOE

    My question is quite simple, is it possible to use TestStand sequence Analyzer to analyze custom steps I developed?  YES

    If it is possible, where can I find tutorials to do this?

    The best place is the help of TestStand:

    http://zone.NI.com/reference/en-XX/help/370052K-01/tsref/infotopics/sa_creating_custom_rules/

    http://zone.NI.com/reference/en-XX/help/370052K-01/tsref/infotopics/sa_creating_analysis_modules/

    There are others out there, but those who are similar to what you want.

    Hope this helps,

  • Asynchronous custom device fails to stop

    While I was developing a custom asynchronous device, I came across a problem with the cancellation of the deployment of the .nivsproj I created to test the custom device.

    The custom device would send the error: -307730 Error Message: NI Veristand: one or more asynchronous custom devices did not close correctly and has been abandoned by the Veristand engine.

    I decided to do some troubleshooting for what could be wrong with the custom device by creating a separate custom device using the custom device model. I left completely intact model and it has deployed to our machine pharlap. When I canceled the intact custom asynchronous device it gave me the same error as above.

    I use Labview 2010 Professional version 10.0f2 development system, NI Veristand 2010 for a complete system of development and deployment of the .nivsproj on a licensed machine Pharlap.

    Sorry for the late reply.

    Zach-H by using simple device custom you provided I was able to create a custom asynchronous device that was able to stop. This allowed me to insert instructions printed in the two devices to help out what was causing the unit to raise an error when stopping.

    The culprit seems to be the NI VeriStand - Get loop Type.vi. The type of loop is never defined in the initialization.vi or the main.vi of the device model tool customized. So, when the RT pilot ran VI.vi the Type.vi loop get it would exit always false for the clock of the device to use and never use the correct name of the device clock. Without the name of the unit's clock he would never get a reason for reactivation.

    I forced the vi to use the clock of the device listed in the custom device model tool and I was able to shut down properly.

    TimothyA, you are right about the features of the measuring device. Even with the error of abnormal termination, the meter continues to operate normally after each deployment.

    Thanks for pointing out the problem with no channel being added to the measuring device. I'll make sure the custom device I develop handles the case where no channel, input or output, are added.

    Thanks for the help.

  • Creating a type of stage of the "Launcher" which would insert the appropriate step type predefined or custom time edition

    Hello world

    I'm looking for tips, pointers, directions... to be able to perform this operation in TS 4.0 sequence Editor, if it is still possible...

    I am managing a test system with an abstraction of virtual instruments 'home-made' additional layer to IVI classes for instruments that have no defined classes, customization of the sequence editor accordingly for the developers of my Department.

    So basically, when the instrument is IVI, the developer uses the built-in type of stage IIA type and when it is not the case, it uses the types of custom step I developed for this particular category of instruments.

    However there are classes where I both IVI and available specific drivers and I have to use both in the test sequence.

    For example, let's say there are two DC power sources available in the test bench, including a programmable IVI compatible DC power and the other composed of 'blocks' fixed to DC power relay-driven external and you will need to use both in the test sequence.

    I want to be able to do in the sequence editor is the insertion of appropriate during the editing just level type by selecting the power source (by a ring or an enum for example) and if the first resource is selected, it inserts the type of stage IIA, and if the second resource is selected, it inserts the appropriate custom step type.

    Any ideas on how to achieve this?

    Kind regards

    Cyril

    I don't know exactly when you plan this next prompt, but one option is to create a personalized with a custom step step type named OnNewStep. It will be called when your approach is inserted in the sequence. You can then display the command prompt and replace program step custom in the sequence step type based on the selection of the appropriate user.

  • Why my custom control consuming 30% of the CPU power?

    Hello

    on my laptot C2D 2.0 GHZ if I open just VI with custom control I developed it consumes about 30% of the CPU power. Could someone explain why? Is also my problem with this control? I see it with 8.5 and 8.6 as well. It must be linked to its representation since when I hide the disepears problem. Thank you

    Good so I was right. It seems to be the combination of the hover button effect and radio. When I used the default control of LabVIEW to create my custom control the problem disappeared. Although I would like to hear a logical explanation why this was happening.

Maybe you are looking for

  • Question about the battery

    Is it true that the life expectancy of the battery is greater if I recharge my battery every time of 0%, or I can plug my cable of power regardless of the State of the battery, without that diminishes the quality of my battery? What is today the Stat

  • custom control with the mask of the image

    Hello I am trying to create a custom control that looks like a bulb. I want to do is have a picture of a light bulb with a Boolean flag behind it so when you press a button the light bulb gets dimmer or brighter. I know how to customize the controls

  • Windows Update cannot currently check the updates, because the service is not running. But it is!

    When you try to run windows update on my win7 box family premium, I get the following message: "Windows Update cannot currently check for updates, because the service is not running." You may have to restart your computer. » Steps has been involved:

  • I can't load my pictures on my card of camer via my computer. The usual menu disappeared

    When I put my card in my computer, the normal menu to upload photos or videos does not appear and there is nowhere that I can find.

  • Oversized photo

    I use Windows XP and Outlook Express 6. When I get the photo in the message body or as an attachment, they are substantially oversized. This started as everything just happen? I tried to look at the screen for hours and pulling my hair unsuccessfully