Adding Nagios Plugins

Im new to Librenms but what Ive read says im able to use nagios plugins. I can’t seem to find instructions for adding them beyond the apt-get nagios-plugins. What I want to do is install SQL plugin from here

This plugin has many scripts in it so it seems like I would need to do more than just drop one of the files in the nagios/plugins folder. I’ve also never used nagios, I’m coming from a cacti background. Any help would be greatly appreciated.

I know you said Nagios plugins but look at the applications
it has one for SQL.

Aso keeps in mind that not all Nagios plugins will work. afik only ones I have seen work are the core plugins.

If was me I just use the applications. :slight_smile:

I’m trying to monitor MSSQL will the MYSQL work for that?
Thanks for the clarification with the core plugins.

not sure but you can look the code and see :slight_smile:

Also looks like there is a service check for MySQL

I did just find the service and it’s the same one I was trying to get setup.

Once you’ve added that script you linked to into the dir you set as the nagios plugin dir then you should be able to select it as a service check.

When you can, I assume it will still fail as the script doesn’t accept -H hostname, if that’s the case you’ll need a custom service check file to set the arguments correctly. See includes/services/ as an example.

Sorry this took so long its been a hell of a week so far.

Im not sure what your suggesting I should be looking at includes/services/ Is that the add on file? On my install they are all in /usr/lib/nagios/plugins.

Also I created the service and assigned it to the server I entered

-v --hostname ServerName --port PORT -f /usr/lib/nagios/mysql.cnf

into the parameters but it doesn’t show me anything. I found the -f switch in a forum that I cant seem to find again but even if I specify --User and --Password I get the same results.

This is what I see after I set the peramiters.

Copyright © 2009 Gerhard Lausser

Check various parameters of MySQL databases

check_mysql_health [-v] [-t ] [[–hostname ]