SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Configuring Bacula-SNMP subagent
Author Message
Post Configuring Bacula-SNMP subagent 
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 < at > 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 < at > 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?

Greetings,
Florian

--
the purpose of libvirt is to provide an abstraction layer hiding all
xen features added since 2006 until they were finally understood and
copied by the kvm devs.

------------------------------------------------------------------------------
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post Configuring Bacula-SNMP subagent 
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 < at > 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 < at > 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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post Configuring Bacula-SNMP subagent 
Hi,

2012/4/27 Martin Simmons <martin < at > lispworks.com>:
On Thu, 26 Apr 2012 23:10:41 +0200, Florian Heigl said:
I'm getting an error that says the following (which I translate to
"Hey user, I didn't read my config")

Thanks Martin!

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


My perl-speaking friend came up with the same advice.
I also found bacula-snmp chocked on some "extra" fields of the media status.
We might make a patch for that.

By the way - Do you have any idea why so few people use this?
Because, in theory this is the best way reporting could be and I would
feel a little less out of place with the rest of humanity if I
understood why not everything is using this to automate their
reporting Smile

I've also used bweb and bacula-web in earlier days, but SNMP feels
more natural to me than "human looking at things"

Greetings,
Florian


--
the purpose of libvirt is to provide an abstraction layer hiding all
xen features added since 2006 until they were finally understood and
copied by the kvm devs.

------------------------------------------------------------------------------
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB