I just install nagios-plugins-1.4.14 and nrpe-2.12 on the same machine by using NRPE documentation.
The installation seems to work. If I test the plugin installed with NRPE, such as check_users or check_procs, it works.
The problem is if I want to add my script called check_memory.pl
The script works, tested by others on others machine.
I add, in nrpe.cfg, the line:
I try to run it with the follow command:
and the output is:
I try to run it with -n:
and the output is:
I also read the var/log/messages file.
In the first case the output is:
Jul 26 14:58:12 pc10 xinetd[21680]: START: nrpe pid=22079 from=127.0.0.1
Jul 26 14:58:12 pc10 xinetd[21680]: EXIT: nrpe status=0 pid=22079 duration=0(sec)
In the second case is:
Jul 26 15:00:51 pc10 xinetd[21680]: START: nrpe pid=22119 from=127.0.0.1
Jul 26 15:00:51 pc10 nrpe[22119]: Error: Could not complete SSL handshake. 1
Jul 26 15:00:51 pc10 xinetd[21680]: EXIT: nrpe status=0 pid=22119 duration=0(sec)
I don’t understand why my script doesn’t works instead the test script works.
I was wondering if the problem was the command line in nrpe.cfg, but it seems to be correct.
is there any one that can help me?
thanks