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?
Article Comments
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?
Mar, 2011 - Permalink
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:
- Custom WBEM Sensor
- Namespace root/hpq
- WBEM Query: SELECT * FROM SMX_ComputerSystem
- The Channel HealthState Shows the Overall Status (5=OK, 10=Warning, ....)
- HP Offline Bundle has to be installed
For HP Servers with Windwos:
- Custom WMI Sensor
- Namespace root/hpq
- WQL Query: SELECT HealthState FROM HP_WinComputerSystem
- The Value returned show the actual Status (5=OK, 10=Warning, ....)
- 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
Mar, 2011 - Permalink
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.
Mar, 2011 - Permalink