What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Implementing Python script

Votes:

0

We have successfully written an Pyhton Script that querys the Overall System HEalth of ESXi Hosts (that is not yet avaiable in PRTG told by support)

We are getting an String Value back from this Script.

Is there any way to implement this Script with an Custom Sensor or something like this?

implement prtg python

Created on Mar 23, 2011 1:41:05 PM



Best Answer

Accepted Answer

Votes:

1

Hello,

We finally made it work. Maybe you can make this kinda "sticky Thread" because we had to spend some time to find this out and maybe it would help others to monitor their HP Hardware faster and not to search and try around.

For HP ESXi:

  1. Custom WBEM Sensor
  2. Namespace root/hpq
  3. WBEM Query: SELECT * FROM SMX_ComputerSystem
  4. The Channel HealthState Shows the Overall Status (5=OK, 10=Warning, ....)
  5. HP Offline Bundle has to be installed

For HP Servers with Windwos:

  1. Custom WMI Sensor
  2. Namespace root/hpq
  3. WQL Query: SELECT HealthState FROM HP_WinComputerSystem
  4. The Value returned show the actual Status (5=OK, 10=Warning, ....)
  5. HP PSP and HP WBEM Providers need to be installed.

We already tested the ESXi Sensor. We got a faulty RAM-Module and the Sensor returns 10

We actually dont have an HP Server with Windows showing any error, but as the Class is kind of similar to the ESXi one we expect it to work as well.

Best Regards

Created on Mar 28, 2011 11:44:49 AM

Last change on Jan 18, 2017 6:40:05 AM by  Luciano Lingnau [Paessler]



3 Replies

Votes:

0

Hello,

basically you would have to 'encapsulate' the Python script into a batch-file or similar, pass on the return value, and then run the batch-file as a Custom Script sensor in PRTG.

Best Regards.

Created on Mar 23, 2011 2:21:12 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Now we just created a Custom WBEM Sensor with the Query:

Select * from VMWARE_ROLLUPHEALTH

It returns the Value like with Python

Now we also want to query the class CIM_MEMORY or CIM_Processor But we get the Error 6 CIM Class not recognized

Do we have to import somthing?

Created on Mar 23, 2011 3:10:34 PM



Accepted Answer

Votes:

1

Hello,

We finally made it work. Maybe you can make this kinda "sticky Thread" because we had to spend some time to find this out and maybe it would help others to monitor their HP Hardware faster and not to search and try around.

For HP ESXi:

  1. Custom WBEM Sensor
  2. Namespace root/hpq
  3. WBEM Query: SELECT * FROM SMX_ComputerSystem
  4. The Channel HealthState Shows the Overall Status (5=OK, 10=Warning, ....)
  5. HP Offline Bundle has to be installed

For HP Servers with Windwos:

  1. Custom WMI Sensor
  2. Namespace root/hpq
  3. WQL Query: SELECT HealthState FROM HP_WinComputerSystem
  4. The Value returned show the actual Status (5=OK, 10=Warning, ....)
  5. HP PSP and HP WBEM Providers need to be installed.

We already tested the ESXi Sensor. We got a faulty RAM-Module and the Sensor returns 10

We actually dont have an HP Server with Windows showing any error, but as the Class is kind of similar to the ESXi one we expect it to work as well.

Best Regards

Created on Mar 28, 2011 11:44:49 AM

Last change on Jan 18, 2017 6:40:05 AM by  Luciano Lingnau [Paessler]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.