Problems with "check_as400"
Posted: Tue Jan 22, 2013 11:18 am
Hi!
I want to control my server AS 400 (it's all in Spanish) and followed the following steps:
tar-xzvf as400NagiosPlugin-018.tgz
cd as400NagiosPlugin
mkdir /usr/local/nagios/libexec/check_as400
cp *. class /usr/local/nagios/libexec/check_as400/
check_as400 cp /usr/local/nagios/libexec/check_as400/
Then create a hidden file that contains the user name and password for the AS/400 user.
cd /usr/local/nagios/libexec/check_as400/
vim .as400
USER=as400_account
PASS=as400_password
chown -R nagios.nagios /usr/local/nagios/libexec/check_as400/
chmod 700 /usr/local/nagios/libexec/check_as400/.as400
I edit the file "check_as400" and write the path Nagios, Java and plugins:
vim /usr/local/nagios/libexec/check_as400/check_as400
USER=`cat /usr/local/nagios/libexec/check_as400/.as400 | grep -e USER | cut -d = -f 2`
PASS=`cat /usr/local/nagios/libexec/check_as400.as400 | grep -e PASS | cut -d = -f 2`
/usr/bin/java -cp /usr/local/nagios/libexec/check_as400 check_as400 -u $USER -p $PASS $*
I do a test from SSH: ./check_as400 -H myserver -u xxxxx -p xxxxx -v LOGIN. The result is: "OK - Login completed successfully" but does logoff. Why? If I do a test from the web interface, the output comes out empty and if I make an application changes, this error appears: I've seen at the following URL: "http://exchange.nagios.org/directory/Pl ... 00/details" to do the following steps:
Login AS/400 Nagios check ID
CHGUSRPRF USRPRF(NAGIOS) DSPSGNINF(*NO) ---> Result is correct.
CHGSYSLIBL LIB(QSYS2984) OPTION(*ADD) ---> Result is incorrect. QSYS2984 Library not found.
I do not know follow....
Thanks in advance.
Regards.
I want to control my server AS 400 (it's all in Spanish) and followed the following steps:
tar-xzvf as400NagiosPlugin-018.tgz
cd as400NagiosPlugin
mkdir /usr/local/nagios/libexec/check_as400
cp *. class /usr/local/nagios/libexec/check_as400/
check_as400 cp /usr/local/nagios/libexec/check_as400/
Then create a hidden file that contains the user name and password for the AS/400 user.
cd /usr/local/nagios/libexec/check_as400/
vim .as400
USER=as400_account
PASS=as400_password
chown -R nagios.nagios /usr/local/nagios/libexec/check_as400/
chmod 700 /usr/local/nagios/libexec/check_as400/.as400
I edit the file "check_as400" and write the path Nagios, Java and plugins:
vim /usr/local/nagios/libexec/check_as400/check_as400
USER=`cat /usr/local/nagios/libexec/check_as400/.as400 | grep -e USER | cut -d = -f 2`
PASS=`cat /usr/local/nagios/libexec/check_as400.as400 | grep -e PASS | cut -d = -f 2`
/usr/bin/java -cp /usr/local/nagios/libexec/check_as400 check_as400 -u $USER -p $PASS $*
I do a test from SSH: ./check_as400 -H myserver -u xxxxx -p xxxxx -v LOGIN. The result is: "OK - Login completed successfully" but does logoff. Why? If I do a test from the web interface, the output comes out empty and if I make an application changes, this error appears: I've seen at the following URL: "http://exchange.nagios.org/directory/Pl ... 00/details" to do the following steps:
Login AS/400 Nagios check ID
CHGUSRPRF USRPRF(NAGIOS) DSPSGNINF(*NO) ---> Result is correct.
CHGSYSLIBL LIB(QSYS2984) OPTION(*ADD) ---> Result is incorrect. QSYS2984 Library not found.
I do not know follow....
Thanks in advance.
Regards.