Need some Clarifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

Code: Select all

[root@ma209dlvmon835 static]# /bin/bash -x /usr/local/nagiosxi/scripts/reset_config_perms.sh
+++ dirname /usr/local/nagiosxi/scripts/reset_config_perms.sh
++ cd /usr/local/nagiosxi/scripts
++ pwd
+ DIR=/usr/local/nagiosxi/scripts
+ source /usr/local/nagiosxi/scripts/../var/xi-sys.cfg
++ apachegroup=apache
++ apacheuser=apache
++ chownbin=/bin/chown
++ groupaddbin=/usr/sbin/groupadd
++ groupdelbin=/usr/sbin/groupdel
++ htpasswdbin=/usr/bin/htpasswd
++ httpdconfdir=/etc/httpd/conf.d
++ httpdconf=/etc/httpd/conf/httpd.conf
++ httpdroot=/var/www/html
++ httpd=httpd
++ ntpd=ntpd
++ crond=crond
++ mkdirbin=/bin/mkdir
++ mrtgcfg=/etc/mrtg/mrtg.cfg
++ mysqld=mysqld
++ pgsqlrootpass=postgres
++ pgsqlpass=nagiosxi
++ nagioscmdgroup=nagcmd
++ nagiosgroup=nagios
++ nagiosuser=nagios
++ nagioswebpwd=nagiosadmin
++ nagioswebuser=nagiosadmin
++ phpconfd=/etc/php.d
++ phpini=/etc/php.ini
++ proddir=/usr/local/nagiosxi
++ useraddbin=/usr/sbin/useradd
++ usermodbin=/usr/sbin/usermod
++ userdelbin=/usr/sbin/userdel
++ xiver=5.2.0
++ distro=RedHatEnterpriseServer
++ version=6.6
++ ver=6
++ architecture=x86_64
++ dist=el6
++ arch=x86_64
++ php_extension_dir=/usr/lib64/php/modules
++ mysqlpass=nagiosxi
+ echo 'RESETTING PERMS'
RESETTING PERMS
+ /bin/chown nagios.nagios /usr/local/nagiosxi/scripts/nagiosql.cookies /usr/local/nagiosxi/scripts/nagiosql_defaults.sql /usr/local/nagiosxi/scripts/nagiosql_delete_contact.php /usr/local/nagiosxi/scripts/nagiosql_delete_host.php /usr/local/nagiosxi/scripts/nagiosql_delete_object.sh /usr/local/nagiosxi/scripts/nagiosql_delete_service.php /usr/local/nagiosxi/scripts/nagiosql_delete_timeperiod.php /usr/local/nagiosxi/scripts/nagiosql_exportall.php /usr/local/nagiosxi/scripts/nagiosql.export.monitoring /usr/local/nagiosxi/scripts/nagiosql_importall.php /usr/local/nagiosxi/scripts/nagiosql.import.monitoring /usr/local/nagiosxi/scripts/nagiosql.login /usr/local/nagiosxi/scripts/nagiosql_login.php /usr/local/nagiosxi/scripts/nagiosql_snapshot.sh /usr/local/nagiosxi/scripts/nagiosql_trim_backups.sh
+ /bin/chmod 775 /usr/local/nagiosxi/scripts/nagiosql.cookies /usr/local/nagiosxi/scripts/nagiosql_defaults.sql /usr/local/nagiosxi/scripts/nagiosql_delete_contact.php /usr/local/nagiosxi/scripts/nagiosql_delete_host.php /usr/local/nagiosxi/scripts/nagiosql_delete_object.sh /usr/local/nagiosxi/scripts/nagiosql_delete_service.php /usr/local/nagiosxi/scripts/nagiosql_delete_timeperiod.php /usr/local/nagiosxi/scripts/nagiosql_exportall.php /usr/local/nagiosxi/scripts/nagiosql.export.monitoring /usr/local/nagiosxi/scripts/nagiosql_importall.php /usr/local/nagiosxi/scripts/nagiosql.import.monitoring /usr/local/nagiosxi/scripts/nagiosql.login /usr/local/nagiosxi/scripts/nagiosql_login.php /usr/local/nagiosxi/scripts/nagiosql_snapshot.sh /usr/local/nagiosxi/scripts/nagiosql_trim_backups.sh
+ /bin/chown -R apache:nagios /usr/local/nagios/etc/
+ /bin/chmod -R ug+rw /usr/local/nagios/etc/
+ /bin/chmod -R 775 /usr/local/nagios/share/perfdata/
it's just sit there
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Need some Clarifications

Post by ssax »

You may have so much perfdata that it's taking forever, please edit the file and comment out this line:

Code: Select all

/bin/chmod -R 775 /usr/local/nagios/share/perfdata/
So it looks like this:

Code: Select all

#/bin/chmod -R 775 /usr/local/nagios/share/perfdata/
And then run it again and see if it completes.

Also send the output of these commands:

Code: Select all

find /usr/local/nagios/share/perfdata -type f | wc -l
du -sh /usr/local/nagios/share/perfdata/*
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

ssax,

where is that file i need to edit
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

Can we setup up a remote session? our servers is really crashing
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

Code: Select all

[root@ma209dlvmon835 ~]# find /usr/local/nagios/share/perfdata -type f | wc -l
618487
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Need some Clarifications

Post by avandemore »

This is the file to edit: /usr/local/nagiosxi/scripts/reset_config_perms.sh
Previous Nagios employee
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Need some Clarifications

Post by ssax »

Here, sorry:

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
Then run these commands:

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db stop
pkill -u nagios
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
service npcd start
If that doesn't fix your issue, please send in an email to [email protected] with a descriptive subject and detailed body with a link back to this thread to create a ticket.

Thank you
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

everytime is start npcd service the load start increasing as well
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Need some Clarifications

Post by haile711 »

ssax,

I have created a support ticket
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Need some Clarifications

Post by ssax »

Ticket received, locking this thread as we will continue support through the ticket.

Thank you
Locked