Hello Wanderlei,
Please see below ...
On 07/17/2017 03:07 PM, Wanderlei
Huttel wrote:
Hello Kern
- For messages I was not aware
there is any level. You will need to be more explicit.
In my Message
resource I have configured what messages I want to receive,
in this case (all and !skipped)
..
MailCommand = "/usr/sbin/bsmtp -h localhost -f
\"Bacula <em...@domain.com.br>\"
-s \"Bacula: %t %e of %c %l\" %r"
..
But in the json
output is showing more than I configured (All, !Debug,
!Saved, !Skipped)
{
"Type": "Mail",
"MsgTypes": ["All","!Debug","!Saved","!Skipped"],
"Command": "/usr/sbin/bsmtp -h localhost -f
\"Bacula <em...@domain.com.br>\"
-s \"Bacula: %t %e of %c %l\" %r"
},
Those are the default ports, so there is no need to output them. If
you actually change the ports and they are not correctly output,
then please show it clearly and submit it as a bug report.
- For the ports, please show me an example as there is no
need to print it unless it has changed.
About the ports I'm using the default ports (9101, 9102 and
9103)
You can see that the ports are the default and they're not
printed in json output (OK), but if I want to use a GUI
interface to recreate the .conf files I always have to include
this parameter.
Director{
...
DIRport = 9101
...
}
Storage{
...
SDPort = 9103
...
}
FileDaemon {
...
FDport = 9102
}
[
{
"Director": {
"Name":
"bacula-dir",
"Description":
"Sistema de Backup Famacris",
"Messages":
"Daemon",
"QueryFile":
"/etc/bacula/scripts/_query.sql",
"WorkingDirectory":
"/etc/bacula/working",
"PidDirectory":
"/etc/bacula/working",
"MaximumConcurrentJobs": 50,
"Password":
"DIRThrOweyEh47XFJHoedlf4OXylbRJhurJAjlhsMIVI",
"HeartbeatInterval": 300,
"StatisticsRetention": 94608000
}
}
]
[
{
"Storage": {
"Name":
"bacula-sd",
"WorkingDirectory":
"/etc/bacula/working",
"PidDirectory":
"/etc/bacula/working",
"MaximumConcurrentJobs": 50,
"HeartbeatInterval": 300
}
}
]
[{
"FileDaemon": {
"Name":
"bacula-fd",
"WorkingDirectory":
"/etc/bacula/working",
"PidDirectory":
"/etc/bacula/working",
"PluginDirectory":
"/etc/bacula/plugins",
"MaximumConcurrentJobs": 50,
"HeartbeatInterval": 300
}
}
]
You can see
that the ports are the default and they're not printed in
json output because you said they are "default", but if I
want to use a GUI interface to recreate the .conf files I
always will have to check if exists and if not exists
include this parameter.
You will need to have your
GUI program understand Bacula defaults.
In the Messages
(like above) there are more types of messages in the json
output than .conf file of message resource.
IMHO would be interesting show all informations that are
stored in .conf and not exclude from json output.
If there is some critical
information needed for Bacula configuration that is missing from
the json output, then please submit it as a bug report. Anything
else is a feature request, and since these json programs have been
working correctly for GUI configuration of Bacula for several
years, we are not inclined to make any additions to them -- unless
as I say, something important is missing. In any case, any such
request should be submitted as a feature request.
We do not want the json programs to become standard listing
programs. Their function is to convert Bacula conf files in a
program friendly way to a GUI program -- nothing more.
These functions are used for debugging if I am not mistaken, and
indeed the format of the output is *far* more program friendly than
trying to output a Bacula conf format.
Best regards,
Kern
|