I need to call a script directly without showing it in the nagios monitoring.
get_log_transactions.sh
Code: Select all
#!/bin/bash
if [[ $# -gt 0 ]]
then
echo "Parameter $1 received"
else
echo "No parameter received"
fi
exit 0
Code: Select all
command[get_log_transactions]=/opt/nagios/libexec/IM/get_log_transactions.sh
And from X server when I try to run:
Code: Select all
./check_nrpe -H X -c get_log_transactions -a 'test'
No parameter received
Thank you.