Informix Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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
Last edited by donnyforbes on Fri Nov 16, 2018 4:15 pm, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Informix Monitoring

Post by tgriep »

Now that the plugin runs, you need to fill in the options that the plugin needs.
Then it should work for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

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

Re: Informix Monitoring

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

Re: Informix Monitoring

Post 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 .
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Informix Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Informix Monitoring

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Informix Monitoring

Post 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....
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Informix Monitoring

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked