Sunday, July 6, 2014

Smokeping to Monitor Network Latency in UBUNTU

Smokeping to Monitor Network Latency in UBUNTU

ping
Recently I was troubleshooting a network where concerned Admin complained that they frequently lost connectivity with the Internet. Sometimes pings replies works okay but latency gets high or timeout / breaks occurs. So I decided to setup mrtg base ping graph to monitor ping latency. The custom made mrtg ping probe worked fine and can provide an overview on target ping / rtt and Downtime in a nice manner,
BUT . . . . . . . . . . . . . . . . . . .
I was thinking far ahead , I was thinking for much more advanced latency and pin point graphs which can show ping latency / rtt / loss in much more detailed way. I recalled my memory from old days when I used to monitor my old network with variety of tools and scripts and suddenly a name popped in my mind " SMOKEPING " , yes this was the tool I was looking for.
SmokePing generates graphs that can reveal the quality (packet loss and latency variability) & reach-ability of your IP address from several distributed locations. SmokePing is a network latency monitor. It measures network latency to a configurable set of destinations on the network, and displays its findings in easy-to-read Web pages. It uses RRDtool as its logging and graphing back-end, making the system very efficient. The presentation of the data on the Web is done through a CGI with some AJAX capabilities for interactive graph exploration.

  • In this article I will show you howto install smokeping on UBUNTU 10/12

First install required components along with smokeping and apache2 (you can remove Apache or any other component if its not required or already installed)
aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2
Once all is installed, we have to modify few configuration files.
Open following following ...
nano /etc/smokeping/config.d/pathnames
now remove sendmail entry by adding # sign to to comment the sendmail line, usually the first line.
Save and exit.
Now open following file
nano /etc/smokeping/config.d/Targets
Now REMOVE all previous lines , and copy paste following
*** Targets ***  probe = FPing    menu = Top  title = Network Latency Grapher  remark = Welcome to the SmokePing website of <b>ZAIB (Pvt) Ltd.</b> <br> Here you will learn all about the latency of our network.<br><br><br><br><br> This page is maintained by ZAIB. (Pvt) ltd . <br><br>Support Email: aacable@hotmail.com<br>Web: http://aacable.wordpress.com    ### YOU CAN CHANGE THE FOLLOWING ACCORDING TO YOUR NETWORK ###    + Ping    menu = WAN Connectivity  title = WAS Side Network    ++ yahoo    menu = yahoo  title = yahoo ping report  host = yahoo.com    ++ google    menu = google  title = Google ping report  host = google.com    ### YOU CAN CHANGE FOLLOWING ACCORDING TO YOUR NETWORK ###  + Ping2    menu = LAN Connectivity  title = LAN Side Network    ++ Mikrotik    menu = Mikrotik  title = Mikrotik PPP ping report  host = 10.10.0.1    ++ Billing    menu = Billing  title = Radius billing Server ping report  host = 10.0.0.2
save and exit.
now restart smokeping service by
service smokeping restart
and access it via browser.
Results should be something like below image...
lan
wan-report
More info on previous smokeping article based on FEDORA 10 , (Old version) Just for idea

Wednesday, July 2, 2014

Law Witr Prayer


According jumhur scholars, legal Witr prayer is Sunnah muakkadah. It is the opinion of Imam Malik, ash-Syâfi'iy, Ahmad, Ishaq, and others.
On the other hand, Abu Hanifa found Witr prayer obligatory. He berdalilkan with some of the arguments, which of them is the hadeeth of Buraidah radi 'anhu, that the Prophet sallallaahu' alaihi wa sallam said,
الوتر حق فمن لم يوتر فليس منا الوتر حق فمن لم يوتر فليس منا الوتر حق فمن لم يوتر فليس منا
"(Prayer) Witr is haq. Anyone who does not (prayers) Witr, not including our group. (Prayer) Witr is haq. Anyone who does not (prayers) Witr, not including our group. (Prayer) Witr is haq. Anyone who does not (prayers) Witr, not including our group. " [1]

Tarjih
In this case, a more correct opinion is that Witr prayer is not obligatory. It is based on the hadith of Talha bin 'Ubaidullah radi' anhu narrated by al-Bukhary and Muslim that, when the obligations of the five daily prayers, the Prophet sallallaahu 'alaihi wa sallam asked, "Is there any other obligation upon me?" he replied, "Nothing, except just praying tathawwu' (sunnah)." [2]
Then, will be explained also on the implementation of the prayer of the Prophet sallallaahu 'alaihi wa sallam above mount animals [3] because it has been understood that the obligatory prayers is not done over the animal mounts.
In addition, there are other arguments that show the witr ketidakwajiban. [4]


[1] Narrated by Ahmad, 5/357, Ibn Abi Syaibah 2/92, Abu Dawud no. 1419, Al-Hakim 1/448, and Al-Baihaqy 2/469. Dihasankan by Shaykh Muqbil in Al-Jami 'al-Saheeh, 2/159.
[2] Reported by al-Bukhary no. 46, 1891, 2678, 6956, Muslim no. 11, Abu Dawud no. 391, and An-Nasa `iy 1/226, 4/120, 8/118.
[3] As narrated by al-Bukhary and Muslim from the hadeeth of 'Amr ibn Rabi'a. In addition, there are several other Companions sunnah of the Prophet describes the implementation of animal mounts on top of him.
[4] On the legal discussion above Witr prayer, read Al-Istidzkâr 2/80, al-Majmu '3/514-517, 2/591-594 Al-Mughny, Majmu' al-Fataawa 23/88, Fathul Bary 6 / 210-212 Ibn Rajab, and Nailul Authâr 3/34.

Read character candidates from writing hand

Read character candidates from writing hand



Already in ancient times, people try to get to know someone's personality briefly using certain techniques, it is commonly used to assess the Company's Prospective new employees.
Well because we will hold elections candidates ya, we the people of this country as the owner shall know the "employee" will be our new hire to give us the mandate to lead the country next five years, do not let us down because one chose gan.
The technique we use is graphology, According to wikipedia, Graphology is the study of handwriting. Graphology term was first used by a Frenchman named Michon in 1875. Graphology word comes from the Greek, namely: grapho which means I write and logos meaning science. The purpose of graphology is expressing one's character and personality through his writing. Personality is including strengths, weaknesses, and strengths. This is based on the handwriting appears on the subconscious, it gives valuable information to interpret a person's character.
The following analysis of our candidates Graphology

1. Prabowo



Judging from his signature and writing, Prabowo is a very ambitious person. Prabowo is very ambitious to become famous or a star or be the number one.

To realize his ambition, he seeks to dominate or be dominant. Even less likely to believe in other people, so it would be authoritarian or do anything in his own way to realize his ambition.

In emotional control, Prabowo less able to control themselves well, often less able to put yourself in his place, very sensitive to criticism.

Prabowo including berdiplomatis intelligent people and good at hiding his deficiencies. In extreme language, less than honest.

Intellectually, Prabowo including those of high intellect. In other languages, Prabowo was a strategist. But on the other hand, he is a firm stance even tend to be stubborn and difficult to compromise with others in carrying out its leadership.

There is a big possibility, if the exercise of leadership style is holding the reins kepemimpinanan authoritarian or militaristic style.

Leadership is not always bad as far militaristic clear vision for the good of the nation. It's just related his foresight, Prabowo including those whose vision or view of the future is unstable. And this may be because the character herself is not an autonomous and independent, need the support of those around him.

The main character of the self-Prabowo is protective. Combined with the other characters, he will do anything to protect. The question is, who is dlindungi?

Hopefully, if he becomes presideng or minister or official, he was able to play a character to protect the Indonesian nation to protect and raise the dignity of the nation. Not protect himself and his group.

2. Joko Widodo


Here is the self Joko Widodo (Jokowi), which presidential candidate carried by PDIP, judging from the handwriting and signatures (graphology analysis).

Judging from the letter "d" of his general, Jokowi is the type that easily touched or sensitive, both in terms of easily moved by the circumstances and to the praise or criticism. It was also found the letter "d" in the Greek inscription above, this suggests that Jokowi love and attention to the type of culture, has a good literary ability, having a mature social skills.

This mature social skills that are dominant side he also looks at the type of letter shaped garland and normal spaces.

Judging from the letters "a" and "o", Jokowi has good integrity. Seen from space and baselines, Jokowi has a good ability to control themselves, emotionally and mentally healthy. This is also confirmed from the margin relatively flat. Good ability to control his emotions may also come from a good intellectual abilities. Even if there is something that makes it very emotional, he prefers to bury himself so that tends to hurt himself. All forms of humor which he hurled when receiving satire or criticism, may be it is a shape-shifting emotions. The ability to divert this energy, divert negative energy into positive energy, visible from the lower zone letters such as "y", "j" and "g" and made consistent. All forms of the guyonannya, either as a diversion or indeed the way it is, it could be a derivative of literary ability and culture as reflected from the letter "d" Greek.

Judging from the margin, Jokowi including future-oriented types, tend to be healthier life past or no past is a burden on the tread life in the future.

Judging from the size of the paper and the writing zone, including the type Jokowi nimble and did not hesitate to jump directly to the field to make sure everything goes well.

Judging from the trend of using lower case letters in the word should begin with a capital letter, it shows basically Jokowi is the type that does not want to stand out. However, judging from his signature that has the pull of straight lines, Jokowi is decisive personality type. 2 lines towards the top right and bottom indicate that Jokowi always try to harmonize between the optimism of reason analysis or consideration.

Judging from his writing in the margins where there are pushed to the right, including the type of creative Jokowi or dare to take a step or action out of the box. However, in essence, the kind of conservative Jokowi or adhere to the norms. This is reflected by the position of the signature.

Similarly, our analysis of the handwriting and signature Joko Widodo. This analysis was made by the discipline of graphology.

Variable usage, echo, and PHP comments

Variable usage, echo, and PHP comments

Posted by: Mario norman valid Monday, October 1, 2012
Bismillahirohmanirohim

php variable


Earlier in the post PHP [INTRODUCTION] we've previously acquainted with PHP. Now we will get acquainted with the variables in PHP. Variable used to store a value, how:
Namavariable = $ value;
variable name must begin with a dollar sign ($) and do not forget to end with a semicolon (;).
* Remember the name of the variable must begin with the letter or sign the underscore (_).
* Variable name is more than one word can be connected with sign an underscore (_).

after understanding to create a variable in php, we will show the variable with the "echo". Echo is used to display text, strings, and variables into the browser. Below is a way to display text and variables with echo.
echo dan variable








careful when writing with two quotes (quotes) in the echo, because the quote mark the beginning and end of text marker or string using echo. For writing two quotes could use the way below.
penggunaan tanda quote
way 1

penggunaan tanda quote
2 ways
code error
wrong way















the third picture when colleagues write code like that, there will be an error.

to display the variable with echo two quotes are not necessary, just with a dot (.) to connect with a text variable or string that is in the two quotes.
variable dan echo
how to display variable

o yeah one more .... the use of comments in PHP, comments will not be molded into a web browser.
how to add a "/ /" (without the quotes) in front of his comments. This is to add a comment in one line only. While the / * ..... * / add comments consisting of several lines.
komentar dalam php
use comments

well, for now it used to be .... there are many more to be learned .... wait for the next post ya ...
next we will learn about operator in PHP .
may be useful ..... (: