nagios på ubuntu server 14.04.04

Permalänk

nagios på ubuntu server 14.04.04

Hej!

Snälla hjälp mig förstå en eller 2 saker.

Försöker installera o lära mig nagius på en liten ubuntu server.

Min kunskaper är knapphändiga skall ju erkännas:)
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

Guiden jag följer är följande

https://ittutorials.net/linux/nagios/setup-nagios/#Prerequisi...

Är det någon som kanske orkar förklara eller peka på en guide som funkar?:)

Ha en trevlig dag!

Mvh Rickard

Permalänk
Medlem
Skrivet av Rickard72:

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?

Permalänk
Skrivet av Psyence:

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

Permalänk
Skrivet av Rickard72:

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?

Permalänk
Medlem
Skrivet av Rickard72:

rickard@ubuntu:~$ sudo usermod a G nagios nagios

Ska vara: sudo usermod -a -G nagios nagios

Permalänk
Skrivet av Psyence:

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