Hello!
I’ve got a problem with Nagios NRPE plugin. The idea is to run a
command that tells me, if a Oracle TNS Listener is running on a remote
host. When I execute the following command locally:
$ ps -ef | grep -v grep | grep -c "tnslsnr"
i get a result: 1 (or more) when a tnslsnr is running
0 - when it’s not.
Here is the problem: i defined this command in the nrpe.cfg file. When
executing it via NRPE Nagios plugin I get the information that no
Listener is running on a remote host, but when I log in on that host I
can see clearly, that the listener process is running. I’ve got no
idea how to solve it. I’d like to add that the amount of other
processes that i check locally and via NRPE (e.g. bash or Oracle
instances) is equal. I’ve got 8 servers operating under SuSe and
RedHat, each is configured in the same way, but 3 of them aren’t
giving me the proper information about TNSListener. Can anyone help
me?
Thanks in advance:)
PS. Already checked spelling. Everything is all right with it,