Ad Widget

Collapse

Plugin mongodb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herve
    Junior Member
    • Oct 2016
    • 3

    #1

    Plugin mongodb

    Hi all,

    I would like test the plugin mongodb :https://github.com/nightw/mikoomi-za...odb-monitoring

    This pluggin use zabbix_sender to send data in the PHP rountine.

    "$process = proc_open("zabbix_sender -vv -z $zabbix_server -p $zabbix_server_port -i - 2>&1", $descriptorspec, $pipes) ;
    "
    My MONGO DB is local (on the same server that the zabbix server).
    I have activated the debug mode ( level 4) : here is the trace.

    22041:20161017:143103.657 __zbx_zbx_setproctitle() title:'history syncer #2 [synced 0 items in 0.000159 sec, idle 1 sec]'
    22033:20161017:143104.185 __zbx_zbx_setproctitle() title:'trapper #5 [processing data]'
    22033:20161017:143104.185 trapper got '{"request":"sender data","data":[{"host":"zabbix","key":"mongodb.version","value":" 3.2.9"},{"host":"zabbix","key":"mongodb.uptime","v alue":"7874"},{"host":"zabbix","key":"mongodb.glob alLock.totalTime","value":"7874533000"},{"host":"z abbix","key":"mongodb.globalLock.currentQueue.tota l","value":"0"},{"host":"zabbix","key":"mongodb.gl obalLock.currentQueue.readers","value":"0"},{{"hos t":"zabbix","key":"mongodb.db.collections[test]","value":"4"},{"host":"zabbix","key":"mongodb.db. objects[test]","value":"7"},{"host":"zabbix","key":"mongodb.db. indexes[test]","value":"2"},{"host":"zabbix","key":"mongodb.db. avgObjSize[test]","value":"66.285714285714"},{"host":"zabbix","key ":"mongodb.db.dataSize[test]","value":"464"},{"host":"zabbix","key":"mongodb.d b.indexSize[test]","value":"16352"},{"host":"zabbix","key":"mongodb .db.storageSize[test]","value":"28672"},{"host":"zabbix","key":"mongodb .db.numExtents[test]","value":"4"},{"host":"zabbix","key":"mongodb.db. collections[local]","value":"3"},{"host":"zabbix","key":"mongodb.db. objects[local]","value":"48"},{"host":"zabbix","key":"mongodb.db .indexes[local]","value":"0"},{"host":"zabbix","key":"mongodb.db. avgObjSize[local]","value":"1514.5833333333"},{"host":"zabbix","key ":"mongodb.db.dataSize[local]","value":"72700"},{"host":"zabbix","key":"mongodb .db.indexSize[local]","value":"0"},{"host":"zabbix","key":"mongodb.db. storageSize[local]","value":"10493952"},{"host":"zabbix","key":"mong odb.db.numExtents[local]","value":"2"},{"host":"zabbix","key":"mongodb.is_ replica_set","value":"No"},{"host":"zabbix","key": "mongodb.plugin.data_collection_time","value":"1"} ,{"host":"zabbix","key":"mongodb.plugin.version"," value":"0.8"},{"host":"zabbix","key":"mongodb.plugin.checksum"," value":"fe823ac47b2b8da1e5a66f64bce25057"}]}'
    22033:20161017:143104.186 In recv_agenthistory()
    22033:20161017:143104.186 In process_hist_data()
    22033:20161017:143104.187 In process_mass_data()
    22033:20161017:143104.187 End of process_mass_data()
    22033:20161017:143104.187 End of process_hist_data():SUCCEED
    22033:20161017:143104.187 In zbx_send_response()
    22033:20161017:143104.187 zbx_send_response() '{"response":"success","info":"processed: 0; failed: 80; total: 80; seconds spent: 0.001557"}'
    22033:20161017:143104.188 End of zbx_send_response():SUCCEED
    22033:20161017:143104.189 End of recv_agenthistory()

    Could you help me why the data are not insered in the repository ? (failed 80).

    Thanks
Working...