@benjaminsmith,
Please find below response to the queries:
Can you log into the server with the script installed and run the plugin and post the output? Is the plugin returning proper output?
From the remote host the script is working fine.
Code: Select all
wassrv@csbtipdcapmdw05 /data/Oracle/Middleware/logs> /usr/local/nagios/libexec/check_oim 10.92.34.66 nossl
Nagios OIM status OK
wassrv@csbtipdcapmdw05 /data/Oracle/Middleware/logs>
please upload the NRPE configuration file ( /usr/local/nagios/etc/nrpe ) for us to review.
Uploading all the files involved. Please ignore the older files as I made few minor changes to the files for troubleshootings.
I believe you're getting that error message as the script does not recognize the arguments:
I think so. The below condition is expecting TWO parameters, even passing these parameters triggering the message. But this is clear that CHECK_NRPE is able to execute the check_oim on remote server.
Code: Select all
if [ $# -lt 2 ]
then
echo "this is issue with parameters:::: first: $1 .....second: $2 --------third: $3"
exit 0
fi
Just to test it, I commented out this condition.
and tried the command which is throwing message as below.
Code: Select all
[guptaa@cacbigdcapmdw51 ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.92.34.49 -c check_oim 10.92.34.49, nossl NRPE: Unable to read output
My understanding says that the command should OIM status message based on value returned for "$status".
Code: Select all
if [ $status -gt 0 ]
then
nagiosstat=Ok
echo "Nagios OIM status OK"
exit 0
else
nagiosstat=Down
echo "Nagios OIM status Down"
ssh wassrv@$host tail -100 /data/Oracle/Middleware/user_projects/domains/IAMDomain/servers/oim_server${serverid}/logs/oim_server{$serverid}.log
exit 2
fi
Please guide if I there is something wrong .
You do not have the required permissions to view the files attached to this post.