Check_nrpe send command with parameter
Posted: Thu Oct 27, 2022 5:13 am
Hello everyone,
I need to call a script directly without showing it in the nagios monitoring.
get_log_transactions.sh
In nrpe.cfg on remote I have this command:
This remote is listening from X server for example
And from X server when I try to run:
What am I doing wrong?
Thank you.
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.shAnd from X server when I try to run:
Code: Select all
./check_nrpe -H X -c get_log_transactions -a 'test'
No parameter receivedThank you.