[ilugd] Nagios Newbies mailing list
Hello all, I am starting a new mailing list[1] to discuss all things nagios, If you've tried monitoring large or small, networks or applications and got stuck and gave up on nagios then fear not NagiosNewbies is to the rescue. We are leading industry experts in monitoring and nagios, or, since I am the only member right now, I am :). So, pop in. Pass on this message to your local list if you think it to be useful. 1. http://groups.google.com/group/nagiosnewbies Cheers! P. -- Wir wollen dass ihr uns alles glaubt. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Row comparesion in a file
On Wed, 2007-03-07 at 17:06 -0500, Manish Popli wrote: I need to write a shell script to compare row in a file. and show the difference. Like in row 2nd it showing 21:30:49 And in row 3rd it showing 19:25:21 Incompletely specified. How are the rows separated? What is the meaning of the fields? Hours:Minutes:Seconds for 24h time? Do we have to worry about roll-over? Is sanity-checking of file format, and input values required? Why a shell script? For a trivial implementation in bash, assuming HH:MM::SS, disregarding most details and error-checking, save the following nine lines to a file, say diff.sh, #!/bin/bash while read f1 f2 f3 do set `IFS=:; echo $f2` h2=$1; m2=$2; s2=$3 set `IFS=:; echo $f3` h3=$1; m3=$2; s3=$3 echo Difference is $(($h2*3600+$m2*60+$s2-$h3*3600-$m3*60-$s3)) done $1 Do, chmod +x diff.sh and, invoke as ./diff.sh test.txt where test.txt is the name of the file containing your records. Regards, Gora ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Nagios Newbies mailing list
On Thursday 08 March 2007 15:28, Pankaj kaushal wrote: Hello all, I am starting a new mailing list[1] to discuss all things nagios, If you've tried monitoring large or small, networks or applications and got stuck and gave up on nagios then fear not NagiosNewbies is to the rescue. We are leading industry experts in monitoring and nagios, or, since I am the only member right now, I am :). So, pop in. Pass on this message to your local list if you think it to be useful. 1. http://groups.google.com/group/nagiosnewbies Want a mailman list? I can set one up for you. Regards, -- Raju -- Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Nagios Newbies mailing list
Raj Mathur wrote: On Thursday 08 March 2007 15:28, Pankaj kaushal wrote: 1. http://groups.google.com/group/nagiosnewbies Want a mailman list? I can set one up for you. Sure thing, something with a @linux-delhi.org at the end would definitely look better. Thanks and Cheers! P. -- Wir wollen dass ihr uns alles glaubt. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Row comparesion in a file
Hi Gora, Thanks for your reply Its entirely my mistake I din't provide sufficient information. I wrote :- #!/bin/sh Date /manish Date –u /manish Awk '{print $4}' /manish ## Now in out put I will get 2 different time I want the difference of these 2 time format And need to run this script only at once. -Manish Popli On 3/8/07, Gora Mohanty [EMAIL PROTECTED] wrote: On Wed, 2007-03-07 at 17:06 -0500, Manish Popli wrote: I need to write a shell script to compare row in a file. and show the difference. Like in row 2nd it showing 21:30:49 And in row 3rd it showing 19:25:21 Incompletely specified. How are the rows separated? What is the meaning of the fields? Hours:Minutes:Seconds for 24h time? Do we have to worry about roll-over? Is sanity-checking of file format, and input values required? Why a shell script? For a trivial implementation in bash, assuming HH:MM::SS, disregarding most details and error-checking, save the following nine lines to a file, say diff.sh, #!/bin/bash while read f1 f2 f3 do set `IFS=:; echo $f2` h2=$1; m2=$2; s2=$3 set `IFS=:; echo $f3` h3=$1; m3=$2; s3=$3 echo Difference is $(($h2*3600+$m2*60+$s2-$h3*3600-$m3*60-$s3)) done $1 Do, chmod +x diff.sh and, invoke as ./diff.sh test.txt where test.txt is the name of the file containing your records. Regards, Gora ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ -- Manish Popli ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Nagios Newbies mailing list
On Thursday 08 March 2007 19:51, Pankaj kaushal wrote: Raj Mathur wrote: On Thursday 08 March 2007 15:28, Pankaj kaushal wrote: 1. http://groups.google.com/group/nagiosnewbies Want a mailman list? I can set one up for you. Sure thing, something with a @linux-delhi.org at the end would definitely look better. After much discussion on IRC (I lie), [EMAIL PROTECTED] created. Regards, -- Raju -- Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] Apache tomcat connector 1.2.21 released
Hi list, There is bug announcement for mod_jk 1.2.19 and 1.2.20 connectors for apache. Upgrade it to 1.2.21 or tweak apache to overcome a long URL stack overflow vulnerability exists in the URI handler for the mod_jk. Full story at http://tomcat.apache.org/connectors-doc/ Cheers! ~yp ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Row comparesion in a file
see i wrote this..but i m getting diffrence 0 instead 5.. difference shoud be five.. date -u | awk '{ print $4 }' d1 date | awk '{ print $4 }' d1 cat d1 | awk '{sum = $1 - sum } END {print sum}' 22 coz my date command output is 10:23:39 and date -u is 15:23:39 date command showing US EST time rite now i m here in NY . -Manish Popli On 3/8/07, Manish Popli [EMAIL PROTECTED] wrote: see i wrote this..but i m getting diffrence 0 instead 5.. difference shoud be five.. cat d1 | awk '{sum = $1 - sum } END {print sum}' date -u | awk '{ print $4 }' d1 date | awk '{ print $4 }' d1 cat d1 | awk '{sum = $1 - sum } END {print sum}' 22 coz my date command output is 10:23:39 and date -u is 15:23:39 date command showing US EST time rite now i m here in NY . On 3/8/07, Gora Mohanty [EMAIL PROTECTED] wrote: On Thu, 2007-03-08 at 09:56 -0500, Manish Popli wrote: Hi Gora, Thanks for your reply Its entirely my mistake I din't provide sufficient information. I wrote :- #!/bin/sh Date /manish Date –u /manish Awk '{print $4}' /manish ## That still does not make any sense. Do you mean the system command date instead of Date? awk instead of Awk? Case is important in UNIX. In any case, the above set of commands would *not* give you two columns of times as you said you had. Maybe, you should explain what you are trying to do. Now in out put I will get 2 different time I want the difference of these 2 time format If that is what you want, use the complete time, i.e., including date, and use something like difftime() in the Perl POSIX module, assuming that you want a scripting solution. There are too many gotchas in trying to roll your own time difference function. Or, instead of getting the time from date, use the various time functions available in the Perl POSIX module, and all you need is a single script. Regards, Gora -- Manish Popli -- Manish Popli ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Row comparesion in a file
On Thursday 08 March 2007 21:35, Manish Popli wrote: see i wrote this..but i m getting diffrence 0 instead 5.. difference shoud be five.. I have no clue what you're trying to do, but if you just want to find out the offset between GMT and your current timezone, there are easier ways to do it. Since I prefer Perl, here's one way: perl -MDate::Calc -e '@x=Date::Calc::Timezone;printf %02d:%02d\n, $x[3],$x[4];' [Line would have wrapped] Regards, -- Raju -- Raj Mathur [EMAIL PROTECTED] http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F It is the mind that moves ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
[ilugd] foss.nitc
Hi! all, I attended recently concluded foss.nitc in Calicut. Conducted in fluctuating weather of Kerla, foss.nitc was hosted inside beautiful NIT Calicut campus, few kilometers away from civilization. A fun filled event wich coincided with Holi. Pretty decent turn out on first day (approx 300+) and bit sloppy one on second day due to Holi. There were some really interesting talks and several fun filled moments. It turned out to be an interesting mix of people from different corners of country getting together to speak on foss. Event started with formal lamp ligting ceremony and formal opening on 2nd March evening. Opening was follwed by two talks and tasty dinner (for speakers). Like any foss event foss.nitc too had its share of confusions. Thanks to goof up by printer while printing the schedule on paper, audience, speakers and even the organizers were confused about the schedule. This guys managed to delete some talks and print wrong timings for lunch. Amid all these confusions, organizers managed to keep audience interested in talks. Hard work of volunteers could be seen everywhere as they tried there level best in taking care of every minute details. Like any foss event, there were some talks which pulled the crowd leaving some speakers with less crowd. Here a workshop on wiki's attracted 120 registrants forcing NITC guys to break the workshop into two sessions. More deatils about talks can be obtained from foss.nitc website as and when organizers find time to upload the presentation files. So, I will use this opportunity to share some fun filled moments on Holi day. A team of students decided to turn up at the conference venue hunting for the organizing head, who was runnin away from being soaked in colour as he has to organize the event. The guy called Amarjit was the most wanted person in the campus as it will be clear from this video http://www.youtube.com/watch?v=bOca_Tdrl0g Guy being looked for can be seen here http://www.flickr.com/photos/[EMAIL PROTECTED]/414805383/ Some more Holi pics http://www.flickr.com/photos/[EMAIL PROTECTED]/414792680/ http://www.flickr.com/photos/jace/411369823/ http://www.flickr.com/photos/jace/411188046/ http://www.flickr.com/photos/[EMAIL PROTECTED]/414794879/ http://www.flickr.com/photos/[EMAIL PROTECTED]/414797795/ http://www.flickr.com/photos/[EMAIL PROTECTED]/414786375/ http://www.flickr.com/photos/[EMAIL PROTECTED]/414802057/ One interesting outcome was open paper airplane desings. This started when Kushal das decided to make a paper airplane to kill time. THe airplane kept on crashing, so I decided to bu fix it and make it fly. Though there was some improvement but I decided to reverse engineer the design to suit the paper quality. Next thing we know everyone jumped into unconference on Open paper airplane making and designing. The outcome could be seen below http://www.flickr.com/photos/[EMAIL PROTECTED]/414789969/ Here is other speaker getting involved in making paper airplane http://www.flickr.com/photos/jace/411368282/ Being human nature to experiment with things we ended up having a stability contest which soon turned into paper airlane attack. Some pics http://www.flickr.com/photos/jace/411369309/ http://www.flickr.com/photos/jace/411368792/ Somewhere in middle of all this fun, some speakers were delivering talks and audience listening to them. Good informative talks attended by pretty much intelligent audience. So, by this time if you were expecting a report where details tie wearing experts talk would be available. I have thoroughly disappointed you guys. Like any foss event there were interesting talks and good speakers, along with audinece who was willing to listen. (I know it well because of questions being bombarded on me for hours after my talk). Actually i was surprised to see few people actually came prepared to listen to talks and have tried there hands in the areas being talked upon. Overall it was a good enjoyable experience. More pics at http://www.flickr.com/photos/tags/foss.nitc/?page=3 Thanks to foss.nitc volunteer team for conducting such a good event. Pic of all volunteers http://www.flickr.com/photos/[EMAIL PROTECTED]/414808851/ Few of the volunteers i can recall 1) Amarjit Sigh (leading the army) 2) Basil 3) Sreedal 4) Feroz 5) Guy with specs, managing software lab (sorry could recall your name) 6) Hari 7) Srikanth 8) Girish 9) Hari 10) Priyanka 11) Pritam 12) Shyam 13) Praveen A 14) Guy who kept on calling me Vivek ji. 15) And the list continues Ps:- for any technical details please contact oraganizers :-) Looking forward for joining you guys next year. regards VK Engineers normally have problem with every solution. If not they have a solution in search of a problem. http://creative.linux-delhi.org Disclaimer The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw...
Re: [ilugd] foss.nitc
Hope to see some Floss events in Colleges from NCR.. Still a good thing to hear -- Linux User #348873 ILUGD Commitee Member, GZLUG , DGLUG Moderator B.Tech 4th Year Computer Science , RKGIT , Ghaziabad http://rockybhai.blogspot.com When i can run , i will run , When i can walk , i will walk, When i can crawl , i will crawl. But i will not stop moving forward ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] help needed
On Fri, 2007-03-09 at 09:46 +0530, Sriram J wrote: Hi, does any one know how to use portable batch system or shell scripts. i want to write a script to add two arrays and divide by 2. i want the average. Which homework assignment would you like us to do for you next? This is elementary stuff, and should be covered by any introduction to shell scripting. Regards, Gora ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Row comparesion in a file
On 3/8/07, Raj Mathur [EMAIL PROTECTED] wrote: On Thursday 08 March 2007 21:35, Manish Popli wrote: see i wrote this..but i m getting diffrence 0 instead 5.. difference shoud be five.. I have no clue what you're trying to do, but if you just want to find out the offset between GMT and your current timezone, there are easier ways to do it. Since I prefer Perl, here's one way: perl -MDate::Calc -e '@x=Date::Calc::Timezone;printf %02d:%02d\n, $x[3],$x[4];' And if the OP prefers python - python -c from datetime import datetime; print (datetime.now() - datetime.utcnow()); Don't know perl so can't say if the outputs are equivalent. Regards, Anupam Jain ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] foss.nitc
--- Anand Shankar [EMAIL PROTECTED] wrote: Thanks for your photos. I could see my alma mater change a lot since last 18 years. It gives me immense satisfaction to see some of these college institutions where I used to play a pivotal role in my days, are now hosting events of such national importance. Just an update Presntaion/photos/comments/blogs available at http://fci.wikia.com/wiki/Calicut/NIT/FOSS_Meet/07 regards VK Engineers normally have problem with every solution. If not they have a solution in search of a problem. http://creative.linux-delhi.org Disclaimer The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw... Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Nagios Newbies mailing list
On 08-Mar-07, at 7:49 PM, Raj Mathur wrote: 1. http://groups.google.com/group/nagiosnewbies Want a mailman list? I can set one up for you. i could set up a yahoo one -- regards Kenneth Gonsalves Associate, NRC-FOSS [EMAIL PROTECTED] http://nrcfosshelpline.in/web/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/