severity is the attribute, setSeverity is the method
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menubody = "snd_alert";
if ($event->parameters[2] == "SQLServer:General Statistics: Processes blocked")
{
body .= " sql_locked";
if ((localtime()->hour == 13) && (localtime()->min < 15))
{
body .= " delivery_journal";
}
}
if ($event->parameters[2] == "SQL Deadlock")
{
body .= " sql_deadlock";
}
if ($event->parameters[2] == "MD5 hash check for unchanged file")
{
body .= " breadcrumb_files";
}
return body;
foreach(adci : FindAllDCIs($node,"IntQ*"))
{
eventtrigger = 1;
oldval=0;
// Check DCI values if they are going down within time period.
foreach(dcivalue : GetDCIValues($node, adci->id, time() - 900, time()))
{
if((oldval > dcivalue) || (dcivalue == 0)){eventtrigger = 0;}
oldval = dcivalue;
}
alarm = FindAlarmByKey("ALARM-".adci->name);
// Trigger event, and set alarm so mail action is only triggered once.
if(eventtrigger == 1)
{
if(alarm == null)
{
PostEvent($node, "MAIL_ALL", null, adci->name, adci->description, null, GetDCIValue($node, adci->id));
}
}
// Reset event alarm
if(eventtrigger == 0)
{
if(alarm != null)
{
PostEvent($node, "MAIL_ALL_RESET", adci->name, adci->description, null, GetDCIValue($node, adci->id));
}
}
}
[10-Oct-2016 11:01:16.251] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:16.251] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): execution status 2
[10-Oct-2016 11:01:18.266] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:18.266] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): execution status 2
[10-Oct-2016 11:01:20.266] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:20.266] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:22.282] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:22.282] [DEBUG] RunExternal (shell exec): execution status 2
Quote from: mclifford on September 19, 2016, 11:16:49 PM
I am running agent version 2.05-x64 and I am getting a returned value of 0 for the following.
\PhysicalDisk(1 E:)\Avg. Disk sec/Read
\PhysicalDisk(1 E:)\Avg. Disk sec/Write
\PhysicalDisk(1 E:)\Disk Reads/sec
\PhysicalDisk(1 E:)\Disk Writes/sec