Menu

Show posts

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

Messages - alike767

#16
General Support / Run Script to get DCI Data
January 29, 2018, 11:10:56 PM
I'm trying to use NetXMS to monitor license usage on RLM and FlexLM License servers.  There are commands you can run that give the output.  I'd like to run them throughout the day and have NetXMS capture the output.

I have created a shell script on one license server, and when I type sh license_usage.sh it outputs the correct number of licenses in use.

How can I get NetXMS to capture the output of that script and make it a DCI for my node?
#17
Great.  That works.  I had tried that, but I guess never with the right syntax.


#18
That didn't fix it for me.  I must be doing something else wrong. 

Please find attached screen shot. 
#19
Quote from: tomaskir on May 07, 2015, 08:18:07 PM
This is already entirely possible.

Simply use auto-bind scripts...
Here is an example:

parents = GetNodeParents($node);

foreach(p : parents)
{
  // if the node has a parent with this name
  if (p->name == "Something")
  {
// auto-bind node
return true;
}

// otherwise do not auto-bind the node
return false;



I am having a problem with this script.  I have copied and pasted it into a template on the Automatic Apply Rules section.  I changed "Something" to the name of one of my containers, and when I ran a poll Configuration (full) on one of my nodes that is in that container, the node did not get added to the template.

I noticed that there is an uneven number of "}" and put them in various places with no luck.  My guess is I am having a simple syntax issue.  Should this script work exactly as posted?

Thanks
#20
General Support / Re: ProxMox thin LVMS
July 25, 2016, 11:26:16 PM
Great news that this is coming and I can wait for that feature.

#21
General Support / ProxMox thin LVMS
July 24, 2016, 08:40:07 PM
I'd like to monitor free space of my ProxMox lvms.  I have tried with both snmp and native agents and don't get expected results.  FileSystem.Total(/dev/pve/root) returns 10M instead of 34G. 

I have a VG name pve which is installed by default.  When I do an lvdisplay, I get three logical volumes, swap, root, and data. 

Root shows an lv path of /dev/pve/root and is also mounted to root on the file system.  I can see by performing df -h.

Data doesn't show a path in lvdisplay, and it doesn't appear in df -h.  It is used by ProxMox, but it isn't mounted in Linux. 

The lvm is a lvm-thin and I want to monitor disk space as there is over commitment in space.  How can I do this?

I'd rather it be in snmp than netxms native, but either is fine. 

Thanks in advance for any suggestions.