06-24-2008
Shell script to view logs of a server
Please share a shell script to collect logs of a server (like cpu utilization, memory etc) for a perticular time interval by giving date, time and server name as input.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
one of my sites i host is doing somewhat well in the search engines, and i would like to watch the raw log files while looged in with telenet
is there a way to do this.
thanx
Mike (2 Replies)
Discussion started by: whothought1
2 Replies
2. UNIX for Advanced & Expert Users
Hi !
I have a FTP site, where I softlinked my server log file.
Now I want to view the logs in IE as I do in unix
Some kind of free tool should be there, Can somebody provide me a pointer.
Thanks. (0 Replies)
Discussion started by: dashok.83
0 Replies
3. Shell Programming and Scripting
Hi,
I have a script, running on some outside firwall server and it's log of success or failure is maintained in a file.
I want to write a script which ftp that server and reads that file and checks the logs and if failure , I will send mail notification.
Please let meknow if I am not... (1 Reply)
Discussion started by: vandana.parwani
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to know how we can view two or three logs which are dynamically getting updated from a single/same putty window with tail commnad.
Thanks. (7 Replies)
Discussion started by: reachsudha
7 Replies
5. Shell Programming and Scripting
Hi,
I have a strange situation here, I want to archive gc.logs file, generated by a java application, the strange thing about gc.log file is is doesn't have any time/date stamp appended to it unlike other logs (catalina/access/error) and one more strange thing is when ever the application is... (6 Replies)
Discussion started by: Neeryan
6 Replies
6. Shell Programming and Scripting
I ran a script, and then I closed SSH. I want to go back and view it as if I just ran it.
Is this possible? (2 Replies)
Discussion started by: slayr288
2 Replies
7. Solaris
Does anyone know if there is software written to view the audit logs generated by Solaris? I am referring the the logs created by auditd. It produces an unreadable log. I am familiar with auditreduce and praudit, but I am looking for something that produces a report, much like logwatch looks at the... (4 Replies)
Discussion started by: brownwrap
4 Replies
8. Shell Programming and Scripting
I am new to Shell scripting and below is my requirement.
I need to search some specific word e.g. "exception" or "transaction" from log file.
We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com".
Each... (1 Reply)
Discussion started by: peeyush
1 Replies
9. Shell Programming and Scripting
Hi
I'm very new to unix shell scripting. Im also new here in this forum. I'm a SQL Server DBA but I'm slowly learning Oracle and Sybase DB. Our Oracle and Sybase are on Unix platforms. Im slowly learning Linux Admin and Shell Scripting to automate tasks.
I'm writing a script to view DB error... (4 Replies)
Discussion started by: Ricky777
4 Replies
10. Shell Programming and Scripting
Good afternoon all!! I am writing a shell script that will generate a random phrase to be used as a password.
this is the line I use to generate the password
echo `head -n 10 /dev/urandom | tr -cd "*+,-/:;<=>?_" | cut -c '1-'$3`
The third input in the command is the length of the password i... (6 Replies)
Discussion started by: cptkirkh
6 Replies
LEARN ABOUT DEBIAN
hobbitfetch
HOBBITFETCH(8) System Manager's Manual HOBBITFETCH(8)
NAME
hobbitfetch - fetch client data from passive clients
SYNOPSIS
hobbitfetch [--server=HOBBIT.SERVER.IP] [options]
DESCRIPTION
This utility is used to collect data from Xymon clients.
Normally, Xymon clients will themselves take care of sending all of their data directly to the Xymon server. In that case, you do not need
this utility at all. However, in some network setups clients may be prohibited from establishing a connection to an external server such as
the Xymon server, due to firewall policies. In such a setup you can configure the client to store all of the client data locally by
enabling the msgcache(8) utility on the client, and using hobbitfetch on the Xymon server to collect data from the clients.
hobbitfetch will only collect data from clients that have the pulldata tag listed in the bb-hosts(5) file. The IP-address listed in the bb-
hosts file must be correct, since this is the IP-address where hobbitfetch will attempt to contact the client. If the msgcache daemon is
running on a non-standard IP-address or portnumber, you can specify the portnumber as in pulldata=192.168.1.2:8084 for contacting the msg-
cache daemon using IP 192.168.1.2 port 8084. If the IP-address is omitted, the default IP in the bb-hosts file is used. If the port number
is omitted, the portnumber from the BBPORT setting in hobbitserver.cfg(5) is used (normally, this is port 1984).
OPTIONS
--server=HOBBIT.SERVER.IP
Defines the IP address of the Xymon server where the collected client messages are forwarded to. By default, messages are sent to
the loopback address 127.0.0.1, i.e. to a Xymon server running on the same host as hobbitfetch.
--interval=N
Sets the interval (in seconds) between polls of a client. Default: 60 seconds.
--id=N Used when you have a setup with multiple Xymon servers. In that case, you must run hobbitfetch on each of the Xymon servers, with
hobbitfetch instance using a different value of N. This allows several Xymon servers to pick up data from the clients running msg-
cache, and msgcache can distinguish between which messages have already been forwarded to which server.
N is a number in the range 1-31.
--log-interval=N
Limit how often hobbitfetch will log problems with fetching data from a host, in seconds. Default: 900 seconds (15 minutes). This is
to prevent a host that is down or where msgcache has not been started from flooding the hobbitfetch logs. Note that this is ignored
when debugging is enabled.
--debug
Enable debugging output.
SEE ALSO
msgcache(8), hobbitd(8), xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBITFETCH(8)