Software :: Shell Script For Monitoring?
Sep 16, 2010Am new for linux shell script,can any one guide me to monitoring the LISTENING IP's when using netstat alnp commang.i need this as a shell script end it ll generated in one file.
View 3 RepliesAm new for linux shell script,can any one guide me to monitoring the LISTENING IP's when using netstat alnp commang.i need this as a shell script end it ll generated in one file.
View 3 RepliesI am new for linux shell script, i ve a task to monitor a list of IP's Listen on the Particula Port. I ve list of IP's,from that list i need to monitor. If the prticular IP in the list is not listening on given port num then send a alert mail. Can any one guid me to write a shell script.
View 15 Replies View Relatedshell script for raid monitoring?just to send email when the raid has errors.
View 3 Replies View RelatedMACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.
View 2 Replies View RelatedI want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
View 1 Replies View RelatedIs there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
Is there a way to export a variable to parent shell in shell scripting ?
View 3 Replies View RelatedI am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.
Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....
I would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies View RelatedIs there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?
Example:
Code:
>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...
I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.
I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?
View 3 Replies View RelatedMy problem is the following : I have a certain Internet connection for a certain network. So many people are sharing this network. What i need is a software on Linux (preferably Ubuntu) that will enable me to monitor the bandwidth usage PER IP Like : ip x.x.x.x using 20Kb upload 200Kb download , connected to this site for example.. The main goal is to know from which IP is the high Upload traffic or download traffic is coming , because i have a certain quota and I'm always getting over the quota (in upload and download) and end up paying extra for the ISP , so i would need to know who is using lots of upload/download bandwidth .
View 6 Replies View RelatedI am renting a VPS from[URL].They do not supply a webhosting panel for restarting/shutting down or for seeing monthly bandwidth consumtion. I am running CentOS 5.3. I was wondering if theres any programs that you can install to view monthly/daily bandwidth consumption on our server?
View 2 Replies View RelatedI want to monitor RDS (mysql database of EC2) using Nagios. In command line ( I am able to do it but I dont know how to feed it in nagios . On nagios server if I execute the following command , I am able to fetch the information of database (RDS)
Nagios_server #/usr/local/nagios/libexec/check_mysqld.pl -p<password> -f -u <username> -A uptime,threads_connected,slow_queries,open_tables -H <hostname> -q 'SHOW STATUS'
output :- MYSQL 5.1.50 OK | uptime=344783 threads_connected=672 slow_queries=0 open_tables=64
Note :- Here the host name is public dns name (x.y.z.amazon.com) .We cant ping to this host.With mysql command , we can log in and work on databases.
I was looking for some software to run on my Debian vServer which monitors RAM, CPU and HDD usage. This tool should not require Gnome/KDE, so I guess I'll end up with a PHP tool. I did some search but came up with nothing. I'm using Parallels Power Panel (there might be a plugin or something like that?)
View 5 Replies View RelatedFor windows servers, we use System Monitor to monitor everything on the server from disk utilization, current connections, application pools in IIS, CPU performance, bandwidth, and others. Is there something like that for opensuse? My server is running apache and I want to be able to monitor the linux server in a similar way that I do Windows Server 2003. Preferably I'd like an app that will run from a win32 workstation.
View 5 Replies View RelatedI'm searching for something like crontab. but the action should not be executed at a specific time but after a file or directory change. I'd like to run some scripts as soon a new file is in a predefined directory.
A daemon / shellscript would be really great. Does anybody know something like that?
I have some web pages that I need to frequently check. Is there any tool that will check for updates and send notifications by mail or RSS. These pages are not RSS supported.
I am looking for a Linux standalone application, browser extension, or a service that sends mails.
what I can use in Ubuntu for monitoring CPU core temps, CPU and memory speed and such, used CPU-Z, prime, HD tune up and and the like when OC'ing and UC'ing my Windows PC's but what Ubuntu equivalents are there?
View 9 Replies View RelatedI am looking for recommendations on monitoring RAID array status in a "hardware RAID" setup (ie, using a RAID controller card or RAID-enabled motherboard).Here are some clarifying points:
1. OS is CentOS 5.
2. No drive lights are visible on the exterior of the system. So periodically checking for amber lights (indicating drive failure) is not an option.
3. No SNMP manager/collector is available. This question refers to local-system options. Not network-based options.
Im looking for a program to monitor the ammount of bandwidth usage per network. Ex: I have lots of networks connected to one server, and i would like to know for example how much is the average bandwitdh usage for network 172.16.2.0/24 and 172.16.5.0/24 for one hour, for example.
View 1 Replies View RelatedI have been trying to set up SNMP monitoring using Cricket. I believe I have Cricket running fine, however I also believe that I have SNMP set up wrong. When I do an SNMPWALK I get the following:
[Code]....
This tells me I have SNMP running, however I would expect to see a lot more data... Am I correct, should I see more data? I spoke to a friend, and he suggested that I have something not set up correctly in SNMP dealing with the community string...
I wonder if there is any tool that can read health of my HDD's? There are tons in windows but what options are there in Linux? I would really hope there is a tool a can install without using terminal cause I dont have web access for the Xubuntu right now. If anyone aware of such a tool, preferable a .deb file so I can easily install without hazzle. Also I hope tools like that are not littered with tons of dependencies. Cause those dependencies are a major challenge without online connection. If there exist any smart terminal commands that will let med check health status pls let me know and pls write down the command. I have enabled the s.m.a.r.t in BIOS.
I have 4 drives running Raid 0 if that matters.
I'm trying to write some bash script to monitor for a change in web pages.'m using WGET (through a cronjob) to collect the pages, then use DIFF to compare the previous and current page for changes, then just sending a notification to indicate if a change is detected.This was all working great in the simple test environment until I tried monitoring a page that had a dynamic link . Where nearly every test brought up a difference.So to my question, is there a way to do a DIFF on a couple of web pages but configure it to exclude dynamic links?
View 2 Replies View RelatedI am connected with LAN. We have many computers with different OS viz.linux, windows etc. Now I want to know the bandwidth every computer is getting and using. Is there any Ubuntu packages to monitor this?
View 1 Replies View RelatedI have a small office network with windows machines and a Linux Internet access server (CentOS 5.4). For Internet access I use masquerade, so everione can access every Internet service.
I periodicali have quite big traffic from one of the hosts, but I can't figure out which one is that?
Is there any linux command which will show me the bytes/packets (or any useful infos) going to specific hosts?
dear can someone highly gui or text base/command line tool that use as "isp bandwidth monitoring tools in linux".i do have leased line,frame relay, wireless linke,dsl too. i want to monitor what is uploading and downloading.
View 11 Replies View RelatedI am simulating a TCP/FTP to TCP/FTP network and trying to monitor the packet loss.
I am able to monitor and graph data regarding the TCPSinks' bytes received, but I can't monitor packet loss.
Why is it that the TCPSink Agent has a variable for bytes (bytes_) but not one for monitoring packet loss?
Do I have to monitor the packet loss from the queue? If so, how do I write code for this?
Below is part of the code for monitoring bytes received from sinks if anyone was interested.
I have a UBUNTU server 10.04 LTS with 3 network interfaces (eth0,1,2) with eth0 is connected to my lan and others connected to two different ISPs , I am looking for a very flexible and complete monitoring tool which can monitor all of the traffic of incoming and outgoing of any interface and SPECIALLY can show me which local client made connection to which interface for connecting to internet in online mode not offline and it is good to have online web base interface I mean the interface shows the measured data in real time mode. I fount some tools like iftop and iptraf and many others in this url: http://www.ubuntugeek.com/bandwidth-...for-linux.html but non of them are suitable for my net I mean none of them have good web real time data and non of them shows "which local client made connection to which interface for connecting to internet".
View 2 Replies View Related