Page 1 of 1

Using ProLiant hardware Monitor Bash scripts with NCPA

Posted: Mon Jun 10, 2019 10:32 am
by djembe65
I have cron executed scripting in Red Hat 6 and 7 running on Physical HP ProLiant servers that use HP Linux hardware commands and email if there are issues. Is it easy to use those scripts with NCPA. I an easily have result codes produced that I think can be used with NCPA..

Re: Using ProLiant hardware Monitor Bash scripts with NCPA

Posted: Mon Jun 10, 2019 10:50 am
by lmiltchev
You could place your scripts in the NCPA plugins directory, and set up passive checks, e.g.:

Code: Select all

# Service checks
%HOSTNAME%|<Service Description> = plugins/<your script>
You can also use an active check in NCPA to call your script:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <client ip> -t '<your token>' -M 'plugins/<your script>'