• Tag Archives Centos
  • Nagios plugin didn’t work ?

    You installed a new Nagios-Plugin, configured it and tested it on the commandline.

    Everything works as expected.

    Now you restart Nagios and the output of your website shows only scrap or errors.

    In my case it was the default setting in /etc/sudoers

    Defaults    requiretty
    #
    # Refuse to run if unable to disable echo on the tty. This setting should also be
    # changed in order to be able to use sudo without a tty. See requiretty above.
    #

    which means: sudo need a tty Terminal to run.

    Change this setting to : Defaults    !requiretty

    and your script will run sudo without terminal and the nagios-plugin works perfect.


  • Local yum repository CentOS 6.3

    Creating A Local Yum Repository (CentOS)

    1. Verify if ‘createrepo’ is already installed. If it is installed, skip step 2 and continue from step 3. Otherwise, proceed to the next step.

    [root@rep-serv ~]# rpm -qi createrepo

    2. If ‘createrepo’ isn’t already installed, since it isn’t by default; install it.

    [root@rep-serv ~]# yum -y install createrepo

    weiterlesen…..