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.
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/check_domain.inc.php 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/check_domain.inc.php. 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.