Closed scoates closed 12 years ago
Hello. This is a simple patch to parse out the performance_data (if available) and deliver it along with the service state in nagios-api.
Here are some examples of how this is useful:
"MongoDB Free Connections": { "active_checks_enabled": "1", "performance_data": { "used_percent": 0, "current_connections": 5, "available_connections": 814 }, "last_hard_state": "0", "notifications_enabled": "1", "current_state": "0", "downtimes": {}, "plugin_output": "OK - 0 percent (5 of 819 connections) used", "last_check": "1345405191", "problem_has_been_acknowledged": "0", "comments": {}, "scheduled_downtime_depth": "0", "last_notification": "0" }, "MongoDB Flush Average": { "active_checks_enabled": "1", "performance_data": { "average_flush_time": "55.64ms" }, "last_hard_state": "0", "notifications_enabled": "1", "current_state": "0", "downtimes": {}, "plugin_output": "OK - Average Flush Time: 55.64ms", "last_check": "1345405697", "problem_has_been_acknowledged": "0", "comments": {}, "scheduled_downtime_depth": "0", "last_notification": "0" }, "Current Load": { "active_checks_enabled": "1", "performance_data": { "load1": 0.1, "load15": 1.05, "load5": 0.91 }, "last_hard_state": "0", "notifications_enabled": "1", "current_state": "0", "downtimes": {}, "plugin_output": "OK - load average: 0.10, 0.91, 1.05", "last_check": "1345405138", "problem_has_been_acknowledged": "0", "comments": {}, "scheduled_downtime_depth": "0", "last_notification": "0" },
Hope that makes sense. If not, please let me know, and I'll try again. (-:
S
This is great! Thank you! (And sorry for the delay, I seem to not be getting emails from Github, and/or am filtering them badly so I don't see them. I'll fix that.)
Hello. This is a simple patch to parse out the performance_data (if available) and deliver it along with the service state in nagios-api.
Here are some examples of how this is useful:
Hope that makes sense. If not, please let me know, and I'll try again. (-:
S