How histou passes result to Grafana

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

How histou passes result to Grafana

Postby dhlao » Wed Oct 27, 2021 3:21 am

Histou has no problem passing the results that are returned by built-in check command. However, it fails if the result is returned by custom scripts. For example, command that is triggered by check_by_ssh.
I use check_by_ssh to get the CPU usage of a remote Linux server. It returns a text or numeric value, which I'm not sure its format; it represents the percentage of usage. Command as below
Code: Select all
top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk '{print 100 - \$1}'

Histou unable to plot a panel graph for this.
What I've noticed is that those results that can be plotted have status "OK" in their results, such as "OK", "PING OK", "DISK OK", and so on. I've no idea whether it's the cause or not.
dhlao
 
Posts: 10
Joined: Thu Apr 29, 2021 10:23 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 8 guests