How to configure the XSCF for Nagios Monitoring Sun (Fujitsu) MX000 series servers

Source: Internet
Author: User

    • Configuration Environment Description address operating system IP address (Nagios client) server-side Check_ the execution script of the XSCF and places it on the Nagios client. check_xscf.cfg-checks the XSCF configuration file, which is used primarily to set the temperature and voltage thresholds on the Nagios client. Script: Http:// /details script Execution: The Nagios server executes the XSCF command by calling the script on the Nagios client through Check_nrpe.
    • Generate RSA key for user Nagios on Nagios client
Log in to the Nagios client as root: grep nagios/etc/shadownagios:*lk*:::::::-bash-3.00# Su-nagiossun   Microsystems INC. SunOS 5.10 Generic January 2005 generated for Nagios user ssh RSA key:$/usr/bin/ssh-keygen-t rsagenerating public/private RSA key P Air. Enter file in which to save the key (/USR/LOCAL/NAGIOS/.SSH/ID_RSA): Created directory '/usr/local/nagios/.ssh '. Enter passphrase (empty for no passphrase): Enter same passphrase Again:your identification have been saved In/usr/local/na Gios/.ssh/id_rsa. Your public key have been saved in/usr/local/nagios/.ssh/ key fingerprint is:69:d5:16:3a:e7:0d:0d:df:fe:26 : 96:08:f3:a4:55:f3 [email protected]$ cd/usr/local/nagios/.ssh$ lsid_rsa$ more Id_rsa.pubssh-rsa AAA ab3nzac1yc2eaaaabiwaaaieavryqqyhfpzcxzsjiim9jwm0jl3igf8mgjqaumzcj6ytajxnmzofrjy/oo0gjmgyz/t+ i4ejdsvw4g8bvbyvsolp7ace6ej43wcq+5gx/rjqxwe7lynwgbpxdltusxijwwwrolbjnme0cbyjma04hhnx58yu+ne+tovcqttxzvn0= [ Email protected] above is the content of RSA public key.
    • Login XSCF, add SSH user public key
xscf> showssh-c pubkeyxscf> setssh-c addpubkey-u mlcplease input a public key:ssh-rsa Aaaab3nzac1yc2eaaaabiwaaaie avryqqyhfpzcxzsjiim9jwm0jl3igf8mgjqaumzcj6ytajxnmzofrjy/oo0gjmgyz/t+i4ejdsvw4g8bvbyvsolp7ace6ej43wcq+5gx/ rjqxwe7lynwgbpxdltusxijwwwrolbjnme0cbyjma04hhnx58yu+ne+tovcqttxzvn0= [Email protected]xscf> showssh-c Pubkeypublic key:     1  Ssh-rsa aaaab3nzac1yc2eaaaabiwaaaieavryqqyhfpzcxzsjiim9jwm0jl3igf8mgjqaumzcj6ytajxnmzofrjy/oo0gjmgyz/t+ i4ejdsvw4g8bvbyvsolp7ace6ej43wcq+5gx/rjqxwe7lynwgbpxdltusxijwwwrolbjnme0cbyjma04hhnx58yu+ne+tovcqttxzvn0= [ Email protected]xscf> exit
    • Test user SSH Public key mode for authentication
Test whether the user Nagios can execute commands on XSCF via Identity_file ( $ ssh-l mlc-i/usr/local/nagios/.ssh/id_rsa Showdomainstatus-athe authenticity of host ' ( ' can ' t be established. RSA key fingerprint is d1:83:1b:b7:eb:f3:70:f2:b8:f5:e2:43:5c:af:a1:e9. Is you sure want to continue connecting (yes/no)? yeswarning:permanently added ' ' (RSA) to the list of known hosts. Did Domain Status00 running01-02-03-$ More/usr/local/nagios/.ssh/known_hos ts192.168.3.80 Ssh-rsa aaaab3nzac1yc2eaaaabiwaaaieayryzftyrkzk/ Xysnxue8lvteervy2lv6f0vibjiwuwekyh8kifteudkijbt4yn0ukjn3udp16ao8n53xrkrxqxlkwfmrqey4ncy5ahg4ffaynbwvj0mvrl9wrak1d6il9xev8 in3k3xayb8o22s/sid238/tbdyj9yebikplvpc= first execution of the XSCF to add the address to known_hosts. $ ssh-l mlc-i/usr/local/nagios/.ssh/id_rsa showdomainstatus-adid Domain Status00 Running 01-02-03-Executes the result directly on the output command the second time it executes.
    • Configuring the Nagios client
Copy the check script and configuration file check_xscf.cfg to the/usr/local/nagios/libexec directory of the Nagios client, and Check_ file increased execution permissions-bash-3.00# chmod a+x/usr/local/nagios/libexec/ on Nagios client/usr/local/nagios/etc/ Added in nrpe.cfg: Command[check_xscf_hw]=/usr/local/nagios/libexec/ mlc-i/usr/local/ Nagios/.ssh/id_rsa-c Showhardconfcommand[check_xscf_ev]=/usr/local/nagios/libexec/ Mlc-i/usr/local/nagios/.ssh/id_rsa-c Showenvironment/usr/local/nagios/libexec/check_   Xscf.cfg using Nagios to run a new two check with the Nagios user trial run the new plus two checks:-bash-3.00# Su-nagios Sun Microsystems Inc. SunOS 5.10 Generic January 2005 $/usr/local/nagios/libexec/ mlc-i/usr/local/nagios /.ssh/id_rsa-c showhardconf Hardware OK! | $/usr/local/nagios/libexec/ mlc-i/usr/local/nagios/.ssh/id_rsa-c showenvironment/ USR/LOCAL/NAGIOS/LIBEXEC/CHECK_XSCF.CFG Environment OK! |100c, 70C, 1.1*u, 0.9*u,
    • adds the configuration of the corresponding Check_nrpe on the Nagios server side.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.