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

    NRPE check add

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.9k 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.
    • K
      koaps
      last edited by

      Hi guys,

      I was wondering if it might be possible to add a settings or add check or even have the GUI scan the nagios libexec folder?

      I have some custom checks I needed to add and I would like a way to get them into the GUI checks list without having to manually edit configs since that could break things for me in the future.

      On a side note, if anyone needs it here are my wrapper shell scripts I use to get perf data from check_procs (these are checks I need to add in):

      #######################

      cat check_procs_total_perf.sh

      #######################

      #!/bin/sh

      RESULT=/usr/local/libexec/nagios/check_procs -w 150 -c 200
      ERR=$?

      PROC=/bin/echo $RESULT | /usr/bin/awk '{print $3}'

      PERF="procs=$PROC:150:200:0:1000"

      echo "$RESULT|$PERF"
      exit $ERR

      ######################

      check_procs_zombie_perf.sh

      ######################

      #!/bin/sh

      RESULT=/usr/local/libexec/nagios/check_procs -w 150 -c 200 -s Z
      ERR=$?

      PROC=/bin/echo $RESULT | /usr/bin/awk '{print $3}'

      PERF="zprocs=$PROC:5:10:0:100"

      echo "$RESULT|$PERF"
      exit $ERR

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