I ran this from the XI server
Code: Select all
[root@nag libexec]# /usr/local/nagios/libexec/check_nrpe -H 192.168.1.42 -c check_ifx -a '/usr/informix hueynet'
NRPE: Unable to read output
[root@nag libexec]#
And this is the same error I see in the XI console. I also view the config on the XI console and posted it below.
Code: Select all
define service {
host_name huey.sg1.allamericanasphalt.com
service_description Informix
use xiwizard_nrpe_service
display_name Infx
check_command check_nrpe!check_ifx!-a '/usr/informix hueynet'!!!!!!
initial_state c
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts nagiosadmin
register 1
}
where do I add this in the file what section?
Code: Select all
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_ifx.sh *
nagios ALL=NOPASSWD: /usr/informix/bin/onstat *
Do I add it here..
Code: Select all
# NEEDED TO ALLOW NAGIOS TO CHECK SERVICE STATUS
Defaults:nagios !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
I checked the server that the script work on and it does not have these in the /etc/sudoers .... but maybe that's why its not showing on as OK in the XI
I added it here.
# NEEDED TO ALLOW NAGIOS TO CHECK SERVICE STATUS
Defaults:nagios !requiretty
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_ifx.sh *
nagios ALL=NOPASSWD: /usr/informix/bin/onstat *
I am still seeing this in the XI. What am I doing wrong??? Please advise.
Why when I run the following on the other two servers I see this for the output?
Code: Select all
[root@louie libexec]# /usr/local/nagios/libexec/check_ifx.sh
CRITICAL
When I run it on the main server the first one I see this.
Code: Select all
[root@huey libexec]# /usr/local/nagios/libexec/check_ifx.sh
IBM Informix Dynamic Server Version 12.10.FC8W2WE -- On-Line (Prim) -- Up 4 days 00:06:18 -- 1034088 Kbytes
[root@huey libexec]#
This should be the same on all servers unless I am missing something. I did modify the INFORMIXSERVER= (to the correct servers)
Now sure why this is happening any advise would be great.
You do not have the required permissions to view the files attached to this post.