Page 2 of 8

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 2:46 pm
by scottwilkerson
I just looked at your previous post

Code: Select all

[root@huey libexec]# netstat -na | grep 5666
tcp        0      0 192.168.1.42:10022      192.168.1.49:55666      ESTABLISHED
this is not nrpe listening on 5666, this is something else

Do you have the following file?

Code: Select all

ls -al /etc/xinetd.d/nrpe
How/when did you install nrpe? It may not be using xinetd, what do you get if you run this?

Code: Select all

service nrpe status

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 4:21 pm
by donnyforbes
We are using nagiosXI not sure if that makes a difference or not. Here is the output of what you asked

[root@huey /]# ls -al /etc/xinetd.d/nrpe
ls: cannot access /etc/xinetd.d/nrpe: No such file or directory

root@huey /]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
Unit nrpe.service could not be found.
[root@huey /]#


is this using something else? As you can see from the picture below this server and others are being monitored.

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 5:41 pm
by scottwilkerson
Did you install the NRPE agent on the remote system?

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 5:57 pm
by donnyforbes
I thought it was installed, but maybe its not now. How could it be monitoring the other two things if it was not installed?
I send you a screenshot is that something different?

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 5:59 pm
by scottwilkerson
donnyforbes wrote:I thought it was installed, but maybe its not now. How could it be monitoring the other two things if it was not installed?
I send you a screenshot is that something different?
You are only monitoring Ping on huey

Ping doesn't require an agent

Re: Informix Monitoring

Posted: Thu Nov 15, 2018 6:06 pm
by donnyforbes
ok this makes since. I just checked the servers and NRPE agent has not been installed.
When I install these agents I put the IP address of the nagios server when asked correct?

I have a question. I will install this it is a production environment so if it causes issue which I don't expect it to, how can I uninstall it?
Just need to make sure I know how to do this. I see ./fullinstall however don't see a uninstall

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 8:11 am
by scottwilkerson
donnyforbes wrote: When I install these agents I put the IP address of the nagios server when asked correct?
yes
donnyforbes wrote:I have a question. I will install this it is a production environment so if it causes issue which I don't expect it to, how can I uninstall it?
Just need to make sure I know how to do this. I see ./fullinstall however don't see a uninstall
There isn't a uninstall script for the agent, however you can simply remove the xinetd service file and restart

Code: Select all

rm -f /etc/xinetd.d/nrpe 
service xinetd restart
Removal of all file added can be accomplished with the following on the client

Code: Select all

rm -rf /usr/local/nagios

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 9:49 am
by donnyforbes
I installed the NRPE agents on each remote server. From the server running nagios I ran the following command below, but it did not work

Code: Select all

[root@nag etc]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Command 'check_informix' not defined
[root@nag etc]#

Please advise is there a file or something I need to update or add a command to? If so what server do I do it on the NAGIOS server or the remote servers?

Thanks

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 10:41 am
by donnyforbes
I do see this on the nagios server in the /usr/local/nagios/etc/nrpe.cfg file

Code: Select all

command[check_informix]=/usr/local/nagios/libexec/check_informix.sh

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 11:06 am
by donnyforbes
I did fine another one that was in the NRPE.cfg file called this below and it worked fine.

Code: Select all

[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs
PROCS OK: 669 processes | procs=669;;;0;
is there something wrong with the my command in the nrpe.cfg file? Please advise