ASP for script agent
I may have asked this before, but is there a way to create the FSA for a script agent?
All the examples, someone can tell me?
It's true, but unfortunately this feature of the fglide is a little 'weea' in the documentation.
But I saw some interest for this feature in the past few weeks and I'll create movies from screen-cam more explaining the creation of Agent step by step.
I want to download the first couple at the end of the week, if I can get my audio equipment works with my new PC.
Stefan
Tags: Dell Tech
Similar Questions
-
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
-
All,
I just downloaded and deployed the following script agent. Everything seemed to be going perfect. If I navigate to the fglam > State > agent > myagent > scripts folder and run the .sh script he things seem to work as I want. I let the agent walk for an hour while I went to lunch and I still don't see anything in the model. No idea where I was wrong?
Solaris with 5.5.8.2, FMS1 5.6.5 on centOS fglam.,.
[code]
#
#! / bin/bash
#somestuff
variable #define
EIMJobStartTimeUTCTimeStampString = 0
EIMJobStartTimeDate = 0
EIMJobStartTimeTime = 0
CurrentDate = 0
#Scrape file for journal information and format it in vars
EIMJobStartTimeUTCTimeStampString = $(tête-n 1)< `ls="" -t="" pt/myawesomeapp/enterprises/prod/prod_app1/log/eim*.log="" |="" head="" -n="" 1`|="" cut="" -f="" 2,3="" -d="" '="">
EIMJobStartTimeDate = $(echo $EIMJobStartTimeUTCTimeStampString | awk '{print substr ($0, 0, 10)} ")
EIMJobStartTimeTime = $(echo $EIMJobStartTimeUTCTimeStampString | awk '{print substr ($0, 12)} ")
CurrentDate = "date".
#echo our results for the test, do not include in the cartridge
#echo $EIMJobStartTimeUTCTimeStampString
#echo $EIMJobStartTimeDate
#echo $EIMJobStartTimeTime
#Echo results in format Foglight
echo "TABLE EIM_JOB_STARTTIME"
echo 'START_SAMPLE_PERIOD '.
echo "StartTime.StringObservation.obs is"$EIMJobStartTimeUTCTimeStampString ".
echo "StartTimeDate.StringObservation.obs is"$EIMJobStartTimeDate ".
echo "StartTimeTime.StringObservation.obs is"$EIMJobStartTimeTime ".
echo "SystemDate.StringObservation.obs is"$CurrentDate ".
echo 'END_SAMPLE_PERIOD '.
echo "END_TABLE.
[/ code]
Here is the result, it "seems" be correct
-bash-3,00$./EIMJobStartTime.sh
TABLE EIM_JOB_STARTTIME
START_SAMPLE_PERIOD
StartTime.StringObservation.obs = 2013-03-15 21:09:52
StartTimeDate.StringObservation.obs = 2013-03-15
StartTimeTime.StringObservation.obs = 21: 09:52
SystemDate.StringObservation.obs = Friday, March 15, 2013 21:11:26 UTC
END_SAMPLE_PERIOD
END_TABLE
-bash-3, $ 00
When I "get log" on the agent, that nothing ever happens for this agent.
5.6.5 seems to have a bug regarding the agent data of custom script that appears in the data browser.
Try to restart the FMS service, others have seen it solve the problem in topology view.
-
Can't find Script engine "VBScript" for Script alongwith the path of the file
Original title: Vb Script engine
Dear all.
I downloaded the update to Android 2.2 Froyo on motorola Web site. When I run the exe, I get a message, can't find Script engine "VBScript" for Script alongwith the path of the file. Once I click Ok, the exe execution is aborted. Please suggest a solution for this problem. I have Windows Home Premium 64 bit OS
Rgds,
Sachin.
Hello
1 did you change on your computer before this problem?
2 are you able to install any other software on your computer?
This occurs if the filevbscript.dll runtime script is not properly registered in the system, I would say you follow these steps and see if it works very well.
Method 1
Try to install the program in high mode.
(a) right click the program.
(b) select run as administrator.
Method 2
a. click the Start button, type cmd. In the result of the research with the right button on cmd and select run as administrator.
b. type cd %windir%\system 32 (Note: there is a space between the system and 32) and press ENTER.
c. type regsvr32 vbscript.dll in the command prompt, and then press ENTER.
d. type regsvr32 jscript.dll in command prompt, and then press ENTER.If the registration was successful, you should now see the following message is displayed:
DllRegisterServer in vbscript.dll successful.
e. now right-click on the Setup file of windows cleanup utility and select run as administrator.Method 2
If the problem persists, you can run the System File Checker and see if it works fine.
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833
Check whether the problem is resolved.
-
On a 3.0.3 HYPERIC SERVER Im trying to put in place an alert for hq agent and controls the action to restart if I get an alert -?
I open the page web hyperic and select the hyperic Server customer. I then click on alert
and create an alert if the availability of the agent hq changes. When I try and change the CONTROL ACTION with the help of change. It does not list the agent in the resource type.
So I can not change the name of resource either, so I can't enter restart since I can get the hyperic
customer as long as the resource. Thi snot is available. What I am doing wrong. I try to test the control
action in EE and create just a simple test to restart the clien...Well, you can NAVIGATE to the AGENT to AC and control A QUESTION
command?If you cannot issue a regular command via the command tab, then you
won't be able to run a control to an alert action
definition.In this case, the agent does not control, is not
something you can do. As I said, you can try the program control
orders to different resources (other than the agent)-Jon
On 2 May 2007, at 16:08, mike monczynski says:
> I do not understand, can't, I have a client command to shutdown or reboot with the
> The alert CONTROL.
> Control has start stop restart but I can't get the hyperic
> customer as the resource. I'm using the EA version. I know that I can
> maually shut down and boot a client. isn't this control will do the
> same thing? Since he in the hyperic customer alert? I have on
> ocassion corrected problem by restarting the hyperic customer.
> -
Office State is waiting for the agent
Dear all,
I manually installed agent to view a VM comments (ESX4.1), which is managed by a Virtual Center.
And then I add an individual office by the Administor Console view.
The status of office is still waiting for the agent.
Could you give points for this problem?
Thank you
Dennis Dai
Two common reasons is firewall or DNS problems.
Disable the local firewall and make sure nameresolution works in two ways.
Best regards
Linjo
If you find this information useful, please give points to "correct" or "useful".
-
Package Foglight - Custom Script Agent, a file?
All,
So, I am writing a custom script agent. It requires some bianary custom to be in the same folder. Is it possible to pack these bits in the agent?
Thank you
It is a pity that your screenshot does not show the corresponding part of the log file and the log file is not zipped and fastened. Otherwise, maybe your version, platform, and the FMS symptom matching the error described in SupportLink Solution 82250: https://support.quest.com/Search/SolutionDetail.aspx?id=SOL82250&category=Solutions&SKB=1&product=Foglight ?
If so, an upgrade may be required to resolve the issue.
Kind regards
Brian Wheeldon
-
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
-
Search for scripts for file names
I have a large number of Applescript scripts and need to change a file name used in some of them. Is it possible to find all the scripts in a folder for a particular name and a list. «"I tried different solutions but no luck, for example, the shell script ' / usr/bin/mdfind - Teh" & quoted form of documentsPOSIXpath & "' kMDItemFSName = \"Receipts.txt\»»»
Recognizing any assistance received.
Try to use grep in a Terminal:
grep - r "keyword" ~/SearchFolder/
-
All,
Does anyone have a Foglight for Active Directory script to set permissions to registry etc?
I did it via GPO, but I don't have the export file. I'll check tomorrow to see if I have it somewhere laying around in the office.
-
How to draw attention to no data received for the Agents of Syslog or devices
I don't know if this is possible or not? I have many configured either by using the Windows Agent or direct syslog devices with many firewalls between Insight Log servers and forwarders. I'll try to find a convenient way to alert when no Syslog data is received from a device (24 hours) and an alert is sent to vROPS, any ideas?
Is not possible today. Please vote for this feature in http://loginsight.vmware.com/a/dtd/Alert-when-log-source-is-not-sending-logs/70723-24427 request
-
Completely random behavior for script of division. Need help :)
Hi people,
I put a lot of hard work in a form for a client (with the much appreciated help of people on these cards) and I thought it was full but...
The customer got my attention on a seemingly random behavior for 2 fields on the form.
I have no knowledge of Javascript but, based on the research online, I came with a custom script. I've rechecked the script but can't understand why random behavior would occur.
Here are the scripts for 2 fields:
Basic loan
----------------------------------------------------------
(function () {}
Get the field values as numbers
var numerator = + getField("Loan_Amount_3_L2").value;
denominator = var + getField("Bank_Value").value;
Do the math if the denominator does not evaluate to zero
If (denominator! == 0) {}
Event.Value = numerator / denominator.
} else {}
Event.Value = "";
}
})();
Ready
----------------------------------------------------------
(function () {}
Get the field values as numbers
var numerator = + getField("Total_Loan_2_L2").value;
denominator = var + getField("Bank_Value").value;
Do the math if the denominator does not evaluate to zero
If (denominator! == 0) {}
Event.Value = numerator / denominator.
} else {}
Event.Value = "";
}
})();
----------------------------------------------------------
And here's screenshots of the completely random behavior:
Below if we begin to enter numbers... and things look OK. $500,000 divided by $500,000 = 100 percent
Below, we add more numbers. Now, things are unhinged. Here, the result of 92% is incorrect. $400,000 divided $ 500,000 must be equal to 80%.
Then below the plot thickens again when we add more numbers. Here the basic loan value is correct at 80%, but the end of loan value is not correct. The ready value must be equal to 81% - not 80% ($ 405 000 divided by $500,000 = 81%)
As a side note, if I do a simplified field notation, the calculations seem to work. The reason why I do not have a simplified field notation, however, is that I get those annoying WARNING come up:
Warning 1: "The value entered does not match the format [Base_Loan_to_Value_Ratio_LVR_L2]"
Warning 2: "The value entered does not match the format [End_Loan_to_Value_Ratio_LVR_2]"
(The fields mentioned in these warnings are the destination fields that produce the above incorrect percentage values).
Could someone please identify what is happening here? Why is there such a seemingly random variation? And how can I solve this problem?
Thank you
Did you check the order of calculation of (different from the tab order) field to make sure it makes sense that the form?
-
Looking for script remove orders and profiles of school boards
Looking for a script that will clean the profile and controls the database - basically I want to put the database in a first phase - which is only to the elements needed to run a Virgin site - catalogue etc. doesn't get touch.
TIAHello
Here w.r.t. ATG 10.
-Remove command tables customized to your repository from command (only if you have extended repository order)
delete from dcspp_schd_errmsg;
delete from dcspp_sched_error;
remove the;
delete from dbcpp_sched_clone;
delete from dbcpp_sched_order;
delete from dcspp_manual_adj;
delete from dcspp_order_adj;
delete from dcspp_det_range;
delete from dcspp_det_price;
delete from dcspp_itmprice_det;
delete from dcspp_shipitem_tax;
delete from dcspp_ntaxshipitem;
delete from dcspp_taxshipitem;
delete from dcspp_shipitem_sub;
delete from dcspp_price_adjust;
delete from dcspp_amtinfo_adj;
delete from dcspp_ship_price;
delete from dcspp_tax_price;
delete from dcspp_item_price;
delete from dcspp_order_price;
delete from dcspp_amount_info;
delete from dcspp_payorder_rel;
delete from dcspp_payship_rel;
delete from dcspp_payitem_rel;
delete from dcspp_rel_range;
delete from dcspp_shipitem_rel;
delete from dcspp_cred_status;
delete from dcspp_debit_status;
delete from dcspp_auth_status;
delete from dcspp_sc_status;
delete from dcspp_gc_status;
delete from dcspp_cc_status;
delete from dcspp_pay_status;
delete from dcspp_bill_addr;
delete from dcspp_credit_card;
delete from dcspp_store_cred;
delete from dcspp_gift_cert;
delete from dcspp_item_ci;
delete from dcspp_subsku_item;
delete from dcspp_config_item;
delete from dcspp_pay_inst;
delete from dcspp_sg_hand_inst;
delete from dcspp_gift_inst;
delete from dcspp_hand_inst;
delete from dcspp_ship_addr;
delete from dcspp_ele_ship_grp;
delete from dcspp_hrd_ship_grp;
delete from dcspp_ship_inst;
delete from dcspp_order_rel;
delete from dcspp_order_item;
delete from dcspp_order_pg;
delete from dcspp_order_sg;
delete from dcspp_order_inst;
delete from dcspp_rel_orders;
delete from dcspp_relationship;
delete from dcspp_item;
delete from dcspp_pay_group;
delete from dcspp_ship_group;
delete from dcspp_order;-Remove profile customized to your repository profile (only if you have extended the repository profile)
delete from dps_user_prevpwd;
delete from dps_user_org;
delete from dps_user_address;
delete from dps_user_roles;
delete from dps_user_org_anc;
delete from dps_user_mailing;
delete from dps_user_scenario;
delete from dps_scenario_value;
delete from dps_user_slot;
delete from dps_usr_markers;
delete from dss_user_bpmarkers;
delete from dcs_usr_actvpromo;
delete from dcs_usr_usedpromo;
delete from dcs_user;
delete from dcs_user_wishlist;
delete from dcs_user_giftlist;
delete from dcs_user_otherlist;
delete from dcs_user_catalog;
delete from dps_usr_creditcard;
delete from dps_other_addr;
delete from dps_mailing;
delete from dps_mail_trackdata;
delete from dps_user_mailing;
delete from dps_email_address;
delete from dps_user;
commit;Kind regards
Marylou -
Hello world
I wonder if there is another similar Powershell script that can determine the currently active node of an MSCS?
What follows is done on VBScript
strClusterWMINameString = "winmgmts:\\ExchangeServerCluster01\root\cimv2" Set objWMISvc = GetObject( strClusterWMINameString ) Set colItems = objWMISvc.ExecQuery( "Select * from Win32_ComputerSystem", , 48 ) For Each objItem in colItems strComputerName = objItem.Name WScript.Echo "The Cluster " & strClusterWMINameString & " active node is " & strComputerName Next
Any kind of help is appreciated.
Thank you.
In PowerShell, you can do this with:
(Get-WmiObject Win32_ComputerSystem - SIEXCLU01 of the computer). Name
Best regards, Robert
-
Tracking database using Nagios (the search for scripts)
All,
We currently have BigBrother to Nagios with regard to the broad monitoring company. I'm working on the side of the data base of the things and I wonder if there is someone out there who can tell me where I can get scripts "ready made" rather than having me to write from scratch. Nagios has plugins for the database, but no handles things like memory, on-demand jobs followed etc.
Any help would be appreciated.
Thank youHello;
Nagios Exchange can help you:
http://Exchange.Nagios.org/directory/plugins/databases/Oracle
Best regards
mseberg
Maybe you are looking for
-
Here's what I discovered: Don't allow on computer, even if I changed the password twice. Background on the timer colors is now black - really? Who made this stupid decision. Screen gets stuck and cannot get off the ground unless I click on the button
-
Can I use Firefox 4 on my i7 iMac with OS x 10.6.7 11.3?
HelloUsually the information I get when it's time for an update of Firefox, but it is not happened lately. I heard that you could stop supporting the Mac. Is this true?
-
warranty issue. Would really appreciate advice on how best to manage this
-
c:\Windows\system32\wuapp.exe applications not found Box Monte. I use vista. What is the problem and the solution?
-
SVCHOST.exe slow down my laptop
I have a HP Pavilion dv6 laptop with Windows 7. I have had it for 7 months and was a good machine. In the last two days, it worked excrutiatingly slow to perform a simple task. It takes 30 seconds for the MSN Internet signin window appears and whi