Page 1 of 2
cpu usage over time
Posted: Wed Apr 27, 2016 11:00 am
by bladezz
Hi all,
I have been writing a proposal to buy nagiosxi but what I have been asked is if we can monitor a possible ramp up in cpu usage over time giving an average peak and overload stats. I know that this can be identified by creating a graph of cpu usage but is there a way for it to be shown within Nagios as a monitoring preference so say Monday it was reaching a max of 75% Tuesday it was reaching 80% Wednesday 85%. Hope you can advise I have looked at many of the monitoring plugins but none seem to do this.
Re: cpu usage over time
Posted: Wed Apr 27, 2016 11:14 am
by tmcdonald
What you are looking for is basically dynamic thresholds, which can be done with a third-party plugin called bischeck:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
It can take some time to set up and understand, but it's pretty powerful once you do.
Re: cpu usage over time
Posted: Wed Apr 27, 2016 11:58 am
by bladezz
Thanks for the quick response tmcdonald I will look into this tomorrow when back in work and update on the results.
Re: cpu usage over time
Posted: Wed Apr 27, 2016 12:21 pm
by rkennedy
Sounds good - let us know if you have any further questions.
Re: cpu usage over time
Posted: Wed May 11, 2016 4:26 am
by bladezz
not been very successful in setting bischeck up. I have followed the instructions(
https://assets.nagios.com/downloads/nag ... 1461851568) to determine the root usage but when i run the command tail -f /var/tmp/bischeck.log i get the following response
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:129)
... 16 common frames omitted
2016-05-10 15:35:55.775 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************* Shutdown ********************
2016-05-10 15:35:55.829 ; INFO ; dumpcache ; com.ingby.socbox.bischeck.cache.CacheFactory ; Cache provider destroyed com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache
2016-05-10 15:35:55.830 ; INFO ; Thread-4 ; com.ingby.socbox.bischeck.Execute ; Shutdown request
does anyone have any ideas ?
Re: cpu usage over time
Posted: Wed May 11, 2016 2:01 pm
by rkennedy
What version of java do you have installed on the machine?
Re: cpu usage over time
Posted: Thu May 12, 2016 8:12 am
by bladezz
I have java version 8 installed and i have also installed redis and since this the service starts running without failing i confirmed this by typing service bischeckd status i get the response of is running pid 17684. I then try the command:-
tail -f /var/tmp/bischeck.log
and get the below response :-
Code: Select all
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:129)
... 16 common frames omitted
2016-05-10 15:35:55.775 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************* Shutdown ********************
2016-05-10 15:35:55.829 ; INFO ; dumpcache ; com.ingby.socbox.bischeck.cache.CacheFactory ; Cache provider destroyed com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache
2016-05-10 15:35:55.830 ; INFO ; Thread-4 ; com.ingby.socbox.bischeck.Execute ; Shutdown request
pid 17684
Re: cpu usage over time
Posted: Thu May 12, 2016 5:04 pm
by ssax
We need the top of that error output, your tail is cutting off the top:
Thank you
Re: cpu usage over time
Posted: Fri May 13, 2016 1:32 am
by bladezz
Hi Thanks for the command to show the full error please find the output below
Code: Select all
[root@nagioxi ~]# tail -fn500 /var/tmp/bischeck.log
2016-04-28 16:57:06.741 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 16:57:06.755 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initonce(ConfigurationManager.java:230)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.main(ConfigurationManager.java:162)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 16:57:06.758 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 713 ms
2016-04-28 16:57:10.383 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 16:57:10.390 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initonce(ConfigurationManager.java:230)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.main(ConfigurationManager.java:162)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 16:57:10.392 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 426 ms
2016-04-28 16:57:13.145 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 16:57:13.189 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.init(ConfigurationManager.java:241)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:146)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 16:57:13.195 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 1333 ms
2016-04-28 16:57:13.195 ; ERROR ; main ; com.ingby.socbox.bischeck.Execute ; Creating bischeck Configuration Manager failed with: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.init(ConfigurationManager.java:241)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:146)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 17:03:43.235 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 17:03:43.251 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initonce(ConfigurationManager.java:230)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.main(ConfigurationManager.java:162)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 17:03:43.254 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 971 ms
2016-04-28 17:03:46.487 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 17:03:46.497 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initonce(ConfigurationManager.java:230)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.main(ConfigurationManager.java:162)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 17:03:46.498 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 1259 ms
2016-04-28 17:03:47.885 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; The serviceitem template sshporttemplate is not in the configuration
2016-04-28 17:03:47.891 ; ERROR ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration Manager initzialization failed with com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.init(ConfigurationManager.java:241)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:146)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-04-28 17:03:47.892 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 378 ms
2016-04-28 17:03:47.892 ; ERROR ; main ; com.ingby.socbox.bischeck.Execute ; Creating bischeck Configuration Manager failed with: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configurationcom.ingby.socbox.bischeck.configuration.ConfigurationException: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:355)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initConfiguration(ConfigurationManager.java:260)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.init(ConfigurationManager.java:241)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:146)
Caused by: com.ingby.socbox.bischeck.serviceitem.ServiceItemFactoryException: The serviceitem template sshporttemplate is not in the configuration
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupService(ConfigurationManager.java:455)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.setupHost(ConfigurationManager.java:420)
at com.ingby.socbox.bischeck.configuration.ConfigurationManager.initBischeckServices(ConfigurationManager.java:351)
... 3 common frames omitted
2016-05-05 11:51:35.795 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-05 11:51:35.861 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 1379 ms
2016-05-05 11:51:38.268 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-05 11:51:38.292 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 786 ms
2016-05-05 11:51:38.292 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************** Startup *******************
2016-05-05 11:51:38.456 ; INFO ; main ; com.ingby.socbox.bischeck.internal.InternalSurveillance ; Internal has been scheduled to run at: Thu May 05 10:55:00 BST 2016 and repeat based on expression: 0 */5 * * * ? *
2016-05-05 11:51:38.466 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; Bisheck version is 1.1.2
2016-05-05 11:51:38.472 ; INFO ; main ; com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper ; Max active: 50 Max Idel: 8 When exhusted: 1
2016-05-05 11:51:38.547 ; ERROR ; main ; com.ingby.socbox.bischeck.Execute ; Cache factory init failed - exitcom.ingby.socbox.bischeck.cache.CacheException: java.lang.reflect.InvocationTargetException
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:86)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:54)
at com.ingby.socbox.bischeck.Execute.deamon(Execute.java:193)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:157)
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:73)
... 3 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:22)
at com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper.getResource(JedisPoolWrapper.java:60)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.testConnection(LastStatusCache.java:958)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.init(LastStatusCache.java:182)
... 8 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:134)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1665)
at redis.clients.jedis.JedisPool$JedisFactory.makeObject(JedisPool.java:72)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at redis.clients.util.Pool.getResource(Pool.java:20)
... 11 common frames omitted
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:129)
... 16 common frames omitted
2016-05-05 11:51:38.548 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************* Shutdown ********************
2016-05-05 11:51:38.549 ; INFO ; dumpcache ; com.ingby.socbox.bischeck.cache.CacheFactory ; Cache provider destroyed com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache
2016-05-05 11:51:38.551 ; INFO ; Thread-4 ; com.ingby.socbox.bischeck.Execute ; Shutdown request
2016-05-09 17:05:06.785 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-09 17:05:06.801 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 1310 ms
2016-05-09 17:05:09.489 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-09 17:05:09.494 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 597 ms
2016-05-09 17:05:09.494 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************** Startup *******************
2016-05-09 17:05:09.590 ; INFO ; main ; com.ingby.socbox.bischeck.internal.InternalSurveillance ; Internal has been scheduled to run at: Mon May 09 16:10:00 BST 2016 and repeat based on expression: 0 */5 * * * ? *
2016-05-09 17:05:09.596 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; Bisheck version is 1.1.2
2016-05-09 17:05:09.602 ; INFO ; main ; com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper ; Max active: 50 Max Idel: 8 When exhusted: 1
2016-05-09 17:05:09.667 ; ERROR ; main ; com.ingby.socbox.bischeck.Execute ; Cache factory init failed - exitcom.ingby.socbox.bischeck.cache.CacheException: java.lang.reflect.InvocationTargetException
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:86)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:54)
at com.ingby.socbox.bischeck.Execute.deamon(Execute.java:193)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:157)
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:73)
... 3 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:22)
at com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper.getResource(JedisPoolWrapper.java:60)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.testConnection(LastStatusCache.java:958)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.init(LastStatusCache.java:182)
... 8 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:134)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1665)
at redis.clients.jedis.JedisPool$JedisFactory.makeObject(JedisPool.java:72)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at redis.clients.util.Pool.getResource(Pool.java:20)
... 11 common frames omitted
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:129)
... 16 common frames omitted
2016-05-09 17:05:09.667 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************* Shutdown ********************
2016-05-09 17:05:09.668 ; INFO ; dumpcache ; com.ingby.socbox.bischeck.cache.CacheFactory ; Cache provider destroyed com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache
2016-05-09 17:05:09.669 ; INFO ; Thread-4 ; com.ingby.socbox.bischeck.Execute ; Shutdown request
2016-05-10 15:35:49.787 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-10 15:35:49.798 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 652 ms
2016-05-10 15:35:52.650 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-10 15:35:52.662 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 751 ms
2016-05-10 15:35:55.506 ; INFO ; main ; com.ingby.socbox.bischeck.threshold.ThresholdFactory ; Clear threshold cache
2016-05-10 15:35:55.524 ; INFO ; main ; com.ingby.socbox.bischeck.configuration.ConfigurationManager ; Configuration init time: 741 ms
2016-05-10 15:35:55.524 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************** Startup *******************
2016-05-10 15:35:55.669 ; INFO ; main ; com.ingby.socbox.bischeck.internal.InternalSurveillance ; Internal has been scheduled to run at: Tue May 10 14:40:00 BST 2016 and repeat based on expression: 0 */5 * * * ? *
2016-05-10 15:35:55.671 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; Bisheck version is 1.1.2
2016-05-10 15:35:55.686 ; INFO ; main ; com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper ; Max active: 50 Max Idel: 8 When exhusted: 1
2016-05-10 15:35:55.755 ; ERROR ; main ; com.ingby.socbox.bischeck.Execute ; Cache factory init failed - exitcom.ingby.socbox.bischeck.cache.CacheException: java.lang.reflect.InvocationTargetException
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:86)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:54)
at com.ingby.socbox.bischeck.Execute.deamon(Execute.java:193)
at com.ingby.socbox.bischeck.Execute.main(Execute.java:157)
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.ingby.socbox.bischeck.cache.CacheFactory.init(CacheFactory.java:73)
... 3 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:22)
at com.ingby.socbox.bischeck.cache.provider.redis.JedisPoolWrapper.getResource(JedisPoolWrapper.java:60)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.testConnection(LastStatusCache.java:958)
at com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache.init(LastStatusCache.java:182)
... 8 common frames omitted
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused
at redis.clients.jedis.Connection.connect(Connection.java:134)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:69)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1665)
at redis.clients.jedis.JedisPool$JedisFactory.makeObject(JedisPool.java:72)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
at redis.clients.util.Pool.getResource(Pool.java:20)
... 11 common frames omitted
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:129)
... 16 common frames omitted
2016-05-10 15:35:55.775 ; INFO ; main ; com.ingby.socbox.bischeck.Execute ; ******************* Shutdown ********************
2016-05-10 15:35:55.829 ; INFO ; dumpcache ; com.ingby.socbox.bischeck.cache.CacheFactory ; Cache provider destroyed com.ingby.socbox.bischeck.cache.provider.redis.LastStatusCache
2016-05-10 15:35:55.830 ; INFO ; Thread-4 ; com.ingby.socbox.bischeck.Execute ; Shutdown request
Re: cpu usage over time
Posted: Fri May 13, 2016 11:08 am
by ssax
Please attach (or PM) your bischeck configuration files that you've modified.
Thank you