News:

We really need your input in this questionnaire

Main Menu

Custom monitoring agent ?

Started by MVLeor, October 30, 2008, 05:44:03 PM

Previous topic - Next topic

MVLeor

Hi,

We have deployments as large as 30 servers running Linux.
We want to know if and when applications crash, become unresponsive or malfunction;
by applications I mean web-applications as well standalone applications, all
are our home-bred Java apps, each with different definitions for 'malfunction'.

The question is, how would you do such a thing with NetXMS ?
Is it possible, for example, to monitor the results of a shell command/script, for example ?

Thanks in advance,
Lior Neuman
MailVision LTD.

Alex Kirhenshtein

Yes, you can use external application / script:

Sample from nxagentd.conf:
Quote#
# ExternalParameter
#
# Add parameter handled by external command. To add multiple parameters, you
# should use multiple ExternalParameter entries. Please note that on Windows
# agent uses system process execution API for execution of specified
# command, so you cannot use pipes or shell commands. If you need to
# execute command via shell, use ExternalParameterShellExec instead.
#
# Syntax:
# ExternalParameter = <parameter_name>:<command_line>
# If you specify parameter name as "name(*)", then you can use $1 .. $9 in
# command line to substitute actual arguments passed from server.
#
# Examples:
# ExternalParameter = Test:echo test
# ExternalParameter = LineCount(*):cat $1 | wc -l
# ExternalParameter = Test2(*):myprog $1 $2

Also you can use nxpush/nxevent to push data to the monitoring server directly from your application.

MVLeor