Ok, think I figured this out.
Configuration -> Templates -> "Template_MongoDB" -> Items
Selected "Miscellaneous Data Collector" and edited the "Key" attribute:
Original Key value:
New Key value:
Then saved settings.
After doing this, the "No data received in 5 minutes" alert never clears.
Is there a way to tell if Zabbix is actually running the script? Should the output of this script appear in the /tmp folder, as is the case when executing it manually? What am I missing?
If you change the mikoomi_mongodb_plugin.sh to the one I just posted you need to go into your zabbix GUI and go to your "Template_MongoDB", filter on Type: "External Check" and change the Key value to: mikoomi_mongodb_plugin.sh["{HOSTNAME}"]
Selected "Miscellaneous Data Collector" and edited the "Key" attribute:
Original Key value:
Code:
mikoomi-mongodb-plugin.sh[-h {$MONGODB_HOSTNAME} -p {$MONGODB_PORT} -z {$MONGODB_ZABBIX_NAME} -u {$MONGODB_USER} -x {$MONGODB_PASS}]
Code:
mikoomi_mongodb_plugin.sh["{HOSTNAME}"]
After doing this, the "No data received in 5 minutes" alert never clears.
Is there a way to tell if Zabbix is actually running the script? Should the output of this script appear in the /tmp folder, as is the case when executing it manually? What am I missing?
Comment