Page 1 of 1

Nagios Service missing information

Posted: Mon Jan 27, 2020 12:08 pm
by cdcrawford
Good afternoon,

I have a nagiosXI service that is missing information.

The CLI output when I run it under my username is as follows:

Code: Select all

OK - Total Users: 6067 | totalUsers=6067
The output in NagiosXI is as follows:

Code: Select all

OK - Total Users:  | totalUsers=
The chunk of code that makes this is:

Code: Select all

totalUsers="$(grep -w $string dumpMUSort.csv -c)"
output="OK - Total Users: $totalUsers"
perfData=" | totalUsers=$totalUsers"
[...]
echo "${output}${perfData}"
I'm using bash to generate this information. Anyone know why this is?

Thanks so much!

Re: Nagios Service missing information

Posted: Mon Jan 27, 2020 2:49 pm
by cdcrawford
Close it out.

I was calling a file without giving it the path.

Re: Nagios Service missing information

Posted: Tue Jan 28, 2020 1:52 pm
by benjaminsmith
Hello @cdcrawford,
Close it out.
I was calling a file without giving it the path
Thanks for the update and glad to hear it's been solved.

Benjamin