In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Prepare the go locale (the installation process is ignored, I have the gopath in / home/gocode)
Export GOPATH=/home/gocode/
Cd / home/gocode/src/github.com/prometheus
Git clone https://github.com/prometheus/snmp_exporter.git
Cd snmp_exporter
Cd generator/
Go build
Make mibs
Then, change to the mibs directory
Cd mibs/
Download N MIB files (all txt files) from the https://docs.citrix.com/en-us/netscaler-sd-wan/9-3/standard-mib-support.html page here and download them to the mibs directory using wget
Then, start editing the generator.yml file:
After vim generator.yml modification, the contents of the modified file are as follows:
Modules:
Ns:
Walk:
-1.3.6.1.4.1.5951.4.1
Version: 2
Max_repetitions: 25
Retries: 3
Timeout: 10s
Auth:
Community: genghis
When finished, perform the following compilation to generate the appropriate snmp.yml file
Export MIBDIRS=mibs
. / generator generate
When you're done, you'll see a snmp.yml file in the current directory, which looks something like this:
Start:
. / snmp_exporter-- config.file= "snmp.yml"-- web.listen-address= ": 9988" then check by yourself to see if any netscaler data has been collected
Then, add the relevant target to the prometheus, something like this:
-job_name: 'netscaler_1_snmp'
Static_configs:
-targets:
-2.3.4.5
Metrics_path: / snmp
Scrape_interval: 60s
Scrape_timeout: 30s
Params:
Module: [ns]
Relabel_configs:
-source_labels: [_ _ address__]
Target_label: _ _ param_target
-source_labels: [_ _ param_target]
Target_label: instance
-target_label: _ _ address__
Replacement: 1.2.3.4:9988
After the final data is collected, we go to grafana to draw:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.