For some reason my Server Statistics dashlet won't display CPU information on my XI server
Everything else displays fine and I can still pull CPU load with service checks without issue. Any idea what may be wrong?
Server Statistics dashlet not showing CPU Stats
Server Statistics dashlet not showing CPU Stats
You do not have the required permissions to view the files attached to this post.
Re: Server Statistics dashlet not showing CPU Stats
What distro are you running?
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.
Edit: Profile received. Not adding this to a reply below because it would bump it from the queue.
If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.
Edit: Profile received. Not adding this to a reply below because it would bump it from the queue.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Server Statistics dashlet not showing CPU Stats
Ty. Sent that over your way.
Re: Server Statistics dashlet not showing CPU Stats
Profile received. Looks like the process that inserts system stat info into the database is coming up empty when it asks the system for it.
What output does the following command produce?
And this one?
What output does the following command produce?
Code: Select all
/usr/bin/iostat -c 5 2
Code: Select all
getenforce
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Server Statistics dashlet not showing CPU Stats
First one looks fine to me I also tried it as the Nagios account to make sure. Second one says disabled.
You do not have the required permissions to view the files attached to this post.
Re: Server Statistics dashlet not showing CPU Stats
It appears the piece of code that munges the output from the iostat program isn't compatible with both the new (Ubuntu 18+, RHEL 8+) and older (Cent7) versions.
I submitted a bug report to fix this. With any luck, it'll get included in the next release cycle of Nagios XI 5.7.6.
In the mean time, here are steps you can follow as a temporary workaround:
I submitted a bug report to fix this. With any luck, it'll get included in the next release cycle of Nagios XI 5.7.6.
In the mean time, here are steps you can follow as a temporary workaround:
- Edit /usr/local/nagiosxi/cron/sysstat.php
- On line 268, where it says:
Replace this with:
Code: Select all
$cmdline = sprintf("/usr/bin/iostat -c 5 2 | tail --lines=2 | head --lines=1 | awk '{ print $1,$2,$3,$4,$5,$6 }'");
Code: Select all
$cmdline = '/usr/bin/iostat -c 5 2 | grep -v \'^ *$\' | tail -1 | awk \'{ print $1,$2,$3,$4,$5,$6 }\'';
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Server Statistics dashlet not showing CPU Stats
Yep changed that and restarted the monitoring engine and they immediately appeared. Thank you!