nagios på ubuntu server 14.04.04
jag försöker följa diverse guider på nätet men problemet jag får är att vissa commandon ej accepteras.
detta kommandot t.e.x sudo usermod –a –G nagios nagios
Det kommandot lägger till användaren nagios i gruppen nagios, något som borde ha gjorts när användaren skapades. Är du säker på att nagios-användaren finns? Vad får du för output från kommandot?
Det kommandot lägger till användaren nagios i gruppen nagios, något som borde ha gjorts när användaren skapades. Är du säker på att nagios-användaren finns? Vad får du för output från kommandot?
Hej!
Jag får följande. Tack för ditt svar!
rickard@ubuntu:~$ sudo usermod a G nagios nagios
Usage: usermod [options] LOGIN
Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-v, --add-subuids FIRST-LAST add range of subordinate uids
-V, --del-subuids FIRST-LAST remvoe range of subordinate uids
-w, --add-subgids FIRST-LAST add range of subordinate gids
-W, --del-subgids FIRST-LAST remvoe range of subordinate gids
-Z, --selinux-user SEUSER new SELinux user mapping for the user account
rickard@ubuntu:~$
Är det rätt,? kanske jag som tolkar att det är ett fel ?
Mvh Rickard
Hej!
Jag får följande. Tack för ditt svar!
rickard@ubuntu:~$ sudo usermod a G nagios nagios
Usage: usermod [options] LOGIN
Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-R, --root CHROOT_DIR directory to chroot into
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-v, --add-subuids FIRST-LAST add range of subordinate uids
-V, --del-subuids FIRST-LAST remvoe range of subordinate uids
-w, --add-subgids FIRST-LAST add range of subordinate gids
-W, --del-subgids FIRST-LAST remvoe range of subordinate gids
-Z, --selinux-user SEUSER new SELinux user mapping for the user account
rickard@ubuntu:~$
Är det rätt,? kanske jag som tolkar att det är ett fel ?
Mvh Rickard
sen är detta verkligen rätt ? klagar på group när jag förösker följa guiden.
Extract the tar file sudo tar xvf nagios-*.tar.gz then switch to the Nagios directory cd nagios* and configure Nagios with this command: sudo ./configure with-nagios-group=nagios with-command-group=nagios with-mail=/usr/sbin/sendmail then type, sudo make all to compile it. Now type these commands one by one on terminal
"configure: error: invalid variable name: with-nagios-group" får jag då:)
Måste finnas en annan guide?
rickard@ubuntu:~$ sudo usermod a G nagios nagios
Ska vara: sudo usermod -a -G nagios nagios
Ska vara: sudo usermod -a -G nagios nagios
ahh, Tackar! nu kom jag vidare... så noga det ska vara.
Ha en trevlig helg!
Mvh Rickard
- Idag Nu stiger hårddiskpriserna med uppemot 10 procent 0
- Idag Analytiker: Apple har överskattat intresset för Vision Pro 37
- Igår AMD, Nvidia och Intel – vad är det för skillnad mellan grafikkortstillverkarna? 21
- Igår Testpilot: MSI MPG 271QRX - Färgsprakande OLED i 360 Hz 13
- 23 / 4 Meta öppnar upp Quests OS – vill bli VR-världens Android 12
- Webhallen config, kan inte hitta 2 st sata diskar 3,556
- Quiz: Vad kan du om Inet?39
- Datorn startade om vid installation av drivrutin2
- Nu stiger hårddiskpriserna med uppemot 10 procent1
- Premier League säsong 2023/202426
- En simpel fråga om hur mycket lönehöjning man får varje år15
- Tråden för hörlursgalningar! Lurar, förstärkare, dacs, pads osv osv It´s all here!19830
- Sparkcykel barn - klarar den regn?6
- Viaplay sätter ner foten mot delade konton54
- [FAQ] Vilken router ska jag köpa?4274
- Säljes 2 set med Corsair 16GB (2x8GB) DDR4 3600MHz CL18 Vengeance LPX AMD
- Köpes 5800x3d / 5700x3d
- Säljes iMac Pro 2017
- Köpes Köpes AM4 moderkort + Minnen.
- Säljes GeForce RTX 2070 ROG STRIX 8GB
- Säljes RETRO: GeForce 8800 GTS
- Säljes Server - 2x Xeon gold 6138 - 256GB RAM - Nvidia P2000
- Säljes Ryzen 9 3950x Mobo 64gb ram!
- Säljes ASUS TUF F17 - i7 | 16GB | 1TB | RTX 4060
- Säljes ASUS 27" ROG Swift PG27AQDM OLED QHD 240 Hz
- Nu stiger hårddiskpriserna med uppemot 10 procent1
- Quiz: Vad kan du om Inet?39
- Analytiker: Apple har överskattat intresset för Vision Pro37
- Microsoft rullar ut Startmenyreklam till alla45
- EU röstar igenom ”rätten att reparera”50
- Viaplay sätter ner foten mot delade konton54
- AMD, Nvidia och Intel – vad är det för skillnad mellan grafikkortstillverkarna?21
- Systembolaget varnar: Dryckesbrist efter hackerattack88
- Veckans fråga: Hur mycket lagringsutrymme har din dator?93
- Valve täpper till kryphål i Steam-återbetalningar19