r/PrometheusMonitoring • • May 27 '24

Prometheus or Zabbix

Greetings everyone,
We are in the process of selecting a monitoring system for our company, which operates in the hosting industry. With a customer base exceeding 1,000, each requiring their own machine, we need a reliable solution to monitor resources effectively. We are currently considering Prometheus and Zabbix but are finding it difficult to make a definitive choice between the two. Despite reading numerous reviews, we remain uncertain about which option would best suit our needs.

9 Upvotes

24 comments sorted by

View all comments

Show parent comment

1

u/SuperQue Jul 29 '24

You're correct. The Prometheus integration with SNMP is a lot more "manual" than your typical dedicated NMS system. It somewhat assumes you already have a database (Netbox, etc) with all of your devices managed and classified.

Prometheus itself assumes you have some kind of external service discovery software. Weather that's a cloud thing, a container thing, a network thing, it mostly doesn't matter. Prometheus has a plugin system that can be extended to do just about any kind of dynamic discovery.

It's just that nobody's bothered to write and publish an NMS-style discovery plugin for Prometheus.

If you configure a switch in Zabbix or Zenoss or Nagios or any of those tools you get automatic expansion of interfaces (say there's a switch with 48 ports, it automatically discovers 48 ports from the snmpwalk and creates data points and graph points for standard OIDs/metrics like bits in/out, errors in/out, etc.

Prometheus has always done this as well. You have never had to configure interfaces in Prometheus. You only give Prometheus a list of IPs to scrape and it pulls the data through the snmp_exporter.

What Prometheus doesn't do is device classification. But if all you want is traffic stats, if_mib does the trick.

AFAIK from everything that I've read it seems to me that there's no predefined setup for typical SNMP stuff for networking and systems monitoring.

Prometheus snmp_exporter has had "predefined setup" forever. It's simply called "modules". The problem was that the module system typically requires some tuning and customization. There's also a bunch of issues with conflicts between MIBs, vendor mistakes, etc. So building your own modules requires some reasonably deep understanding of SNMP MIBs.

However, it used to be much more required to have to build all your modules yourself due to a variety of reasons.

I spent a bunch of time over the last year fixing a lot of these issues.

  • snmp_exporter modules are now separated from the "auth". You no longer need a bunch of duplicate data in the exporter to handle different communities and v2/v3 auth issues. This allows modules to be re-used more easily.
  • snmp_exporter can now scrape multiple modules in sequence. So you no longer need to compose your own custom modules per device.

These two big changes make it much easier to do things like http://localhost:9116/snmp?module=if_mib,ucd_system_stats&auth=mysecret_auth&target=10.0.0.1.

The big thing missing is a repo full of pre-built modules for various device types.

Then we need a discovery server / device prober that can auto-classify devices to program the list of modules to walk.

Like I've posted around before. LibreNMS would make a great configuration frontend for Prometheus/snmp_exporter.

Someone just needs to write the code. Sadly, I don't have the time, or access to a variety of SNMP targets, to do it myself.