I am trying to get a report for the uptime/downtime of 2 servers. Under reporting I chose "Event Log" but it doesn't return anything, it just has the spinning block.
Is there an easy way to get the uptime/downtime for a list of servers for the last 30 days?
Naigosxi 2024R1.1.3 running on RedHat 8.9
xi and reporting
-
- Posts: 327
- Joined: Wed Aug 09, 2023 9:58 am
Re: xi and reporting
Hey @kbauma01
Under reports the availability report sounds like its what you're looking for. You'll want to put the servers you want to monitor the uptime into a hostgroup or service group if you only care about services. And then under the options you can select the time period to be "this month" and then limit it to the host or service group you made.
As for the event log issue do you have any php errors in /var/log/php-fpm/www-error.log?
Under reports the availability report sounds like its what you're looking for. You'll want to put the servers you want to monitor the uptime into a hostgroup or service group if you only care about services. And then under the options you can select the time period to be "this month" and then limit it to the host or service group you made.
As for the event log issue do you have any php errors in /var/log/php-fpm/www-error.log?
-
- Posts: 43
- Joined: Wed May 25, 2022 6:39 am
Re: xi and reporting
Thanks @sgardil, that helped!
Sometimes the queries take a long time, and hang. Is that common?
These are the errors in /var/log/php-fpm/www-error.log
[11-Jun-2024 06:51:19] NOTICE: [pool www] child 2185663 started
[11-Jun-2024 06:51:19] WARNING: [pool www] child 2185663 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 3784957 exited with code 0 after 25385.380143 seconds from start
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 2190709 started
[11-Jun-2024 06:52:09] WARNING: [pool www] child 2190709 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 3796444 exited with code 0 after 25280.373611 seconds from start
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 2193027 started
[11-Jun-2024 06:52:29] WARNING: [pool www] child 2193027 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 3790458 exited with code 0 after 25406.550832 seconds from start
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 2200429 started
[11-Jun-2024 06:53:29] WARNING: [pool www] child 2200429 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 3822131 exited with code 0 after 25171.115242 seconds from start
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 2208842 started
[11-Jun-2024 06:54:49] WARNING: [pool www] child 2208842 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 3803707 exited with code 0 after 25381.947782 seconds from start
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 2210719 started
[11-Jun-2024 06:55:19] WARNING: [pool www] child 2210719 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 07:00:02] NOTICE: [pool www] child 3847586 exited with code 0 after 25203.011058 seconds from start
Sometimes the queries take a long time, and hang. Is that common?
These are the errors in /var/log/php-fpm/www-error.log
[11-Jun-2024 06:51:19] NOTICE: [pool www] child 2185663 started
[11-Jun-2024 06:51:19] WARNING: [pool www] child 2185663 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 3784957 exited with code 0 after 25385.380143 seconds from start
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 2190709 started
[11-Jun-2024 06:52:09] WARNING: [pool www] child 2190709 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 3796444 exited with code 0 after 25280.373611 seconds from start
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 2193027 started
[11-Jun-2024 06:52:29] WARNING: [pool www] child 2193027 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 3790458 exited with code 0 after 25406.550832 seconds from start
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 2200429 started
[11-Jun-2024 06:53:29] WARNING: [pool www] child 2200429 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 3822131 exited with code 0 after 25171.115242 seconds from start
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 2208842 started
[11-Jun-2024 06:54:49] WARNING: [pool www] child 2208842 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 3803707 exited with code 0 after 25381.947782 seconds from start
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 2210719 started
[11-Jun-2024 06:55:19] WARNING: [pool www] child 2210719 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 07:00:02] NOTICE: [pool www] child 3847586 exited with code 0 after 25203.011058 seconds from start
-
- Posts: 327
- Joined: Wed Aug 09, 2023 9:58 am
Re: xi and reporting
Does it consistently take a long time? I don't have any issues however with varying speed however I have only viewed these on a small system (under 100 hosts and under 1000 services). I could see things taking longer if you have a large system and I could see it taking longer, especially if there is a large load on your system for the hardware provided. As for the event log issue I don't see any issue in those php logs. By any chance do you get any console log errors while in the event log page? If you are unsure how to check if you right click the page and click the "inspect" option it will open up a side tab. The errors will be under the console section (may be under ">>" if the dev tools are in a small view port). I'm unable to reproduce the issue but I will get back to you on it if I find something.kbauma01 wrote: ↑Tue Jun 11, 2024 8:59 am Thanks @sgardil, that helped!
Sometimes the queries take a long time, and hang. Is that common?
These are the errors in /var/log/php-fpm/www-error.log
[11-Jun-2024 06:51:19] NOTICE: [pool www] child 2185663 started
[11-Jun-2024 06:51:19] WARNING: [pool www] child 2185663 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 3784957 exited with code 0 after 25385.380143 seconds from start
[11-Jun-2024 06:52:09] NOTICE: [pool www] child 2190709 started
[11-Jun-2024 06:52:09] WARNING: [pool www] child 2190709 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 3796444 exited with code 0 after 25280.373611 seconds from start
[11-Jun-2024 06:52:29] NOTICE: [pool www] child 2193027 started
[11-Jun-2024 06:52:29] WARNING: [pool www] child 2193027 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 3790458 exited with code 0 after 25406.550832 seconds from start
[11-Jun-2024 06:53:29] NOTICE: [pool www] child 2200429 started
[11-Jun-2024 06:53:29] WARNING: [pool www] child 2200429 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 3822131 exited with code 0 after 25171.115242 seconds from start
[11-Jun-2024 06:54:49] NOTICE: [pool www] child 2208842 started
[11-Jun-2024 06:54:49] WARNING: [pool www] child 2208842 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 3803707 exited with code 0 after 25381.947782 seconds from start
[11-Jun-2024 06:55:19] NOTICE: [pool www] child 2210719 started
[11-Jun-2024 06:55:19] WARNING: [pool www] child 2210719 said into stderr: "ERROR: Unable to set php_value 'soap.wsdl_cache_dir'"
[11-Jun-2024 07:00:02] NOTICE: [pool www] child 3847586 exited with code 0 after 25203.011058 seconds from start