IBM / nagios-for-i

MIT License
19 stars 20 forks source link

Status Unknown #7

Open bskimball opened 4 years ago

bskimball commented 4 years ago

Setting up the plugin for monitoring with Nagios XI, the plugin reported correctly for a couple days. After that time period all of the iSeries services being monitored went to a status of "unknown" with a status information reading "(No output on stdout) stderr: HostConfig-load(): java.io.EOFException: Unexpected end of ZLIB input stream"

If I remove the host and try to re-add it, I now get this error:

Register profile error:
java.io.EOFException: Unexpected end of ZLIB input stream
java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117)
java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2719)
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2735)
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3212)
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:895)
java.io.ObjectInputStream.(ObjectInputStream.java:357)
com.ibm.nagios.config.HostConfig.load(HostConfig.java:199)
com.ibm.nagios.config.HostConfig.Insert(HostConfig.java:126)
com.ibm.nagios.config.HostConfig.main(HostConfig.java:60)
Insert host failed
ghost commented 4 years ago

Hi, I have exactly the same problem as the one you described. My environment: => Nagios XI 5.7.1 on CentOS Linux release 7.8.2003 (Core); => Monitored systems: IBM i 7.1/7.2/7.3 (the problem does not depend on the system monitoring version).

zhangyan101 commented 4 years ago

This problem is caused by the file /usr/local/nagios/var/Nagios.host.java.config.ser is broken. Remove the file can fix this problem.

bskimball commented 4 years ago

Thanks I'll try it out.

Jfpilande commented 1 year ago

After removing the /usr/local/nagios/var/Nagios.host.java.config.ser the error changed to "(No output on stdout) stderr: host user profile not set"

williamlea1 commented 1 year ago

You need to run through the IBM wizard again and enter each IP address, Host name and Profile and password used to connect to that host. You dont need to put in the services but the file you removed I think stores the passwords and it needs to be rebuilt again by running the wizard and re-entering the password.

Once this is done I found that you need to do the same for the SST profile and password, you can try and do the both but found that the SST still didnt work and had to re input separately for some reason.