Mobil Mewah

Salah satu sumber Inspirasi.

Saturday, 29 August 2015

Django Choice form filtered base on logged username

With Django we have form which have many feature to faster development. I usually use Django Model Form, which get the meta data from a model and spit out a form ready to use and rendered to client in HTML form. Now i need to get a choice field in django , but the choice field get from a foreign key, and need to filter it base on the username logged in to system. So the purpose is to get a list of choice which only available for the specific...

Tuesday, 18 August 2015

Check windows process with Nagios Monitoring

I need to check a process running on windows machine from a monitoring server. The monitoring using Nagios. I want to get alert when the process is not running on the windows machine. This can be achieved by using Nagios NRPE client++ . Assume NRPE client++ already installed. To test on nagios machine do this : ./check_nt -H 10.10.10.10 -p 12489 -v PROCSTATE -d SHOWALL -l w3wp.exe If running, it will return : w3wp.exe: Running if not running, it will return : w3wp: not running this so simple is it...

Tuesday, 11 August 2015

Monitoring DNS with a vbscript

DNS on windows usually come with Active directory service. But also can used to query external Domain name as long as the server have internet connection. Hostname entries in DNS also rarely changed and some use local cache with TTL from server. Somehow, we need to monitor a change in DNS query result with alert when these changes happend. Let say it is other Domain name which not in our control, we want to know immidiately when the Address...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More