Search found 2 matches
- Mon Oct 27, 2014 11:33 am
- Forum: Nagios XI
- Topic: Trying to create my own check_mysql_query
- Replies: 3
- Views: 1240
Re: Trying to create my own check_mysql_query
I finally managed to sove the problem adding double quotes to $1: #!/bin/bash SESIONES=$(/usr/lib64/nagios/plugins/check_mysql_query -q "$1" -u $2 -p $3 -H $4 -d $5 -P $6 -c -w $7) ESTADO=$? METRICA=$(echo ${SESIONES} | awk '{print $8}') echo "$SESIONES | Output = ${METRICA}" if ...
- Fri Oct 24, 2014 4:21 am
- Forum: Nagios XI
- Topic: Trying to create my own check_mysql_query
- Replies: 3
- Views: 1240
Trying to create my own check_mysql_query
Hi everyone! Im trying to create my own check_mysql_query (check_mysql_query2) as I want to add some features to the output but first need it to work. This is the bash script I've created: #!/bin/bash SESIONES=$(/usr/lib/nagios/plugins/check_mysql_query -q $1 -u $2 -p $3 -H $4 -d $5 -P $6 -c -w 1) E...