Informix Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Informix Monitoring

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Informix Monitoring

Post by scottwilkerson »

Did you install the NRPE agent on the remote system?

https://assets.nagios.com/downloads/nag ... _Agent.pdf
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Informix Monitoring

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Informix Monitoring

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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
Locked