Re: NRPE Chcek_Memory on Linix
Posted: Fri Aug 19, 2016 1:15 pm
My nrpe.cfg on VMA host is this now
command[check_mem]=/usr/local/nagios/libexec/check_mem.sh -w $ARG1$ -c $ARG2$
After I changed the file I ran this
vi-admin@tgkw002:~> sudo service nrpe status
Checking for nrpe daemon... running
vi-admin@tgkw002:~> sudo service nrpe restart
Shutting down nrpe done
Starting nrpe done
Ran this on VMA host
vi-admin@tgkw002:~> sudo /usr/local/nagios/libexec/check_mem.sh -w 80% -c 90%
vi-admin's password:
/usr/local/nagios/libexec/check_mem.sh: line 1: et: command not found
error: Not a number
Ran this on Nagios Host
root@tgcs017:/home/thomas# /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.7 -t 30 -c check_mem -a '-w 80% -c 90%'
NRPE: Unable to read output
What I am doing wrong here?
command[check_mem]=/usr/local/nagios/libexec/check_mem.sh -w $ARG1$ -c $ARG2$
After I changed the file I ran this
vi-admin@tgkw002:~> sudo service nrpe status
Checking for nrpe daemon... running
vi-admin@tgkw002:~> sudo service nrpe restart
Shutting down nrpe done
Starting nrpe done
Ran this on VMA host
vi-admin@tgkw002:~> sudo /usr/local/nagios/libexec/check_mem.sh -w 80% -c 90%
vi-admin's password:
/usr/local/nagios/libexec/check_mem.sh: line 1: et: command not found
error: Not a number
Ran this on Nagios Host
root@tgcs017:/home/thomas# /usr/lib/nagios/plugins/check_nrpe -H 10.2.8.7 -t 30 -c check_mem -a '-w 80% -c 90%'
NRPE: Unable to read output
What I am doing wrong here?