Bacula-users

Re: [Bacula-users] Configuring Bacula-SNMP subagent

2012-04-27 07:05:53
Subject: Re: [Bacula-users] Configuring Bacula-SNMP subagent
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 27 Apr 2012 12:03:57 +0100
>>>>> On Thu, 26 Apr 2012 23:10:41 +0200, Florian Heigl said:
> 
> Hi,
> 
> I'm trying to make the snmp subagent from
> http://www.bayour.com/Softwares/bacula-snmp/ work.
> If I get it to work I could write a small tiny Nagios Check for it
> like the already included Cacti template.
> 
> This works by connecting to the bacula database using Perl DBD:MySQL
> which I installed.
> I'm getting an error that says the following (which I translate to
> "Hey user, I didn't read my config")
> 
> [root@waxu0604 bacula-snmp-1.4]# ./bacula-snmp-stats.pl
> Use of uninitialized value in concatenation (.) or string at
> ./bacula-snmp-stats.pl line 352.
> Use of uninitialized value in concatenation (.) or string at
> ./bacula-snmp-stats.pl line 352.
> Use of uninitialized value in concatenation (.) or string at
> ./bacula-snmp-stats.pl line 352.
> Can't connect to data source database=:host=, no database driver
> specified and DBI_DSN env var not set at ./bacula-snmp-stats.pl line
> 358
> 
> This is the config file in /etc/bacula
> [root@waxu0604 bacula]# cat .conn_details
> #   Optional arguments
> #       DEBUG=4
> #       DEBUG_FILE=/var/log/bacula-snmp-stats.log
> #       IGNORE_INDEX=1
> #
> #   Required options
> # Create different user for this reporter!
>        USERNAME="baculadir"
>        PASSWORD="changed"
>        DB=bacula
>        HOST="127.0.0.1"
>        CATALOG=MyCatalog
> 
> The connect string just must be wrong, on the other hand it really
> seems to just not read anything at all.
> 
> Does any of you have it working?
> Can you let me know if that config looks right?

Get rid of all of the comments, quotes and whitespace from the config file.
See

http://rout-tpl.no-ip.biz/wiki/index.php?title=Bacula_snmp&redirect=no

__Martin

------------------------------------------------------------------------------
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/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>