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
  • fix for - corrupted record for package (pkgdep line without argument), ignoring
  • Mikrotik no-ip ddns update script
  • Скопировать права mysql gentoo
  • snmpd less verbose log FreeBSD (Connection from UDP messages)
  • mysql backup scripts
  1. Вы здесь:  
  2. Home
  • Home
  • Все статьи

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

unpack pfx certificate (used for apache or nginx)

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

Openssl < 3 :

openssl pkcs12 -in star_site_net.pfx -clcerts -nodes  -out star_site_net.pem

openssl pkcs12 -in star_site_net.pfx -nocerts -nodes -out star_site_net.key

Openssl > 3 :

openssl pkcs12 -in star_site_net.pfx -clcerts -nodes -provider legacy -provider default -out star_site_net.pem

openssl pkcs12 -in star_site_net.pfx -nocerts -nodes -provider legacy -provider default -out star_site_net.key

 

Links:

https://www.entrust.com/knowledgebase/ssl/how-do-i-convert-a-pfx-to-be-used-with-an-apache-server

https://stackoverflow.com/questions/72598983/curl-openssl-error-error0308010cdigital-envelope-routinesunsupported

  1. mysql audit plugin build script
  2. mysql dump one row

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

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

Search

Older Posts

  • modsecurity for nginx compilation scripts for freebsd (28)
  • Greenbone Vulnerability Manager (GVM) hacks (163)
  • elasticsearch cluster red status fix due to high watermark (107)
  • ubuntu arrow keys misbehaviour fix (117)
  • icinga IIS monitoring powershell error Get-WmiObject : Invalid namespace "root\WebAdministration" (147)
  • Make user superadmin in zabbix (138)
  • dnf Error: unknown option (148)
  • unpack pfx certificate (used for apache or nginx) (168)
  • mysql audit plugin build script (340)
  • mysql dump one row (131)
  • redmine 5 docker-compose (242)
  • gitlab runner dind docker-compose (190)
  • AWS S3 IAM policy to limit to single sub folder (195)
  • logrotate hints (263)
  • bash script to clean files to required percentage (369)

Login Form

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