Kerya techblog

Most Read Posts

  • Gentoo mail (postfix + postfixadmin + dovecot + amavisd-new + roundcube)
  • Zabbix - no such instance currently exists at this oid
  • LVM cant Boot - ALERT /dev/mapper/ubuntu--vg-root does not exist DROPPING to Shell -
  • liquidsoap-1.1.1 gentoo install
  • Laravel manual user register
  • Gentoo: php 5.6.0 + pecl-memcached 2.2.0 install script
  • Zabbix APC Smart UPS monitoring on FreeBSD with snmp
  • Squid 3.4 debian 7 install script
  • Подключение Foxgate S6224-S2 Ubuntu minicom
  • Abills
  • exim+dovecot+postfixadmin+clamav+spamassassin on FreeBSD
  • Openmeetings 2.1.1 Ubuntu 12.04.2 installation
  • libtool version mismatch pecl gentoo
  • Securing NTP
  • FreeBSD 9 ossec setup errors fix
  • Mikrotik no-ip ddns update script
  • Скопировать права mysql gentoo
  • fix for - corrupted record for package (pkgdep line without argument), ignoring
  • mysql backup scripts
  • snmpd less verbose log FreeBSD (Connection from UDP messages)
  1. Вы здесь:  
  2. Home
  • Home
  • Все статьи

ubuntu arrow keys misbehaviour fix

Подробности
Автор: Kirill

Sometimes happens when arrow keys stop working as expected in ubuntu, up arrow which usually stand for search back in history become printscreen and other arrows stop working at all, you can't move cursor, etc.

Fix is easy:

$ sudo udevadm trigger --subsystem-match=input --action=change

Source:

https://askubuntu.com/questions/675476/reset-keyboard-layout-to-default-and-wipe-out-all-earlier-settings

 

 

icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration"

Подробности
Автор: Kirill

 

$ '/usr/lib64/nagios/plugins/custom_checks/nrpe_nsclient/nrpe_nsclient.sh' '-H' 'supermega.giga.host.com' -p 5665 -c check_ms_iis_application_pool --args 'DefaultAppPool'

Get-WmiObject : Invalid namespace "root\WebAdministration"
At C:\Program Files\NSClient++\scripts\check_ms_iis_application_pool.ps1:320
char:40
+ ... ProcessId = Get-WmiObject -NameSpace 'root\WebAdministration' -class ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-WmiObject], Management
Exception
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
ommands.GetWmiObjectCommand

OK: Application Pool Started but no process is assigned yet "DefaultAppPool" with 0 Applications. {CPU: 0%}{Memory: 0MB} |'pool_cpu'=0%;;;0;100 'pool_memory'=0MB;;;0 'app_count'=0

Resolution:

You may not have IIS Management Scripts and Tools installed on server(s). You can install it from Server Manager -> Web Server Role -> Role Services -> Management Tools -> IIS Management Scripts and Tools. Make sure you have checked option "IIS Management Scripts and Tools" option

https://stackoverflow.com/questions/41451689/invalid-namespace-root-webadministration-on-iis-7-0

Run:

powershell.exe Install-WindowsFeature -Name Web-Scripting-Tools

Make user superadmin in zabbix

Подробности
Автор: Kirill
  • zabbix

Long story short:

You need to set type field in the users table to 3:

update users set type=3 where userid=66;

To change password in MySQL  (tested with 5.0 ):

update users set passwd=md5('mynewpassword') where alias='someuser';

 

 

dnf Error: unknown option

Подробности
Автор: Kirill

in /var/log/dnf.log :

Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 573, in load
   ret = self._repo.load()
 File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load
   return _repo.Repo_load(self)
RuntimeError: Unknown option

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main
   return _main(base, args, cli_class, option_parser_class)
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main
   return cli_run(cli, base)
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run
   cli.run()
 File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1038, in run
   self._process_demands()
 File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 741, in _process_demands
   load_available_repos=self.demands.available_repos)
 File "/usr/lib/python3.6/site-packages/dnf/base.py", line 405, in fill_sack
   self._add_repo_to_sack(r)
 File "/usr/lib/python3.6/site-packages/dnf/base.py", line 140, in _add_repo_to_sack
   repo.load()
 File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 580, in load
   raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: Unknown option
2024-02-27T17:10:37+0000 CRITICAL Error: Unknown option

Missing packages:

python3-librepo

librepo

Install/update:

wget https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/l/librepo-1.14.2-4.el8.x86_64.rpm

wget https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/p/python3-librepo-1.14.2-4.el8.x86_64.rpm

rpm -U python3-librepo-1.14.2-4.el8.x86_64.rpm  librepo-1.14.2-4.el8.x86_64.rpm

  1. unpack pfx certificate (used for apache or nginx)
  2. mysql audit plugin build script

Страница 2 из 18

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

Search

Older Posts

  • zerotier one add more routes (45)
  • modsecurity for nginx compilation scripts for freebsd (433)
  • Greenbone Vulnerability Manager (GVM) hacks (507)
  • elasticsearch cluster red status fix due to high watermark (399)
  • ubuntu arrow keys misbehaviour fix (479)
  • icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration" (477)
  • Make user superadmin in zabbix (528)
  • dnf Error: unknown option (629)
  • unpack pfx certificate (used for apache or nginx) (458)
  • mysql audit plugin build script (751)
  • mysql dump one row (536)
  • redmine 5 docker-compose (703)
  • gitlab runner dind docker-compose (519)
  • AWS S3 IAM policy to limit to single sub folder (465)
  • logrotate hints (631)

Login Form

  • Забыли пароль?
  • Забыли логин?
  • Регистрация