Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


admin loop screen, but its been working for 3 months????

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Fri Mar 07, 2003 11:10 am    Post subject: admin loop screen, but its been working for 3 months???? Reply with quote

I have a redhat 7.3 system that has been cruising along for 3 months now and all of a sudden I am getting the admin loop screen???? Very starnge. I think it could be a system issue, because the startx command just produces errors now? I had one interesting piece of info in my mail on the box. This message was sent to root:

Date: Fri, 7 Mar 2003 04:02:03 -0500
From: Cron Daemon <root@localhost.localdomain>
To: root@localhost.localdomain
Subject: Cron <root@cacti> run-parts /etc/cron.daily

/etc/cron.daily/makewhatis.cron:

cat: write error: No space left on device


I have looked at the discussions dealing with teh loop problem and made sure all of my settings are correct. Not sure where to look for a problem, looks like a space issue but there is plenty of room? Any starting suggestion.
Back to top
BSDeality



Joined: 08 Oct 2002
Posts: 35
Location: Connecticut

PostPosted: Fri Mar 07, 2003 11:48 am    Post subject: Reply with quote

Quote:
cat: write error: No space left on device
That's your problem. do a
Code:
du -h
and one or more of our drives is out of space.
Back to top
bulek
Cacti Pro User


Joined: 20 May 2002
Posts: 852
Location: Poland

PostPosted: Fri Mar 07, 2003 12:44 pm    Post subject: Reply with quote

Before doing "du" you may try "df -k" to find out which partition is out of space.

- bulek
Back to top
BSDeality



Joined: 08 Oct 2002
Posts: 35
Location: Connecticut

PostPosted: Fri Mar 07, 2003 12:51 pm    Post subject: Reply with quote

.... yah. thats what i meant. My brain isn't seated right this morning it seams. I've been plagued with typo's and misused words since i woke up... perhaps i should get off this damn computer sometime today....
Back to top
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Mon Mar 10, 2003 8:44 am    Post subject: Reply with quote

Okay. I have done some looking and found I don't know what I am looking at . When I run df -k I get this:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda6 381139 177209 184252 50% /
/dev/sda1 46636 24538 19690 56% /boot
/dev/sda5 10744696 32852 10166040 1% /home
none 1032416 0 1032416 0% /dev/shm
/dev/sda2 21497548 1479152 18926380 8% /usr
/dev/sda7 256667 171516 71899 71% /var


I do not understand where the problem is. Is it /var because it doesn't have enough free space? or is it the none filesystem??? If the answer is not brief let me know and I will take this to a Red Hat discussion group. I don't want to waste everyone's time with a problem that is not totally relavent to this discussion group. Thanks everyone.
Back to top
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Mon Mar 10, 2003 8:54 am    Post subject: Reply with quote

Okay. so now I understand that /dev/shm is a temp cache file of some sort. It also looks as though /var is the source of my problem. I noticed that all the logs are in /var/log and some are getting large. Can anyone point me to some info on how to manage those log files. Or am I off my rocker and the problem is elswhere?
Back to top
BSDeality



Joined: 08 Oct 2002
Posts: 35
Location: Connecticut

PostPosted: Mon Mar 10, 2003 9:48 am    Post subject: Reply with quote

you could start gzip'ing the files. is your cacti log in /var/somewhere? if it is, you can easily rotate that one.
Code:
gzip -9 cacti.log
then
Code:
touch cacti.log


my cacti log was up to about 400mb when before i rotated. it.

you could also rotate your httpd log's but that may cause a problem if you're graphing them so do be careful.

you could get a feel for what directory is getting large too by doing a
Code:
du -h /var
and then work to locate more large files. the -a flag is also helpful for du.
Back to top
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Mon Mar 10, 2003 10:13 am    Post subject: Reply with quote

I checked out the /var and moved the rpm files from /var/spool/up2date to /usr/local/rpmstorage. Just to see if that would free up enough space. Well here is the df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda6 372M 174M 179M 50% /
/dev/sda1 45M 24M 19M 56% /boot
/dev/sda5 10G 33M 9.6G 1% /home
none 1008M 0 1008M 0% /dev/shm
/dev/sda2 20G 1.6G 17G 8% /usr
/dev/sda7 251M 46M 192M 20% /var


And Cacti still gives me the login loop. NOw I am goign to check out the apache logs and see if anything is there. Thanks for all the help.
Back to top
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Mon Mar 10, 2003 2:07 pm    Post subject: Reply with quote

New twist. I can log in as guest and view all the graphs. They are still gathering info and graphing properly. There was never a time when they quit getting infomation. I am very confused now. If there was an error about space then why did the machine keep logging and graphing information?

So by my last post it appears that there is enough space for everything to run correctly. I can log in as guest and see all graphs, which are still gathering good info. I am still stuck in an admin loop. I have a user account and the admin account, neither of which can log in but the guest account can? I am so not understanding this.

I checked this http://www.raxnet.net/board/viewtopic.php?t=836&highlight=tmp out and found that it did me no good. Does any one have any other info that mught help?
Back to top
khutton
Cacti User


Joined: 18 Jun 2002
Posts: 77
Location: Alexandria, Virginia

PostPosted: Mon Mar 10, 2003 2:25 pm    Post subject: Reply with quote

you know I feel like punching myself in the balls for this problem. I got it working finally. I now understand a lot more about the log files and such for my system. I want to thank those who helped me in the right direction.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group