The scripts that collect data from VMware ESXi system through SNMP protocol and output data as open-falcon json format
You have a dedicated server with VMware ESXi operating system and you want to monitor the snmp information through open-falcon. Then you will need some scripts that can translate the snmp OIDs information into certain metric in json-format.
- Install SNMP command.
yum -y install net-snmp net-snmp-utils
- Download VMware ESXi MIB files and copy all the mibs files to directory like
/usr/share/snmp/mibs
- Setup SNMP config
mkdir ~/.snmp
echo "mibs +ALL" > ~/.snmp/snmp.conf
- Fill proper content into the variables in
esxi_collector.sh
- Setup cronjobs
* * * * * esxi_collector.sh
The snmp_queries.sh
script calls the basic snmp command and makes plain output. You can compare the json result generated by 60_esxi_*.sh
with the plain output.