Hi
I’m discovering LibreNMS.
I browsed many sites including the docs website, but didn’t found information.
I have an application using mysql database.
A table contains pending jobs.
I would like to monitor the pending jobs count.
The way I found:
I create a nagios plugins in /usr/share/nagios/plugins.
This plugin launches a script on the remote databases server with ssh.
The value returned by this script contains the pending jobs count.
Questions:
Is this the good way to get pending jobs count ? Is there a better way ?
How to store values and display it in a graph ?
Hi all !
First, I didn’t find how to create an alert or a graph from a nagios plugin.
Next, demo server only show graph from predefined queries.
These queries only are about MySQL system.
I would like to set my own query:
SELECT count(*) FROM jobs_table
David.
You can’t graph from nagios checks. You’ll need to write a custom application (see previous pull requests for more info) or use munin scripts which would be a lot easier. We have little to no docs on that, search GitHub issues for the limited IFL we do have.
Nagios check graphs are definitely a thing. LibreNMS will automatically create (somewhat generic) graphs and show it under Services >> Details on your device: