![](https://secure.gravatar.com/avatar/5a3ba702de575cdf02834e4b73b64993.jpg?s=120&d=mm&r=g)
Hi
I want to monitor Postgres servers and was wondering the best way to go about this.
On the master server there are several clusters each with a number of databases. On the replication servers the same exists but I’d like to monitor the streaming replication delay.
I’m just wondering what the best layout would be to bring the data into Observium?
Regards — David Peall
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
We currently have no system of tracking information like this. It's a lot of word to add new entity types to track things, probably far more work than this is worth.
This kind of thing is what the 'application' system is for, but we still have no real way of storing state in the database for applications, which limits its effectiveness somewhat.
Any suggestions on how to maintain state for this kind of thing in a generic way would be helpful :)
adam.
On 2014-06-02 01:42, David Peall wrote:
Hi
I want to monitor Postgres servers and was wondering the best way to go about this.
On the master server there are several clusters each with a number of databases. On the replication servers the same exists but I’d like to monitor the streaming replication delay.
I’m just wondering what the best layout would be to bring the data into Observium?
Regards — David Peall _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/aafc0bcc6e27a9411007ffa1005a653a.jpg?s=120&d=mm&r=g)
Hello Adam,
Tuesday, June 3, 2014, 5:21:00 AM, you wrote:
Any suggestions on how to maintain state for this kind of thing in a generic way would be helpful :)
If I understand things right: Currently there's an assumption, that Observium monitors devices and device MUST be an SNMP capable device and respond to pings.
I'm coming from The Dude here and I think their approach to things was better. They had objects (devices, links, subnets) and devices had services (Ping, SNMP, whatever). All that device required to have is a unique name. It didn't even need an IP address.
I believe current state of things can be migrated in this direction. Have devices that are empty husks, that can contain entities like Ports, Services (either detected via SNMP, or added manualy) - this way you could add server.domain.com, that's SNMP capable - SNMP probing would add entities: Network Interfaces (Ports) Sensors Ping
You could then manually add more entities, like for example scripts (local, running on observium box), that returned either boolean result, a number, or whatever. Or custom OIDs. You could graph the results etc. This way you also drop specific code for temp/voltage sensors, since they are just another entity.
In case of SNMP-incapable host, probing would add only Ping entity.
In summary, you no longer monitor devices, you monitor services on them (or entities, or whatever you decide to call them). Less core assumptions, more freedom to users. I could add few Internet hosts just to monitor their availability and graph ping times, and add my Eltek Minipacks and monitor their voltage and battery state with custom OIDs.
This would maybe open the possibility to write some custom pollers that poll only specific entities/services/whatever; for example some pingd, that only concerns with pinging hosts and does it every second, speeding reaction times, creating more accurate results, monitoring packet loss, etc.
Actually I strongly suggest installing Mikrotik's The Dude and fiddling with it a bit -- lots of ideas to look at. It's really great piece of monitoring software, appreciated by many and really hard to migrate from due to nice drag & drop map and astonishing flexibility (especially considering who created it ;>)
Hope this helps you in some way, or gets you thinking at least :)
![](https://secure.gravatar.com/avatar/5a3ba702de575cdf02834e4b73b64993.jpg?s=120&d=mm&r=g)
Hi Adam
I was thinking on the lines of the application system. I’m busy putting together.
There doesn’t seem to be a way to monitor application system values from the alert system?
Regards — David Peall
On 03 Jun 2014, at 5:21 AM, Adam Armstrong adama@memetic.org wrote:
We currently have no system of tracking information like this. It's a lot of word to add new entity types to track things, probably far more work than this is worth.
This kind of thing is what the 'application' system is for, but we still have no real way of storing state in the database for applications, which limits its effectiveness somewhat.
Any suggestions on how to maintain state for this kind of thing in a generic way would be helpful :)
adam.
On 2014-06-02 01:42, David Peall wrote:
Hi I want to monitor Postgres servers and was wondering the best way to go about this. On the master server there are several clusters each with a number of databases. On the replication servers the same exists but I’d like to monitor the streaming replication delay. I’m just wondering what the best layout would be to bring the data into Observium? Regards — David Peall _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
David Peall
-
Paweł Tyll