Seperating /usr partition

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
narayanamoorthys
Posts: 10
Joined: Tue Dec 17, 2013 2:40 am

Seperating /usr partition

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Seperating /usr partition

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Seperating /usr partition

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
narayanamoorthys
Posts: 10
Joined: Tue Dec 17, 2013 2:40 am

Re: Seperating /usr partition

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Seperating /usr partition

Post 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!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked