News:

We really need your input in this questionnaire

Main Menu
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 - Hanfelt

#46
First download Activestate Python 2.7
https://www.activestate.com/activepython/downloads

Then open cmd and enter:
python -m easy_install pywbem

Download nagios vmware plugin from this post its attached or here: https://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/Check-hardware-running-VMware-ESXi/details

Put this file somewhere on your drive like C:\Scripts

Open your agents config file (nxagentd.conf) and add:
ExternalParameter = ESXIStatusServer2:python.exe C:\Scripts\check_esx_wbem.py https://ip.to.esxi.server:5989 username password
ExecTimeout = 10000

ip.to.esxi.server=ip to your esxi server
username=username to esxi server
password=password to esxi server

Open upp netxms server configuration and change  AgentCommandTimeout = 10000

Restart agent

After a while you can collect this information from you data collection configuration on the server you installed this script.

If nothing shows up you can stop your netxms agent and start it manually in cmd nxagentd.exe -f -D 5 that way you can see whats happening and if something is wrong.

Howto show the DCI on the ESXI node instead of the polling server.

Open up data collection configuration on the node making the checks and right click on the DCI choose move to another node and select your ESXI server.
Then you open your ESXI nodes data collection configuration your DCI check should be here, edit this one and on the General page you will find an option called "source node" select the node that runs the script. Thanks Victor ;)

#47
Thanks Victor ;) for helping me out.
#48
My first version of the hp template that i whope supports more different versions of hp servers.
#49
As im trying to make this template work on more hp servers i do get a little more info returned in {instance} then i would like, example it will return 4.1, 4.2 or 2.1, 2.2 and so on. I dont want the Data Collection Description to show (Array disk 2.1 status) just the last character 1 and 2 and so on. Is there anyway we can modify this with script or something?
#50
Quote from: Victor Kirhenshtein on January 31, 2012, 10:18:57 AM
Hi all!

Attached are SNMP trap mappings for Dell and HP servers and APC devices, as well as data collection templates for Dell and HP servers.

Best regards,
Victor

Updated dell snmp with interface discovery rules.
#51
Im no programmer but this seemed to work for me.

type = AgentReadParameter($node, "FileSystem.Type(" . $1 . ")");
if ((type == null) || (type == "") || (type == "CDFS"))    
   return false;
if ($1 ~= "[:/]") {
  return true;
}
#52
General Support / Templates not showing up in gui
April 04, 2017, 06:48:02 PM
Hi there i imported the hp template from the shared template thread. It works as supposed but then i deleted it without removing the server that was applied to it first. After i tried to reimport the template but it wont show up in the gui, it does auto apply to the server though.

Logs show: found existing template hp-snmp [286] with GUID a3f5a464-39f2-445f-ad2d-2db2f0ee7c27

Changing the GUID before import will make it import and show up in the gui.

My question is how do i delete this template manually from netxms or database?
#53
You can install one agent at the remote location and use it as a proxy agent to get information from other devices using that agent, snmp and so on.
https://www.netxms.org/documentation/adminguide/agent-management.html
#54
Put the content from this snippet in a file called: nxmc.exe.manifest in the samde directory as your nxmc.exe.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">False</dpiAware>
    </windowsSettings>
  </application>
</assembly>


Then add a registry to your computer called:

HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide

DWORD (32 bit) Value: PreferExternalManifest

Value: 1


Source: http://winaero.com/blog/how-to-fix-apps-that-look-small-on-high-dpi-and-high-resolution-displays/