This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pyvmomi is required | |
# pip install pyvmomi | |
from pyVim.connect import SmartConnectNoSSL, Disconnect | |
import ssl | |
s = ssl.SSLContext(ssl.PROTOCOL_TLSv1) | |
s.verify_mode = ssl.CERT_NONE | |
c = SmartConnectNoSSL(host='vcenter.homelab.lan.fr', user='root', pwd='password') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16" standalone="no"?> | |
<HardwareHealth> | |
<host HealthState="0" moid="host-17" name="server3.unicornafk.fr"> | |
<group HealthState="5" name="Battery"> | |
<CIM_NumericSensor key="0.7.1.101"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules: | |
# Default IF-MIB interfaces table with ifIndex. | |
if_mib: | |
walk: | |
- 1.3.6.1.2.1.1.3 # sysUpTime | |
- 1.3.6.1.2.1.2 # interfaces | |
- 1.3.6.1.2.1.31.1.1 # ifXTable | |
lookups: | |
- source_indexes: [ifIndex] | |
lookup: ifAlias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// PHP >= 7 | |
// You must add and enable CURL on your webserver | |
/** | |
* GET_SteamAPI | |
* | |
* @param string $endpoint http endpoint of Steam API | |
* @param string $steam_api_key your Steam API key |