diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-06-07 18:18:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 18:18:01 +0300 |
commit | 892255b23728fde076402b7300f13c80de32e5fc (patch) | |
tree | 8d34207a9b2a318c98e8b88f45b7cd7db3c26c62 /collectors/freeipmi.plugin/freeipmi_plugin.c | |
parent | 5de5b6531331e6ca59948f6465e26851843651d0 (diff) |
freeipmi: add availability status chart and alarm (#15151)
Diffstat (limited to 'collectors/freeipmi.plugin/freeipmi_plugin.c')
-rw-r--r-- | collectors/freeipmi.plugin/freeipmi_plugin.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c index 98538e81b8..a2251891ae 100644 --- a/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -1833,6 +1833,21 @@ int main (int argc, char **argv) { for(iteration = 0; 1 ; iteration++) { usec_t dt = heartbeat_next(&hb, step); + if (iteration) { + if (iteration == 1) { + fprintf( + stdout, + "CHART netdata.freeipmi_availability_status '' 'Plugin availability status' 'status' plugins netdata.plugin_availability_status line 146000 %d\n" + "DIMENSION available '' absolute 1 1\n", + netdata_update_every); + } + fprintf( + stdout, + "BEGIN netdata.freeipmi_availability_status\n" + "SET available = 1\n" + "END\n"); + } + if(debug && iteration) fprintf(stderr, "freeipmi.plugin: iteration %zu, dt %llu usec, sensors collected %zu, sensors sent to netdata %zu \n" , iteration |