Page 1 of 1
Comments and Acknowledgements Not Working
Posted: Mon Apr 27, 2020 4:07 pm
by cstuart
On one of my servers, I am unable to comment and/or acknowledge on services. I'm not receiving any errors in the web interface, but nothing happens.
I saw that I was down to 4 GB of free space on my root partition, so I followed the directions expand it here:
https://support.nagios.com/kb/article.php?id=814
I have also run /usr/local/nagiosxi/scripts/repair_databases.sh
Re: Comments and Acknowledgements Not Working
Posted: Mon Apr 27, 2020 4:31 pm
by ssax
Please PM me a copy of your profile, you can download it from
Admin > System Profile > Download Profile.
Attach the output of these commands as well:
Code: Select all
chage -l nagios
grep nag /etc/group
ls -lh /usr/local/nagios/var
ls -lh /usr/local/nagios/var/rw
Thank you
Re: Comments and Acknowledgements Not Working
Posted: Tue Apr 28, 2020 12:59 pm
by ssax
I don't see anything in your profile that's standing out.
Please run these commands and let me know if that resolves your issue:
Code: Select all
systemctl stop httpd
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
pkill -9 -u apache
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -f /usr/local/nagiosxi/var/dbmaint.lock
rm -f /usr/local/nagiosxi/var/event_handler.lock
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
rm -f /usr/local/nagiosxi/tmp/reconfigure_nagios.lock
rm -f /usr/local/nagios/var/ndo2db.lock
rm -f /usr/local/nagios/var/ndo2db.pid
rm -f /usr/local/nagios/var/ndo2db.sock
rm -f /usr/local/nagios/var/ndo.sock
rm -f /us/local/nagiosxi/var/subsys/ndo2db
rm -f /var/run/nagios/nagios.lock
rm -f /var/run/nagios.lock
rm -f /usr/local/nagios/var/nagios.lock
rm -f /var/run/httpd/httpd.pid
systemctl restart mariadb
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
systemctl restart snmptt
Additionally, please send the output of these commands (as root):
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is offloaded to another server and/or you've changed the root mysql password
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
Re: Comments and Acknowledgements Not Working
Posted: Tue Apr 28, 2020 3:31 pm
by ssax
First, login to the web interface as the nagiosadmin user.
Then edit your
/usr/local/nagios/etc/cgi.cfgand change it to this:
Code: Select all
# MODIFIED
default_statusmap_layout=6
# UNMODIFIED
action_url_target=_blank
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_system_information=nagiosadmin
default_statuswrl_layout=4
escape_html_tags=0
lock_author_names=1
main_config_file=/usr/local/nagios/etc/nagios.cfg
notes_url_target=_blank
physical_html_path=/usr/local/nagios/share
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate=90
show_context_help=0
url_html_path=/nagios
use_authentication=1
use_pending_states=1
use_ssl_authentication=0
Now edit any user in
Admin > Manage Users, no need to make any changes, just click the
Update User button.
Now apply config and everything should work, test and let us know the results.
Re: Comments and Acknowledgements Not Working
Posted: Wed Apr 29, 2020 1:40 pm
by cstuart
That did the trick. Is this something that I should be concerned about with my other 7 instances?
Re: Comments and Acknowledgements Not Working
Posted: Wed Apr 29, 2020 4:24 pm
by lmiltchev
I am glad your issue has been resolved! You shouldn't be concerned with your other 7 instances. If you run into any new issues, please start a new thread. Thank you!