NRPE check add



  • 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


Log in to reply