It's included in netxms distribution. When you compile from sources, it's build when --with-server is enabled. Windows version (binary) is available in NetXMS Installer for windows.
We really need your input in this questionnaire
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 Menualk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")'
3
alk@wall:~$ mkdir /var/www/default/folder/
alk@wall:~$ touch /var/www/default/folder/keepalive.html
alk@wall:~$ /tmp/nx/bin/nxget -w 100 localhost 'ServiceCheck.HTTP(127.0.0.1,80,/folder/keepalive.html,www.test.com,"^HTTP/1\.[01] 200.*")'
0
Quote from: sodalist on July 09, 2009, 03:23:33 PM
I tested the button. You can provide feedback by adding little timeout
to ServiceCheck.Custom(<insert arguments here>) as additional parameter
so that check would give back value when TCP port is not reachable
MasterServers = localhost
LogFile = /tmp/nx/agent.log
SubAgent = /tmp/nx/lib/libnsm_portCheck.so
*Portcheck
Timeout = 5000 # 5 seconds.
Quote from: Alex Kirhenshtein on October 26, 2009, 11:10:16 AM
Агент такого параметра не представляет, но можно добавить свой:
Пример скрипта:#!/bin/sh
[ -z $1 ] && echo ERROR && exit
ls -l $1 | grep '^-' | awk '{ print $5; }'|sort -g -r | head -n1
Добавить в nxagentd.conf:ExternalParameter = CheckDirSize(*):/path/to/sizeOfLargestFileInDir.sh $1
В принципе, можно даже сделать без внешнего скрипта:ExternalParameter = CheckDirSize(*):ls -l $1 | grep '^-' | awk '{ print $5; }'|sort -g -r | head -n1
CheckDirSize — произвольное название, (*) означает, что у этого параметра есть аргументы, после двоеточия — команда, которая будет запущена через шелл
Аналогичный скрипт можно сделать и для Windows машин.
#!/bin/sh
[ -z $1 ] && echo ERROR && exit
ls -l $1 | grep '^-' | awk '{ print $5; }'|sort -g -r | head -n1ExternalParameter = CheckDirSize(*):/path/to/sizeOfLargestFileInDir.sh $1ExternalParameter = CheckDirSize(*):ls -l $1 | grep '^-' | awk '{ print $5; }'|sort -g -r | head -n1Usage: nxsms [<options>] <server> <phone number> <message>
Valid options are:
-D : Turn on debug mode.
-e : Encrypt session.
-h : Display help and exit.
-P <password> : Specify user's password. Default is empty password.
-u <user> : Login to server as <user>. Default is "guest".
-v : Display version and exit.
-w <seconds> : Specify command timeout (default is 3 seconds).ATZ
AT+CMGF=1
AT+CMGS="+37112345678"
message text^Z