![]()
Monitor ConfigurationGeneralThe Monitor configuration file is a stripped down version of the Director configuration file, mixed with a Console configuration file. It simply contains the information necessary to contact Directors, Clients, and Storage daemons you want to monitor.For a general discussion of configuration file and resources including the data types recognized by Bacula, please see the Configuration chapter of this manual. The following Monitor Resource definition must be defined:
The Monitor ResourceThe Monitor resource defines the attributes of the Monitor running on the network. The parameters you define here must be configured as a Director resource in Clients and Storages configuration files, and as a Console resource in Directors configuration files.
The Director ResourceThe Director resource defines the attributes of the Directors that are monitored by this Monitor.As you are not permitted to define a Password in this resource, to avoid obtaining full Director privileges, you must create a Console resource in the Director's configuration file, using the Console Name and Password defined in the Monitor resource. To avoid security problems, you should configure this Console resource to allow access to no others daemon, and permit the use of only two commands: status and .status (see below for an example). You may have multiple Director resource specifications in a single Monitor configuration file.
The Client ResourceThe Client resource defines the attributes of the Clients that are monitored by this Monitor.You must create a Director resource in the Client's configuration file, using the Director Name defined in the Monitor resource. To avoid security problems, you should set the Monitor directive to Yes in this Director resource. You may have multiple Director resource specifications in a single Monitor configuration file.
The Storage ResourceThe Storage resource defines the attributes of the Storages that are monitored by this Monitor.You must create a Director resource in the Storage's configuration file, using the Director Name defined in the Monitor resource. To avoid security problems, you should set the Monitor directive to Yes in this Director resource. You may have multiple Director resource specifications in a single Monitor configuration file.
Sample Monitor configuration file and related daemons' configuration records.A example Monitor configuration file might be the following:# # Bacula Tray Monitor Configuration File # Monitor { Name = rufus-mon # password for Directors Password = "GN0uRo7PTUmlMbqrJ2Gr1p0fk0HQJTxwnFyE4WSST3MWZseR" RefreshInterval = 10 seconds } Client { Name = rufus-fd Address = rufus FDPort = 9102 # password for FileDaemon Password = "FYpq4yyI1y562EMS35bA0J0QC0M2L3t5cZObxT3XQxgxppTn" } Storage { Name = rufus-sd Address = rufus SDPort = 9103 # password for StorageDaemon Password = "9usxgc307dMbe7jbD16v0PXlhD64UVasIDD0DH2WAujcDsc6" } Director { Name = rufus-dir DIRport = 9101 address = rufus } Sample File daemon's Director record.Click here to see the full example.# # Restricted Director, used by tray-monitor to get the # status of the file daemon # Director { Name = rufus-mon Password = "FYpq4yyI1y562EMS35bA0J0QC0M2L3t5cZObxT3XQxgxppTn" Monitor = yes } Sample Storage daemon's Director record.Click here to see the full example.# # Restricted Director, used by tray-monitor to get the # status of the storage daemon # Director { Name = rufus-mon Password = "9usxgc307dMbe7jbD16v0PXlhD64UVasIDD0DH2WAujcDsc6" Monitor = yes } Sample Director's Console record.Click here to see the full example.# # Restricted console used by tray-monitor to get the status of the director # Console { Name = Monitor Password = "GN0uRo7PTUmlMbqrJ2Gr1p0fk0HQJTxwnFyE4WSST3MWZseR" CommandACL = status, .status }
|