Hey, commands in the video work but commands in the description do not and will confuse anyone not really good with linux(like me). WantedBy=default.target[Unit] gave me error untill i changed it to the videos one and also name of the service. Thank you for the video
You are welcome :-) If you have exporter and prometheus up and running you can check a few things: - Try pinging the device. - make sure that snmp is configured on the remote device and that they ip of snmp-exporter is allowed to query it. - check you have the right community string configured on both the device and snmp-exporter. What device are you trying to query using snmp ?
Great video, do you happen to collect logs with Grafana Loki ? Been looking for videos that walks through a setup where it collects syslogs from embedded devices.
Thanks for your kind comment. Yes I have run Loki to collect logs, maybe its an idea for another video. 🤔 Are you currently using grafana with prometheus to monitor your devices?
@@AntonioPersianoTech would love to see how your handle logging because I cannot for the life of me get to work (especially since promtail is gonna be deprecated and “alloy” is replacing it) And no not yet, using netdata rn to get metrics.
How do I change the IPs in the Prometheus.yml file to match my ipconfig? When I run sudo vi prometheus.yml edit. It informs me there is a swap file lock detected.
Great video. Question as I am just starting out here. Is the file snap-targets.yml being referenced anywhere? snap.yml is the main config file which has the community string. The Prometheus config has the target IP. So not sure how the snap-targets.yml fits in?
Thanks for your compliments. The snmp-targets file is in snmp exported and yes it contains the community string and the ip address of the device you want to monitor. You can go to my github repo listed in the description, all the files are there and you can take it as an example. Good luck :)
Hey, I keep getting this error after running the script on a fresh Ubuntu 22.04 VM: snmp-exporter | ts=2024-10-26T16:18:05.584Z caller=collector.go:367 level=info auth=public_v2 target=192.168.100.1:161 source_address= worker=0 module=if_mib msg="Error scraping target" err="scrape cancelled after 5.000064429s (possible timeout) getting target 192.168.100.1" Any idea of what I can check?
Hi, you need to change the IP and community string to what you have set on your router or network device. You find this in volumes/snmp-exporter-config/snmp-targets.yml Hope this helps
Which location is your volumes directory? you can go in this directory by doing cd /path/ then pwd which would give you the full path. try changing the permissions to the full path.
Thank you very much, it was a typo error I used your video to install garafan. I’m trying to integrate it with a 3rd party application now so if you have any videos you have made on that, that would be lovely thank you
Let me know what you think about Grafana? Leave a comment here..
Great job explaining 🙌 Your insights were spot on, and I love the way you broke it all down. Keep up the awesome work!💪
nice content
Very good video and practical, simple explanations
Keep it up
Great explanation! Thanks for explaining :)
Good work bro
Thank you. I appreciate your nice comment.
Thank you for that tut , is this solution applicable using windows OS
You can run docker on windows too but maybe its best to install linux on a virtual box on your windows and then follow this tutorial. Good luck!
Thanks for explanation, nice video
Thanks for commenting and liking my video.
Hey, commands in the video work but commands in the description do not and will confuse anyone not really good with linux(like me). WantedBy=default.target[Unit] gave me error untill i changed it to the videos one and also name of the service. Thank you for the video
Thanks for help full video , my node for snmp-exporter up from promthues side but ( NO DATA ) in grafana side can you advice please ?
You are welcome :-)
If you have exporter and prometheus up and running you can check a few things:
- Try pinging the device.
- make sure that snmp is configured on the remote device and that they ip of snmp-exporter is allowed to query it.
- check you have the right community string configured on both the device and snmp-exporter.
What device are you trying to query using snmp ?
@@AntonioPersianoTech cisco router on cloud
@@AntonioPersianoTech cisco router on cloud services + snmpwallk working with targetet device
Great video, do you happen to collect logs with Grafana Loki ? Been looking for videos that walks through a setup where it collects syslogs from embedded devices.
Thanks for your kind comment. Yes I have run Loki to collect logs, maybe its an idea for another video. 🤔
Are you currently using grafana with prometheus to monitor your devices?
@@AntonioPersianoTech would love to see how your handle logging because I cannot for the life of me get to work (especially since promtail is gonna be deprecated and “alloy” is replacing it)
And no not yet, using netdata rn to get metrics.
@@project_mini_hero coming soon :)
@@AntonioPersianoTech Will be one of the first to watch (subscribed)
promethues not open with me and port 9090 close
How do I change the IPs in the Prometheus.yml file to match my ipconfig? When I run sudo vi prometheus.yml edit. It informs me there is a swap file lock detected.
Try stopping prometheus container first, edit then try starting it again.
i want monitor Mikrotik router is it possible?
Yes if it supports snmp which mikrotik does then you can.
Giving permission to the container ... and the rest of the world.
Great video. Question as I am just starting out here. Is the file snap-targets.yml being referenced anywhere? snap.yml is the main config file which has the community string. The Prometheus config has the target IP. So not sure how the snap-targets.yml fits in?
Thanks for your compliments. The snmp-targets file is in snmp exported and yes it contains the community string and the ip address of the device you want to monitor.
You can go to my github repo listed in the description, all the files are there and you can take it as an example.
Good luck :)
Hello!
Hey, I keep getting this error after running the script on a fresh Ubuntu 22.04 VM:
snmp-exporter | ts=2024-10-26T16:18:05.584Z caller=collector.go:367 level=info auth=public_v2 target=192.168.100.1:161 source_address= worker=0 module=if_mib msg="Error scraping target" err="scrape cancelled after 5.000064429s (possible timeout) getting target 192.168.100.1"
Any idea of what I can check?
Hi, you need to change the IP and community string to what you have set on your router or network device.
You find this in volumes/snmp-exporter-config/snmp-targets.yml
Hope this helps
no offence but... too much google integrated adv that are impossible to skip
9:50 thank you for the video but this part didn’t still work for me it was saying “ no such file or directory
Which location is your volumes directory? you can go in this directory by doing cd /path/ then pwd which would give you the full path. try changing the permissions to the full path.
Thank you very much, it was a typo error I used your video to install garafan. I’m trying to integrate it with a 3rd party application now so if you have any videos you have made on that, that would be lovely thank you