I am trying to install the "check_mssql_sproc.pl" plug in for nagios. Where and how do I install it?
Asked
Active
Viewed 9,540 times
1 Answers
3
Add the command definition to your nagios/etc/objects/commands.cfg
Where the pl file is actually installed doesnt matter... just make sure you can run it from the command line and set it up like that in your commands.cfg

JoshP
- 355
- 1
- 9
-
how do you run it from the command line? i can't do ./check_mssql_sproc.pl can i? – Haonan Jun 23 '10 at 19:45
-
i see. i need to "chmod a+x check_mssql_sproc.pl" it first – Haonan Jun 23 '10 at 19:55
-
3If you're testing a plugin from the command line, be sure to run it as the correct user (probably "nagios"). Otherwise, you'll potentially miss out on environment or permission issues. Also, another tip - you might find it useful to redirect STDERR to STDOUT in your command definitions, just to save your sanity while trying to configure everything. Just add " 2>&1 " to the end of your command, e.g. /usr/local/nagios/libexec/check_mssql_sproc.pl (args here) 2>&1". Trust me, that one tip saved me days of pain. Without it, any errors that the plugin sends to STDERR are not shown in the UI. – Chris McAtackney Jul 01 '10 at 09:06