Page 1 of 1
Check_By_SSH
Posted: Wed Apr 12, 2017 2:06 pm
by nickgt30
I've created a custom bash script that I'm executing with "xi_check_by_ssh" and the script works perfectly and returns the value I'm expecting but I can't graph it. Is there anyway to store the returned value as perfdata or graph it otherwise? I'm returning a numerical value between 0-250.
Re: Check_By_SSH
Posted: Wed Apr 12, 2017 2:41 pm
by nickgt30
I was able to fix this by rewriting by shell script and including a pipe symbol with my output on both sides. So if the output was 50, I now have 50 | 50 and the perfdata is coming through.
Re: Check_By_SSH
Posted: Wed Apr 12, 2017 3:54 pm
by cdienger
Hi nickgt30,
Beat me to it : ) I was going to point out
https://assets.nagios.com/downloads/nag ... fdata.html which has some more details. Glad you were able to resolve it though. Are we okay locking the thread?