- Nagios Network Monitoring
- General Information and TidBits
- Installation Tips & Tricks
- Addons, Plugins, Tweaks & Customizations
- Checking Drupal Status with Nagios and WebInject
- AddOn - NRPE / NSClient
- AddOn - Nagios Event Log aka NagEventLog
- Addon - Nagios Passive Checks with NSCA
- Nagios Custom Object Variables
- Nagios Event Handler - Restart Remote Service
- Nagios Event Handler - Restarting a Local Service
- Plugin: check_dns_secondary - Checking NS Servers
- Plugin: check_http_requisites - Page Size, Files, and Loadtime
- Plugin: check_mem - Linux Memory Usage
- Plugin: check_sql - Check MSSQL and MYSQL servers
- Plugin: check_svn - Check Subversion
- Tweak - Nagios Jabber / XMPP Notifications
- Tweak - Nagios SMS Messaging
- Tweak - check_file_age to check_file_modified
- Tweak: Using NagiosGraph's SHOW.CGI
- Tweak: check_sql - Allow decimal values
- Common Errors & Fixes
ERROR: CHECK_SVN - Error Connecting
- References:
Summary
The "check_svn" plugin worked from the command line. However when I attempted to configure the Nagios check, an error occurred.
Ref: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1554.html;d=1
SVN CRITICAL: Error connecting to svn server - Can't open file '/root/.subversion/servers': Permission denied .
Solutions
Apparently this is caused by nagios environment issue. The nagiosexchange page recommends one solution. Alternatively you can modify the check_svn script.
- Edit the command line in the nagios commands.cfg file to export the HOME variable:
command_line export HOME=/home/nagios && $USER1$/check_svn - Edit the "check_svn" check script to pass a command line variable
Add a variable like: self.confdir = "/home/nagios"
and edit "cmd" line the script builds after the if statements for username/password:
if self.confdir:
cmd += " --config-dir=%s" % self.confdir
All should work well now. I also make sure to use the "-T" option to output the test execution time which I can now graph with nagiosgraph.
- Printer-friendly version
- Login to post comments
-

Recent comments
23 weeks 5 days ago
27 weeks 6 days ago
45 weeks 2 days ago
48 weeks 3 days ago
1 year 6 weeks ago
1 year 13 weeks ago
1 year 13 weeks ago
1 year 18 weeks ago
1 year 22 weeks ago