Results 1 to 3 of 3

Thread: Get unpected requirement fron installing Nagios

  1. #1

    Default Get unpected requirement fron installing Nagios

    I am learning Linux with a web app installation at the link:
    openSUSE Quickstart
    It says this example is on OPENSUSE 10.2 (My computer is SUSE 14 now).

    1) Create Account Information

    Become the root user.

    su -l
    Create a new nagios user account and give it a password.
    /usr/sbin/useradd -m nagios
    passwd nagios
    Create a new nagios group. Add the nagios user to the group.
    /usr/sbin/groupadd nagios
    /usr/sbin/usermod -G nagios nagios
    Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.
    /usr/sbin/groupadd nagcmd
    /usr/sbin/usermod -a -G nagcmd nagios
    /usr/sbin/usermod -a -G nagcmd wwwrun
    When I run the following, it has an error:
    /usr/sbin/usermod -a -G nagcmd nagios
    /usr/sbin/usermod: invalid option -- 'a'
    Try `usermod --help' or `usermod --usage' for more information.
    I get the usermod help as:
    /usr/sbin/usermod --help
    Usage: usermod ...
    usermod - modify a user account

    -c comment Set the GECOS field for the new account
    -D binddn Use dn "binddn" to bind to the LDAP directory
    -d homedir Home directory for the new user
    -e expire Date on which the new account will be disabled
    -f inactive Days after a password expires until account is disabled
    -G group,... List of supplementary groups
    -g gid Name/number of the users primary group
    -l login Change login name.
    -m Move home directory to the new path
    -o Allow duplicate (non-unique) UID
    -A group,... List of groups the user should be added to
    -R group,... List of groups the user should be removed from
    -P path Search passwd, shadow and group file in "path"
    -p password Encrypted password as returned by crypt(3)
    -s shell Name of the user's login shell
    -u uid Change the userid to the given number
    --service srv Use nameservice 'srv'
    -L Locks the password entry for "user"
    -U Try to unlock the password entry for "user"
    --help Give this help list
    --usage Give a short usage message
    -v, --version Print program version
    Valid services are: files, ldap
    It has no '-a' option. What is wrong with the unexpected as the installer says? What option I can use? Thanks in advance

  2. #2
    Join Date
    Jun 2008
    Blog Entries

    Default Re: Get unpected requirement fron installing Nagios

    There is no openSUSE 14. Perhaps you meant 11.4?

    Why do it the hard way? Instead of following old instructions and doing it manually, just go to, search for nagios for the version of openSUSE you have and install it from a ready made package.

  3. #3
    Join Date
    Nov 2008
    Northern VA

    Default Re: Get unpected requirement fron installing Nagios

    The ready-made package of nagios seems to be missing files such as the quickstart.html. The readme files points to files that don't exist.
    The version of the quickstart for openSuse (not updated since openSuse 10) doesn't seem to match OS 12.2 very well. Specifically, gaining access to nagios via the web interface fails for lack of a user-p/w match after trying all combinations of names with the common p/w (it's only a lab setup).
    Most puzzling.
    Leap/KDE and a film-based photographer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts