Comments and Acknowledgements Not Working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cstuart
Posts: 37
Joined: Thu May 02, 2019 8:18 am

Comments and Acknowledgements Not Working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Comments and Acknowledgements Not Working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Comments and Acknowledgements Not Working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Comments and Acknowledgements Not Working

Post 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.
cstuart
Posts: 37
Joined: Thu May 02, 2019 8:18 am

Re: Comments and Acknowledgements Not Working

Post by cstuart »

That did the trick. Is this something that I should be concerned about with my other 7 instances?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Comments and Acknowledgements Not Working

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked