Search found 2 matches

by kratz
Fri Oct 17, 2014 9:20 am
Forum: Open Source Nagios Projects
Topic: Nagios Bash plugin, one variable cant be parsed to nagios.
Replies: 2
Views: 1741

Re: Nagios Bash plugin, one variable cant be parsed to nagio

I sorted it out
Multiple problems including the script itself, and the "define command"
by kratz
Fri Oct 17, 2014 2:38 am
Forum: Open Source Nagios Projects
Topic: Nagios Bash plugin, one variable cant be parsed to nagios.
Replies: 2
Views: 1741

Nagios Bash plugin, one variable cant be parsed to nagios.

Hi! I have a super simple plugin that executes a command on a remote windows server and checks that the output contains "Ja" It looks like this: #!/bin/bash RESULT=$(/usr/lib/nagios/plugins/check_nrpe -H $1 -c checksnap) CROP=$(echo $RESULT | grep Status | cut -d' ' -f2) POS=$(echo "J...