Page 4 of 8

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 4:10 pm
by donnyforbes
tgriep thanks for getting back to me.... I tried to run it again from the NAGIOS server and still get this.

Code: Select all

[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
You have mail in /var/spool/mail/root
[root@nag libexec]# su - nagios
Last login: Thu Jul 13 15:25:46 PDT 2017 on pts/0
[nagios@nag ~]$ /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
[nagios@nag ~]$

I can run this from the NAGIOS server with no ISSUES at all.. see below

Code: Select all

[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs
PROCS OK: 679 processes | procs=679;;;0;
[root@nag ~]#
Also here is a listing of the files and there permission etc.

Code: Select all

[root@huey libexec]# ls -l check_informix*
-rwxrwxrwx. 1 nagios nagios 690 Nov 16 08:52 check_informix_cmsm.sh
-rwxrwxrwx. 1 nagios nagios 684 Nov 15 06:58 check_informix.sh
[root@huey libexec]#

any thought or ideas?? Please advise ..

Thanks

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 4:11 pm
by tgriep
Now that the plugin runs, you need to fill in the options that the plugin needs.
Then it should work for you.

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 4:20 pm
by donnyforbes
I don't know if it is running right still.. From the NAGIOS server I still get this error

Code: Select all

[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
[root@nag ~]#
It works on all the other ones like this one below

Code: Select all

[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs
PROCS OK: 679 processes | procs=679;;;0;
[root@nag ~]#
But it is not working on the one that I am trying to get it to work on "check_informix.sh"

***************************************************

When you say fill in the option I have all these setup in XI already, actually this is something you helped me get running july of last year LOL..
The issues was we had to wipe and rebuild the servers and when they got rebuild this was left out. So now I am having to get it working to get again...

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 4:51 pm
by donnyforbes
tgriep ---

from the NAGIOS sever this one works

Code: Select all

[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_procs
PROCS OK: 677 processes | procs=677;;;0;
[root@nag ~]#
When running the one I have been working on I get this error.

Code: Select all

[root@nag ~]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix
NRPE: Unable to read output
I have compared the files & permission on both and modified if needed to get this to work and still does not work.
here are the file and there permissions.

[

Code: Select all

root@huey libexec]# ls -l check_procs
-rwxr-xr-x. 1 root nagios 223944 Nov 16 06:34 check_procs
[root@huey libexec]#
[

Code: Select all

root@huey libexec]# ls -l check_informix.sh
-rwxrwxrwx. 1 root nagios 684 Nov 15 06:58 check_informix.sh
[root@huey libexec]#
They look exactly the same, other then check_informix.sh has 777 which should be fine.
Why would "check_procs" work and not the "check_informix.sh" Please advise need to get this working.

Re: Informix Monitoring

Posted: Fri Nov 16, 2018 5:39 pm
by donnyforbes
Can someone please help me with this? I really need to get this working today.... I feel like I am really close.
Please someone assist me with this .

Re: Informix Monitoring

Posted: Mon Nov 19, 2018 9:15 am
by tgriep
The plugin needs to have the informix directory and the name of the server as the options.
When you run the command, you need to fill in that information like the example below.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix -a '/usr/informix dueynet'
But, you will have to edit the command on the remote servers nrpe.cfg file and change this from

Code: Select all

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

Code: Select all

command[check_informix]=/usr/local/nagios/libexec/check_informix.sh $ARG1$
Save the settings and restart NRPE and post the outcome.

Re: Informix Monitoring

Posted: Mon Nov 19, 2018 1:36 pm
by donnyforbes
I am confused about this ??

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_informix -a '/usr/informix dueynet'
what do you mean add the Informix directory and the name of the server as the options? Is that in the command above?
Before I go on to the next things I want to get this first thing situated. Please advise.

Is this something you can help me figure out.

Re: Informix Monitoring

Posted: Mon Nov 19, 2018 2:15 pm
by tgriep
When you ran the plugin last Friday without any arguments, this was the output.
nagios@huey ~]$ /usr/local/nagios/libexec/check_informix.sh
USE: check_ifx informixdir informixserver

informixdir = Informix directory
informixserver = server name

This led me to be-leave that the plugin requires a directory and server name but if it does not need one, you will have to figure out your plugin's needs.

I found the Forum post from last year. You should take a look at it and replicate what was done in that ticket.
https://support.nagios.com/forum/viewto ... 7&start=40

Re: Informix Monitoring

Posted: Mon Nov 19, 2018 2:22 pm
by donnyforbes
Yeah last year you login remotely to help me get this going : ) Is this something we can do again? I really need to get this working?
Please advise and help....

Re: Informix Monitoring

Posted: Mon Nov 19, 2018 2:32 pm
by tgriep
Is this the same plugin from the previous post?
Did you look at the previous post especially pages 5 and 6?

If this a new plugin and if so, where did you get it?
Post the plugin and the link if available.