<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-32310573</id><updated>2009-11-11T22:45:19.521-08:00</updated><title type='text'>bishal acharya</title><subtitle type='html'>Hi everybody ! this blog is dedicated to some articles related to troubleshooting and programming</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>bishalacharya@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32310573.post-4992993324033887065</id><published>2009-06-29T18:04:00.000-07:00</published><updated>2009-06-29T18:49:05.760-07:00</updated><title type='text'>nagios email notification in gmail problem  and solution</title><content type='html'>&lt;span style="font-weight:bold;"&gt;step 1 : check in templates.cfg . The configuration should be similar to the one below(in objects folder in my case)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# Generic contact definition template - This is NOT a real contact, just a template!&lt;br /&gt;&lt;br /&gt;define contact{&lt;br /&gt;        name                            generic-contact&lt;br /&gt;        service_notification_period     24x7&lt;br /&gt;        host_notification_period        24x7&lt;br /&gt;        service_notification_options    w,u,c,r,f,s&lt;br /&gt;        host_notification_options       d,u,r,f,s&lt;br /&gt;        service_notification_commands   notify-service-by-email&lt;br /&gt;        host_notification_commands      notify-host-by-email&lt;br /&gt;        register                        0&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 2 : check contacts.cfg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        define contact{&lt;br /&gt;        contact_name                    nagiosadmin  ; Short name of user&lt;br /&gt; use    generic-contact  ; Inherit from generic-conta    &lt;br /&gt;        alias                           Bishal Acharya  ; Full name of user&lt;br /&gt;              &lt;br /&gt;        email                           abc@gmail.com&lt;br /&gt;        &lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# We only have one contact in this simple configuration file, so there is&lt;br /&gt;# no need to create more than one contact group.&lt;br /&gt;&lt;br /&gt;define contactgroup{&lt;br /&gt;        contactgroup_name       admins&lt;br /&gt;        alias                   Nagios Administrators&lt;br /&gt;        members                 nagiosadmin&lt;br /&gt;        }&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Make sure we have contact and cotactgroup defined in contacts.cfg. In my case it is with my denominations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 3 : Check the commands.cfg file . Make sure we make /usr/bin/mailx in the configuration under Ubuntu systems. Also do install sendmail prior to doing this by using(sudo apt-get install sendmail) and check by command line that you can send mail by using command (mail abc@gmail.com) . If you successfully sent your mail then your nagios too can send mail or else we again need to troubleshoot.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# 'notify-host-by-email' command definition&lt;br /&gt;define command{&lt;br /&gt; command_name notify-host-by-email&lt;br /&gt; command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $ADMINEMAIL$&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;# 'notify-service-by-email' command definition&lt;br /&gt;define command{&lt;br /&gt; command_name notify-service-by-email&lt;br /&gt; command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $ADMINEMAIL$&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Make sure ADMINEMAIL has been set accordingly in nagios.cfg file as&lt;br /&gt;&lt;br /&gt;admin_email=abc@gmail.com&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;step 4 : Time to check few things&lt;br /&gt;check whether notifications are set or not in nagios.cfg file if not set it to 1, similarly also make notifications to 1 in services and host definitions, Nagios cant sent notifications unless you enable them.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now reload your nagios and test by stopping one of the services like ssh or other anyone If you are lucky you will receive notifications according to the timing settings. If not check your log file.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Common problem : &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Warning: Contact 'nagiosadmin' service notification command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\n\nService: SSH\nHost: bishal\nAddress: 127.0.0.1\nState: CRITICAL\n\nDate/Time: Mon Jun 29 17:24:26 JST 2009\n\nAdditional Info:\n\nConnection refused" | /usr/bin/mail -s "** PROBLEM Service Alert: bishal/SSH is CRITICAL **" abc@gmail.com' timed out after 60 seconds&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution for Nagios notification Timeout problem :&lt;br /&gt;Go to nagios.cfg and increase the notification_timeout to some larger value, In my case i made it 600 from 60&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;service_check_timeout=60&lt;br /&gt;host_check_timeout=30&lt;br /&gt;event_handler_timeout=30&lt;br /&gt;notification_timeout=600&lt;br /&gt;ocsp_timeout=5&lt;br /&gt;perfdata_timeout=5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Now again reload nagios and you should be alerted when any service goes down. Test it by stopping any service also we are notified when any service recovers. We may give our mobile phone email address so that we are alerted to our mobile phones when problem occurs instead of our computer.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Good Luck ! Comments are welcomed&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4992993324033887065?l=bishalacharya.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4992993324033887065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=32310573&amp;postID=4992993324033887065' title='33 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4992993324033887065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4992993324033887065'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/06/nagios-email-notification-in-gmail.html' title='nagios email notification in gmail problem  and solution'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>bishalacharya@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07332432621106461451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-4542186244626569010</id><published>2009-04-12T21:12:00.000-07:00</published><updated>2009-07-01T23:25:20.272-07:00</updated><title type='text'>sudo not working in  Ubuntu and Semantic package manager vanished</title><content type='html'>I have recently had a problem when sudo did not worked in Ubuntu, The problem was that whenever I tried to do sudo it would ask for my password but it wont carry out the action as per the command.Another symptom was that the synaptic package manager had vanished from the menu. It was a peculiar behavior for me because I had jumped from windows to Ubuntu and it was just few weeks I was trying on Ubuntu. I was trying to install Nagios and this problem suddenly arised when normally working sudo stopped working for my root user.&lt;br /&gt;&lt;br /&gt;The problem with it was that I had accidently removed my root admin user from the admin group, So in order to fix I had to do the following steps :&lt;br /&gt;&lt;br /&gt;step 1 : I started the computer in recovery mode &lt;br /&gt;step 2 : I entered the root user space&lt;br /&gt;step 3 : And finally I just added my user back to admin group by the following command&lt;br /&gt;         adduser username admin&lt;br /&gt;&lt;br /&gt;And the problem was solved I again had my synaptic package manager in the menu and I could  now do everything back again. I guess my experience might help some novice users.&lt;br /&gt;&lt;br /&gt;最近の事何ですけどUbuntuでsudoは効かなかった。その問題の解決について話したいと思います。この問題の結果何ですけどもUbuntuのメヌのセマンチクパケジマネザーは隠れてた事態に成ってた事でした。何でこんな環境に成りましたと言う質問をいくら調べても見つかれなかった。Ubuntuの新しいユーザなのでそゆ問題の理由はわからなかった、でもちょっとう頑張って解決をみつかりました。&lt;br /&gt;問題は私がルートウザーのプリヴィレズは自分ウザから消した事でした。そんな問題の解決の為に私がパソコンをリカバリモドにリッスタトしました、リスタトしたあとルトユザで下のコマンドを実行されました。&lt;br /&gt;user@user : adduser username admin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments are welcomed !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-4542186244626569010?l=bishalacharya.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/4542186244626569010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=32310573&amp;postID=4542186244626569010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4542186244626569010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/4542186244626569010'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/04/sudo-not-working-in-ubuntu-and-semantic.html' title='sudo not working in  Ubuntu and Semantic package manager vanished'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>bishalacharya@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07332432621106461451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-1708137496755069248</id><published>2009-02-09T19:34:00.000-08:00</published><updated>2009-02-09T19:35:29.418-08:00</updated><title type='text'>Javaspace with JINI and Gigaspace</title><content type='html'>Javaspace and Jini tutorial with classic example coming soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-1708137496755069248?l=bishalacharya.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='related' href='http://www.wakhok.ac.jp/~bishal' title='Javaspace with JINI and Gigaspace'/><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/1708137496755069248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=32310573&amp;postID=1708137496755069248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1708137496755069248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/1708137496755069248'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2009/02/javaspace-with-jini-and-gigaspace.html' title='Javaspace with JINI and Gigaspace'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>bishalacharya@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07332432621106461451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-32310573.post-115492552823947139</id><published>2006-08-06T21:35:00.000-07:00</published><updated>2007-05-03T04:25:51.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='My introduction'/><title type='text'>bishal</title><content type='html'>Hi, I am Bishal Acharya i have recently created this blog and i will be making newer articles available here sooner.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.upage.com.np/"&gt;Link to my company&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/32310573-115492552823947139?l=bishalacharya.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bishalacharya.blogspot.com/feeds/115492552823947139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=32310573&amp;postID=115492552823947139' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/115492552823947139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32310573/posts/default/115492552823947139'/><link rel='alternate' type='text/html' href='http://bishalacharya.blogspot.com/2006/08/bishal.html' title='bishal'/><author><name>Bishal Acharya</name><uri>http://www.blogger.com/profile/15975187514043550452</uri><email>bishalacharya@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07332432621106461451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>7</thr:total></entry></feed>