Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nrpe - adding custom commands

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 844 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dvl
      last edited by

      I want to add my own custom commands to NRPE.  That is, I want to expand the list of entries in the the 'Command' dropdown list.

      How can I achieve this goal?

      Should I stop using the pfSense package and install my own? I'm happy to do that, but how would it be automagically started at run time?

      For example, I want to add this to nrpe.cfg:

      command[check_pkg_audit]    =/usr/local/bin/sudo /usr/local/libexec/nagios-custom/pkg-audit.sh host
      command[check_userland_kernel]=/usr/local/libexec/nagios-custom/check_userland_kernel

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.