usage: fcpc zabbix [-h] [--zabbix.base.url ZABBIX.BASE.URL]
[--zabbix.api.user ZABBIX.API.USER]
[--zabbix.api.password ZABBIX.API.PASSWORD]
[--zabbix.api.httpauth {0,1}]
[--zabbix.api.ignoretlserror {0,1}]
[--zabbix.item.audit ZABBIX.ITEM.AUDIT]
[--zabbix.item.progress ZABBIX.ITEM.PROGRESS]
[--zabbix.send.audit ZABBIX.SEND.AUDIT]
[--zabbix.send.progress ZABBIX.SEND.PROGRESS]
[--zabbix.sender.external {0,1}]
[--zabbix.sender.bin ZABBIX.SENDER.BIN]
[--zabbix.server.host ZABBIX.SERVER.HOST]
[--zabbix.problems.days ZABBIX.PROBLEMS.DAYS]
[--zabbix.server.port ZABBIX.SERVER.PORT]
[--zabbix.host ZABBIX.HOST]
[--zabbix.continue_on_error {0,1}]
[--zabbix.item.epochprefix ZABBIX.ITEM.EPOCHPREFIX]
[--zabbix.item.epoch_discovery_objects ZABBIX.ITEM.EPOCH_DISCOVERY_OBJECTS]
[--zabbix.item.epoch_discovery_jobs ZABBIX.ITEM.EPOCH_DISCOVERY_JOBS]
[--zabbix.item.epoch_discovery_collections ZABBIX.ITEM.EPOCH_DISCOVERY_COLLECTIONS]
[--zabbix.export.format {xml,json,yaml}]
{download-and-import-all,send-epoch-stats,discovery-epoch-stats,send-epochs,discovery-epochs,export-templates,import-templates,search-templates,list-problems,send-problems,discovery-by-query,send}
[zabbixobjects ...]
positional arguments:
{download-and-import-all,send-epoch-stats,discovery-epoch-stats,send-epochs,discovery-epochs,export-templates,import-templates,search-templates,list-problems,send-problems,discovery-by-query,send}
[zabbix]
Choices:
download-and-import-all
send-epoch-stats
discovery-epoch-stats
send-epochs
discovery-epochs
export-templates
import-templates
search-templates
list-problems
send-problems
discovery-by-query
send
zabbixobjects [zabbix] (default: None)
optional arguments:
-h, --help show this help message and exit
--zabbix.base.url ZABBIX.BASE.URL
Zabbix web server base URL. Use basic url for zabbix
like http://zabbix.somewhere/[Defined:fcplib.module.za
bbix.cmd] (default: None)
--zabbix.api.user ZABBIX.API.USER
Zabbix User for API
calls[Defined:fcplib.module.zabbix.cmd] (default:
None)
--zabbix.api.password ZABBIX.API.PASSWORD
Zabbix Password for API
calls[Defined:fcplib.module.zabbix.cmd] (default:
None)
--zabbix.api.httpauth {0,1}
Use HTTP Basic auth for API
calls[Defined:fcplib.module.zabbix.cmd] (default: 0)
Choices:
0
1
--zabbix.api.ignoretlserror {0,1}
Ignore TLS errors for
API[Defined:fcplib.module.zabbix.cmd] (default: 0)
Choices:
0
1
--zabbix.item.audit ZABBIX.ITEM.AUDIT
Zabbix item used to send audit
messages[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.audit)
--zabbix.item.progress ZABBIX.ITEM.PROGRESS
Zabbix item used to send
progress[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.progress)
--zabbix.send.audit ZABBIX.SEND.AUDIT
If enabled, send audit to zabbix
server[Defined:fcplib.module.zabbix.cmd] (default: 0)
--zabbix.send.progress ZABBIX.SEND.PROGRESS
If enabled, send progress to zabbix
server[Defined:fcplib.module.zabbix.cmd] (default: 0)
--zabbix.sender.external {0,1}
If set to 1, nothing is sent, just printed and can be
feeded to external zabbix
sender[Defined:fcplib.module.zabbix.cmd] (default: 0)
Choices:
0
1
--zabbix.sender.bin ZABBIX.SENDER.BIN
Zabbix sender binary to
use.[Defined:fcplib.module.zabbix.cmd] (default:
zabbix_sender)
--zabbix.server.host ZABBIX.SERVER.HOST
Zabbix Server Host[Defined:fcplib.module.zabbix.cmd]
(default: None)
--zabbix.problems.days ZABBIX.PROBLEMS.DAYS
How many days back to search for
problems[Defined:fcplib.module.zabbix.cmd] (default:
14)
--zabbix.server.port ZABBIX.SERVER.PORT
Zabbix Server Host[Defined:fcplib.module.zabbix.cmd]
(default: 10051)
--zabbix.host ZABBIX.HOST
Zabbix Host of this
machine.[Defined:fcplib.module.zabbix.cmd] (default:
None)
--zabbix.continue_on_error {0,1}
Continue to import on
errors[Defined:fcplib.module.zabbix.cmd] (default: 0)
Choices:
0
1
--zabbix.item.epochprefix ZABBIX.ITEM.EPOCHPREFIX
Zabbix item to send epoch
stats[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.epoch)
--zabbix.item.epoch_discovery_objects ZABBIX.ITEM.EPOCH_DISCOVERY_OBJECTS
Zabbix item to send object types within epoch
discovery[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.epoch_discovery_objects)
--zabbix.item.epoch_discovery_jobs ZABBIX.ITEM.EPOCH_DISCOVERY_JOBS
Zabbix item to send jobs within epoch
discovery[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.epoch_discovery_jobs)
--zabbix.item.epoch_discovery_collections ZABBIX.ITEM.EPOCH_DISCOVERY_COLLECTIONS
Zabbix item to send collections within epoch
discovery[Defined:fcplib.module.zabbix.cmd] (default:
fcpc.epoch_discovery_collections)
--zabbix.export.format {xml,json,yaml}
Zabbix export format for
templates[Defined:fcplib.module.zabbix.cmd] (default:
json)
Choices:
xml
json
yaml
Now, Zabbix module is used just to send progress and audit logs to zabbix.
For this to work,
--zabbix.server.host must be set.
--zabbix.send.audit=1 will enable audit log to be sent to zabbix by zabbix sender
--zabbix.send.progress=1 will enable progress log to be sent to zabbix by zabbix sender
Keys used:
fcpc.audit (log, zabbix_trapper)
fcpc.progress (log, zabbix_trapper)
Hostname to send to is determinet automatically but if you want to change, use:
--zabbix.host=hostname
fcpc zabbix download-and-import-all
fcpc zabbix send-epoch-stats
fcpc zabbix discovery-epoch-stats
fcpc zabbix discovery-epochs
fcpc zabbix send-epochs
fcpc zabbix export-templates name [name]
fcpc zabbix import-templates filename [filename]
fcpc zabbix search-templates pattern
fcpc zabbix list-problems
fcpc zabbix send-problems host | zabbix_sender -i - -z <zabbix_server>
For example, to generate discovery item for all dnszonez within epoch for hostx
fcpc zabbix discovery-by-query hostx fcpc.zones.discovery url,name,description DnsZone