Let's try the command like this.
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H satmbeist1.tamusa.tamus.edu -t Linux-tamusa -P 5693 -M plugins/check_wlsagent.sh -a "satmbeist1.tamusa.tamus.edu 9090 'username=weblogic&password=dWyRbMW3CfrzpwDDMHiqnssD&hostname=localhost&port=7001&component=BannerEventPublisher-9,1,1'"
Though I am a little confused by this. When everything reaches the check_wlsagent.sh script, it will look something like this.
Code: Select all
wget -q -O - http://satmbeist1.tamusa.tamus.edu:9090/wlsagent/WLSAgent --post-data='username=weblogic&password=dWyRbMW3CfrzpwDDMHiqnssD&hostname=localhost&port=7001&component=BannerEventPublisher-9,1,1' 2> /dev/null
This looks like it's calling the same server that check_ncpa.py is calling, only to then make a call to localhost. I don't know if that's a normal function of WebLogic or not. I guess let's try the first command, the check_ncpa command. If that works the way you want it to, great. If not, try the wget command from the remote server. Maybe also the Nagios server just to see what it returns.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy.
Be sure to check out our
Knowledgebase for helpful articles and solutions!