Page 1 of 1

Seperating /usr partition

Posted: Mon Jun 16, 2014 9:06 am
by narayanamoorthys
My /usr was under / partition and due to space crunch i had to move /usr to a new partition booting thru rescue mode. Copied all files from /usr to /usr1 and renamed /usr1 in rescue mode.

After rebooting everything is fine... Nagios, Postgresql & Mysql are up and service checks are fine. Admin->System Status show all components are good. But not able to see any performance graphs of any monitors. They are just blank.

Appreciate any help. TIA.

Re: Seperating /usr partition

Posted: Mon Jun 16, 2014 11:29 am
by slansing
Did you change the location of the original directories:

Code: Select all

/usr/local/nagios/share/perfdata/
And:

Code: Select all

/var/lib/mrtg/
Is this for all hosts/services, or only a select number? Do you see perfdata that stops at the time when you switched the partition name over on the graphs?

Re: Seperating /usr partition

Posted: Mon Jun 16, 2014 11:31 am
by abrist
First, try restarting npcd as it may be pointing to old inodes:

Code: Select all

service npcd restart
Start troubleshooting by checking the logs for errors. Enable logging by following the FAQ:
http://support.nagios.com/wiki/index.ph ... leshooting
Then run a tail of the following logs and post them here:

Code: Select all

tail -25 /usr/local/nagios/var/npcd.log
tail -25 /usr/local/nagios/var/perfdata.log
If you notice any load_threshold or TIMEOUT issues, see the following FAQ entries:
http://support.nagios.com/wiki/index.ph ... ta_Timeout
http://support.nagios.com/wiki/index.ph ... _Threshold

EDIT: Also, did you preserve permission when you copied /usr?

Re: Seperating /usr partition

Posted: Fri Jun 20, 2014 2:57 am
by narayanamoorthys
The problem is due to more number of on xipde folder. Removing after the folder as mentioned in FAQ everything is fine.

The FAQ helped a lot. Thanks.

Re: Seperating /usr partition

Posted: Fri Jun 20, 2014 12:18 pm
by abrist
No problem. I think I will move the xidpe faq entry up into the main perfdata section and generalize it as it applies to all releases. Thanks for the feedback, cheers!