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
- Igår Europol ställer sig emot end-to-end-kryptering 126
- Igår Svenska speljätten Embracer splittras – blir tre separata bolag 16
- Igår Snabbkoll: Brukar du handla begagnad teknik? 90
- Igår Akira har tjänat en halv miljard kronor på ransomware-attacker 14
- 21 / 4 Gamers Nexus: EK Water Blocks har problem 32
- Nollställa google konto, safe search inställnings olydnad är kopplat till inloggade google konton0
- Europol ställer sig emot end-to-end-kryptering126
- Robust dator för framförallt CS2 - ca 20K8
- Ubiquiti Unifi2752
- Har alla IPS skärmar backlight bleed?11
- Snabbtest: Bli mer Pro med mindre tangentbord38
- Webhallen config, kan inte hitta 2 st sata diskar 3,517
- Posta din hastighet!2427
- Nanosys: QDEL-tekniken potentiellt redo för kommersiell lansering 202633
- Ny TV har skada i panel, butik menar att de inte kan återskapa felet4
- Säljes Ryzen 5 2600 + 16gb ram + b350-f gaming
- Säljes Flera 2060 och 1660 super
- Säljes Finalmouse ULX Tiger
- Säljes Anne Pro 2 tangentbord, Cooler Master ARGB fläktar 3 in 1, Keychron Hacker Keycap Set, 2 x Corsair 120 mm
- Säljes 16 GB DDR5 Sodimm 5600 MHz
- Säljes Logitech G915 Lightspeed trådlöst tangentbord GL Tactile & Logitech G Pro Wireless
- Säljes ZOWIE XL2566K
- Säljes Stationär dator + skärm + laptop + ram
- Säljes KFA2 GeForce RTX 4070 Ti EX Gamer (1 Click-OC)
- Säljes Noctua NH-D15S (1x AM4 & 1x LGA 115x)
- Meta öppnar upp Quests OS – vill bli VR-världens Android4
- Googles nästa Chromecast får dubblerad lagring49
- EK Water Blocks lovar bot och bättring15
- Tiny11 gör Windows 11-installationen lätt24
- SFW! Känn doften av nyklippt gräs med Dreame Roboticmower A121
- Så ska Louqe locka tillbaka chassiälskarna10
- Enklare installera Windows-program från webben11
- Nanosys: QDEL-tekniken potentiellt redo för kommersiell lansering 202633
- Europol ställer sig emot end-to-end-kryptering126
- Svenska speljätten Embracer splittras – blir tre separata bolag16