Custom monitoring agent ?
-
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. -
Yes, you can use external application / script:
Sample from nxagentd.conf:
#
# 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 $2Also you can use nxpush/nxevent to push data to the monitoring server directly from your application.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login