Page 2 of 2
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 10:34 am
by benhank
Before I continue, I just want to say how appre3ciative I am for this help. I know this is a matter of me not knowing linux, and you guys would be in your rights to tell me to get a linux book or class. Thanks guys.
Code: Select all
[root@LkennagiosP01 ~]# free -m
total used free shared buffers cached
Mem: 15914 15112 802 0 321 8593
-/+ buffers/cache: 6197 9717
Swap: 18095 5 18090
[root@LkennagiosP01 ~]#
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 1:50 pm
by abrist
It looks like your server is just fine. Linux will usually disk cache by keeping recently accessed and commonly used files in memory. The line -/+ buffers shows you what your actual memory usage is, and in your case it is around 6gb. The other 9+ gigs are used by the buffers. This is fine as the buffer memory will deallocate as needed. Now as to what is using 6gb of ram? I can't tell you, but the cli utility "top" could.
The best way to learn about linux is through experience and a search engine. Books will only get you so far, but knowing how to properly craft a search string for google will get you much further, faster. There is a steep curve at the beginning, but once you feel comfortable moving around the cli and know a fair number of the most commonly used commands and file locations, it will become much easier.
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 2:27 pm
by benhank
hey thanks man, I have a fav to ask and a humble suggestion.
Honesty I would never have thought to use the commands you just had me use. I have gotten better with linux since I started using nagios but I have a long way to go.
BTW, for some serious fun and chuckles read my first coupla posts and behold the horror.
So here is the fav I am asking for: can you shoot me a list of the commands you use to troubleshoot nagios?
Just the basic "you should know these commands at the least" stuff or the commands you wished guys like me should try before hitting the forums. nothing involved, just your favorite top ten. Just give me the commands, Ill look up what they do and how to use them.
And the request: Is it possible to separate the nagios specific services and processes in addition to whats already in the system status. If I hadn't come here first ...
Thanks again for the help ya'll. you can lock the thread.
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 2:37 pm
by slansing
Here is a brief list of some of the common commands we ask others to run:
Code: Select all
tail /usr/local/nagios/var/nagios.log
- Nagios log, a lot of useful nagios specific information is passed through the log file, and many of the items within the interface parse their info from it.
Code: Select all
tail /usr/local/nagios/var/perfdata.log
- Perfdata log, good for troubleshooting performance data issues
Code: Select all
tail /usr/local/nagios/var/npcd.log
- Similar to the above
- System log
- Apache error log, good for troubleshooting problems within the XI interface as it is handled primarily from apache
- MySQL database log for database reaping or parsing related issues
Those are some of the basic logs that we regularly ask for, and can often provide a resolution on their own, hope that's what you were looking for!
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 2:48 pm
by abrist
benhank wrote:So here is the fav I am asking for: can you shoot me a list of the commands you use to troubleshoot nagios?
first of all, you can pull up manuals on commands from the cli in linux with the "man" command. So lets say you want to know about "free". The command to pull up a manual is:
To exit the manual, press "q".
Here are some links with basic linux commands, essentially cheat sheets for the cli:
http://centoshelp.org/resources/command ... -commands/
http://www.my-guides.net/en/guides/linu ... x-commands
http://www.almightyservers.com/archives/33
benhank wrote:And the request: Is it possible to separate the nagios specific services and processes in addition to whats already in the system status. If I hadn't come here first
Most of the time, you parse output from the cli with "grep" / "awk" / "sed" among others. So if you want to see all nagios processes, you can use ps (process list) and grep the output:
Nagios XI uses the processes:
Code: Select all
httpd (apache web server)
mysqld
postres
nagios
crond
php
xinetd
ndo2db
npcd
For plugins:
Code: Select all
python
perl
php
bash (shell scripts)
nrpe
nsca
There are probably others as well.
Re: troubleshooting my db
Posted: Fri Mar 29, 2013 2:49 pm
by benhank
indeed bro Lock it nothin to see here.