Hello Victor, can you explain me how to perform those steps. Thanks.
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 Menu




NETXMS-TEST:~$ sudo service netxmsd status
[sudo] password for admtelcisco:
â netxmsd.service - LSB: NetXMS server
Loaded: loaded (/etc/init.d/netxmsd)
Active: active (exited) since Sun 2016-05-22 19:12:52 COT; 5min ago
Process: 613 ExecStart=/etc/init.d/netxmsd start (code=exited, status=0/SUCCESS)
NETXMS-TEST:~$
NETXMS-TEST:~$ sudo service netxmsd restart
NETXMS-TEST:~$
NETXMS-TEST:~$ sudo service netxmsd status
â netxmsd.service - LSB: NetXMS server
Loaded: loaded (/etc/init.d/netxmsd)
Active: active (running) since Sun 2016-05-22 19:18:21 COT; 3s ago
Process: 1787 ExecStop=/etc/init.d/netxmsd stop (code=exited, status=0/SUCCESS)
Process: 1796 ExecStart=/etc/init.d/netxmsd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/netxmsd.service
ââ1802 /usr/bin/netxmsd -d
mysql> SELECT table_schema "Database Name", SUM(data_length+index_length)/1024/1024
-> "Database Size (MB)" FROM information_schema.TABLES GROUP BY table_schema;
+--------------------+--------------------+
| Database Name | Database Size (MB) |
+--------------------+--------------------+
| information_schema | 0.00878906 |
| mysql | 0.67379189 |
| netxms | 12664.09375000 |
| performance_schema | 0.00000000 |
+--------------------+--------------------+
4 rows in set (15.80 sec)
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 29G 17G 10G 63% /
Quote from: Andreas@rc on May 02, 2016, 10:58:51 AM
Instead of using your script within the transformation section, why not create a DCI, which executes your script?
This way, you can use the default method for history and graphing from NetXMS.
sub CALL_ACTIVE_COUNT(CALL_ACTIVE_TABLE,CALL_ACTIVE_PEER_ID,CALL_TYPE_ID)
{
COUNT=0;
for(i = 0; i < CALL_ACTIVE_TABLE->rowCount; i++)
{
if (CALL_ACTIVE_TABLE->get(i,CALL_ACTIVE_TABLE->getColumnIndex(CALL_ACTIVE_PEER_ID))==CALL_TYPE_ID)
{
COUNT=COUNT+1;
}
}
return COUNT;
}
use CUBE_CALL_ACTIVE_COUNT;
sub main()
{
LOCAL_ACTIVE_CALLS=CALL_ACTIVE_COUNT(GetDCIValue($node,FindDCIByDescription($node, "CALL-ACTIVE-TABLE-1")),"CALL-ACTIVE-PEER-ID",5);
return LOCAL_ACTIVE_CALLS;
}

