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.
- Export the configuration via the command line
fglcmd.sh - usr- pwd cmd - f util:configexport - Extract all the persistence-config-modelagent LiveSet s in a new control - strategie.xml
- Change the config_type of all the extracted elements to test
- Import configuration
fglcmd.sh cmd - util:configimport - usrpwd - monitoring-f - strategie.xml - 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
Tags: Dell Tech
Similar Questions
-
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.
NextWScript.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
- Agent_Name
-
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
-
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.
-
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-statusThe 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!
-
Original title: i cannot connect to my administrator account
Hello
When I try to connect to the administrator account I have this message "group tht the login failure policy customer service. Access denied"what can I do pls
Hello
(1) remember you to make changes prior to this problem?
(2) work on a domain network?
Step 1: Start the computer in safe mode. To do this, follow the steps below:
Access Advanced Startup menu options by turning on your computer and pressing the button F8 continuously until Windows starts. In the advanced startup options select Safe Mode
Startup options (including safe mode)
http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode
Step 2: check with a different user profileIf you do not have a different user account, you will need to create a (see link below). If everything works fine with a different user profile, you can infer that the user profile is damaged, click on the link to find out how to solve this problem.
Create-a-user account
http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account
Difficulty of a corrupted user profile
http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile
-
Hi all
Is it possible to set up below the retention to Foglight (5.6.10) policy.
* Save 10 minutes for 90 days and then purge *.
Kind regards
Roshan Varughese
Hi Roshan,
You must set all three generations in the custom retention policy to preserve data for 10 minutes.
Please find the custom in FMS UI retention policy under: management data/servers/server management / retention policy/policy current. Here, select the menu drop-down and click custom.
Once there you should be able to select 10 minutes for each generation, then purge the data after 3 months. (see image below)
Keep in mind that political detention is very granular and the size of your database is likely to increase. Also, when you use larger slots in the user interface, the server will have to deal with more values and will add a certain amount of overhead.
More information in Foglight documentation - creation of custom retention policies.
Gaston.
-
Customer service group policy has no login (access denied)
I had Windows 7 dell Inspiron 1018 and I thought it would be a good idea to go to 10 Windows but it was slow and I could not do things so I decided to reverte to Windows 7, which began the problem.
He returned but not all I get is (the Customer Service of group policy does not logon and access is denied.
I can get it to work again or have I lost all my work and another bit, or should I just buy a new machine and break the hard drive on my little machine
Any help please
RJB
Thank you it worked and I'm back to normal, until the next time. I could buy a Windows 10 for Christmas a gift for me
Thanks again
RJB
-
Script agent - monitoring telnet to a specific port connection
I created this script agent as described below. Although when I deploy and create agent, I don't see an agent created on the dashboard of the Agents, or the data browser.
Any other suggestions? Recommendations to improve extensibility? Also, if I have several hostnames and several ports, what is the best way to implement who?
OMNI_PortMonitor.sh
echo OMNI_PORT_HLPOM560_20301 TABLE
echo START_SAMPLE_PERIOD
HTTPSERVERIP = "hlpom560.someDomain.com".
echo HTTP_SERVER_HOSTNAME. String = $HTTPSERVERIP
HTTPSERVERPORT = "20301.
echo $HTTPSERVERPORT = HTTP_PORT
TELNET = $(which telnet)
(
echo "exit".
) | $TELNET $HTTPSERVERIP $HTTPSERVERPORT | connected grep > / dev/null 2 > & 1
If ["$?"-not "1"]; then
echo PORT_STATUS = 0
on the other
echo PORT_STATUS = 1:
FI
echo END_SAMPLE_PERIOD
echo END_TABLE
Thank you
#AJ
Hi AJ,.
The best practice is to design your script so that it checks for the environment variables populated by a secondary ASP. If these environment variables are not defined, the script can set values of relief.
I know that you have used the custom ApacheStatus agent. The collector for this agent, ApacheStatus.sh script, check the variables of environment generated by ASP. If they are not present, the script hard code a list of values. This allows the script to execute and generate data of interest from a list of servers Apache targets from the command line. You can modify your script to do the same.
Kind regards
Brian Wheeldon
-
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 youFrom 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.
-
TZ300W - how to use the policy monitor host VPN network
is easy to create the network to any host Wan monitor policy.
But if I want to monitor VPN host, how can I do...?
Monitor VPN host? Control if the VPN work? I use the Zabbix software to monitor my hosts.
-
Windows 8 could not connect to the Customer Service of group policy on my HP Pavilion
We recently purchased a HP Pavilion laptop g6 C7C77UA #ABL with 8 64-bit Windows. It seemed to work fine until a week ago (we only had it for 2 weeks). I can access the computer through my user that I'm the system administrator, but my husband try to click on the user whenever he has a message that appears saying Windows cannot connect to the customer service group policy, please see your system administrator. He could access his side in all first, we bought the computer.
I did troubleshooting and it comes up saying that Windows Firewall is configured incorrectly. I tried to go in the windows firewall, but it is not letting me, he just guard spinning and finally said that he does not.
So far, I like my HP Pavilion, but I'm about to throw it out the window because of Windows 8. Please help me! Thank you!
Hello m-oickle,.
Take a look at this document, which covers aspects of the restoration of your laptop. Please let me know if the troubleshooting steps to help you solve your problem.
Good luck!
-
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
Maybe you are looking for
-
Where is the button "Firefox"? I have not in the corner of U/L.
I upgraded to Firefox 8 and tried to follow the tutorial. But my page doesn't look like the one in the tutorial. I have NO orange Firefox button in the top left of my page.
-
Laptop HP Pavilion G6: unknown device (drivers) after Win 10 upgade
Having just upgraded to Windows 10, I note in the Device Manager the drivers according to the attached image have not been installed. What are the functions of these drivers and I should just leave uninstalled?
-
I currently have a Cloud competitors with data unlimited. Can I set this as my default backup location in ITunes to backup my IPhone for?
-
What is the difference between 'Photos' and 'All of them'?
I migrated to iPhoto to picture several months ago. I also stored pictures in iCloud. I have about 8 000 photos. On the Photo, there is a file in the upper left corner labeled "pictures". Under the Albums, there is an another Doggie labelede "All
-
Why the datasize property settings node does not
The documentation says that this property is available on a read-only basis in the runtime. What I am doing wrong?