Custom Script
Hi
I am a newbie here and started with BixData today. Really cool with so far what I have seen.
Setting up a custom script and got a couple of questions. I will appreciate for any pointers/answers.
I have a script that simply check my (web) application health and returns few data points like below:
% perl scripts/url_check.pl
AppURLContent : 1
AppURL : 1
AudioURLContent : 1
AudioURL : 1
I have the configuration in the dp-import.xml as below for this script:
AppHealth
perl scripts/url_check.pl
AppURL
schema_boolean
AppURLContent
schema_boolean
AudioURL
schema_boolean
AudioURLContent
schema_boolean
When I go to implement a Realtime Graph, I can select my custom script - but can't see any of the fields to select. It only shows "Exit Value" in available fields.
What am I doing wrong in getting my fields instead?
Also, how do I tell BixAgent on my server to run this script once every few min, say 15 min. Or is this something that I need to configure from BixServer only?
Thank you in advance.
-Srinivas
Hi Srinivas
If you want a simple up/down, add a table report (text table of values).
Or if you want to graph the values, you need to change from from Boolean to Integer. The graph can't show boolean.
To change the poll interval, configure that in Data Collection. There are options for poll interval (sample time) on the agent, and fetch interval (server update values from client).
Hi
How do I setup a table report? All the samples that I downloaded seem to be graphs only. Looked at: http://www.bixdata.com/reports, but nothing is very apparent to see if there is anything wrong with my custom service check the way I have it.
-Srinivas
Hi
Under Reports, there is a big button that says Setup. Reports is in the menu dropdown.
If you dont see Reports, you are not connected to Bix Server, did you install Bix Server? You can install on the same machine.
Data Collection is available on Bix Server to setup collection and table reports.
Error(Reporting/ReportGet) : Report not found
Hi
I have setup the table-report using the ExitValue itself for now to see how things work. When I setup the template etc., in the browser when I try to browse this table - I am getting "Error: Request(Reporting/ReportGet) : Report not found". What does this mean? Trying to google or searching on bixdata.com doesn't yield any results. Any pointers are appreciated. Thank you in advance.
-Srinivas
Thank you for the quick response. I am able to install BixdataServer on my windows machine and be able to open the Reports. When I try to add a new Table - I still don't see none of my KEYS but only Exit Value in the Fields. Not sure how do I go about setting up up/down on my keys from the custom script. This is after I select the "url_check.pl" under "instances".
Is there any documentation that explain in any more detail?
-Srinivas
Hi
What type is KEYS? Just select all instances and values, the Report will automatically expand them into the different columns.
Yes, theres a good step by step article on howtoforge.
http://www.howtoforge.com/mysql_snmp_monitoring_bixdata
By "KEYS" I was referring to my configuration on http://www.bixdata.com/node/552#comment-3167
The keys I have in the configuration are:
AppURL - schema_boolean
AppURLContent - schema_boolean
AudioURL - schema_boolean
AudioURLContent - schema_boolean
I like the service to monitor and report on these four fields. The service-check script works stand-alone by checking these four fields and outputs the data as below:
% perl url_check.pl
AppURLContent : 1
AppURL : 1
AudioURLContent : 1
AudioURL : 1
-Srinivas


My configuration is messed up above. Here it is:
<Script>
<namespace>AppHealth</namespace>
<path>perl scripts/url_check.pl</path>
<Field>
<name>AppURL</name>
<type>schema_boolean</type>
</Field>
<Field>
<name>AppURLContent</name>
<type>schema_boolean</type>
</Field>
<Field>
<name>AudioURL</name>
<type>schema_boolean</type>
</Field>
<Field>
<name>AudioURLContent</name>
<type>schema_boolean</type>
</Field>
</Script>