[nagiosplug] check_dbi: Hint the user about cause when dbi ...

"Nagios Plugin Development" <[email protected]> Wed, 4 Jul 2012 22:11:07 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: ce75adf2872ef973d86cfaf36fcc0f717a7af66b
 Author: Sebastian Harl <[email protected]>
   Date: Wed Jun  6 15:06:44 2012 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=ce75adf

check_dbi: Hint the user about cause when dbi init fails.

---

 plugins/check_dbi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index 03ec9ce..8c4a511 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -141,7 +141,7 @@ main (int argc, char **argv)
 		printf ("Initializing DBI\n");
 
 	if (dbi_initialize (NULL) < 0) {
-		printf ("UNKNOWN - failed to initialize DBI.\n");
+		printf ("UNKNOWN - failed to initialize DBI; possibly you don't have any drivers installed.\n");
 		return STATE_UNKNOWN;
 	}
 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/