PowerVM

 View Only
  • 1.  Nagios NRPE Clien on VIO

    Posted Thu March 23, 2023 11:01 AM

    Has anyone ever installed and ran the Nagios NRPE client on a VIO Server?  Are there any things to be careful with when doing so?



    ------------------------------
    Anthony Cascianelli
    ------------------------------


  • 2.  RE: Nagios NRPE Clien on VIO

    Posted Thu March 23, 2023 11:17 AM
    NRPE hosting a local daemon on a TCP port triggering local scripts on
    demand has more security implications, especially if ad-hoc command
    parameters are allowed in the NRPE configuration. I prefer to avoid
    using NRPE because I don't want another root daemon open to the
    network.

    I recommend using SNMP and NRDP instead.

    VIOS has native SNMP you can enable and make checks relatively easily
    remotely via IBM supported software. Look at
    HOST-RESOURCES-MIB::hrSWRunTable, HOST-RESOURCES-MIB::hrStorageTable,
    IBM-AIX-MIB::aixFsTable, and IBM-AIX-MIB::aixProcTable. The AIX MIBs
    are faster to respond, and the aixFsTable works correctly for very
    large filesystems where HR wraps negative.

    NRDP will let you submit checks of your own scripts via cron job back
    to Nagios (ie: PUSH model). There's a simple NRDP Perl submission script
    which works on AIX and VIO. Combine that with a cron job to routinely
    do a passive check submission, and be sure to monitor your passive
    checks for stale data.

    On Thu, Mar 23, 2023 at 03:01:29PM +0000, Anthony Cascianelli via IBM Community wrote:
    > Has anyone ever installed and ran the Nagios NRPE client on a VIO Server? Are there any things to be careful with when doing so?
    >
    >
    > ------------------------------
    > Anthony Cascianelli
    > ------------------------------
    >
    >
    > Reply to Sender : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6073&MID=361225&SenderKey=11924268-af30-4b7f-8eae-1b232ec0ec2f
    >
    > Reply to Discussion : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6073&MID=361225
    >
    >
    >
    > You are subscribed to "PowerVM" as Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=08137a30-97b3-4ae4-8d8d-fcf834e4f06e.


    ------------------------------------------------------------------
    Russell Adams Russell.Adams@AdamsSystems.nl
    Principal Consultant Adams Systems Consultancy
    https://adamssystems.nl/




  • 3.  RE: Nagios NRPE Clien on VIO

    Posted Thu March 23, 2023 11:36 AM

    I wouldn't be allowing ad-hoc parameters, and my intention would be to create a user for nrpe so that it wasn't running as root.



    ------------------------------
    Anthony Cascianelli
    ------------------------------



  • 4.  RE: Nagios NRPE Clien on VIO

    Posted Fri March 24, 2023 07:33 AM
    " The AIX MIBs are faster to respond, and the aixFsTable works correctly for very
    large filesystems where HR wraps negative."

    While I think more people should be using old-school MIBs that just work, I'd caution people to review what the frequency of polling is.

    I can recall on more than one occassion a customer complaint about performance and tracing down to the point that their 1000 filesystem environment was getting queried every 15 seconds by 2 or 3 different consumers.

    Run df on any 1000 filesystem box every 15 seconds and you'll see that AIX (Unix System V) or even Linux wasn't threaded that way. What Heisenberg said.

    15 years back, we built the AIX perfstat libs to buffer stuff like that. But mibd doesn't use that.

    Steve Nasypany
    Senior Power Technical Specialist
    US Public & Federal Market
    nasypany@us.ibm.com     512.796.0159





  • 5.  RE: Nagios NRPE Clien on VIO

    Posted Mon March 27, 2023 09:21 AM

    Why poll the data every 15 or 30 seconds. Tune your server in such a way you do not have to pull the data every 15 to 30 seconds. Poll the data at 1 minute or 5 minutes.  Proper server tuning you will get result you need. Is you VIOS has enough resource to respond.






  • 6.  RE: Nagios NRPE Clien on VIO

    Posted Mon March 27, 2023 09:27 AM

    I was able to get NRPE working without a problem.  Polling every 1 minute as with the rest of the system's being monitored.



    ------------------------------
    Anthony Cascianelli
    ------------------------------



  • 7.  RE: Nagios NRPE Clien on VIO

    Posted Fri November 10, 2023 10:25 AM

    Hi,

    is it possible to descripe how you did this? Is there a special way how to create a user and group and set up a special environment?

    Which commands do you use to check the VIOS? ioscli? So to check error report, do you use errlog or errpt?



    ------------------------------
    Christoph Reigl
    ------------------------------