Using ProLiant hardware Monitor Bash scripts with NCPA
Using ProLiant hardware Monitor Bash scripts with NCPA
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
You could place your scripts in the NCPA plugins directory, and set up passive checks, e.g.:
You can also use an active check in NCPA to call your script:
Code: Select all
# Service checks
%HOSTNAME%|<Service Description> = plugins/<your script>Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H <client ip> -t '<your token>' -M 'plugins/<your script>'Be sure to check out our Knowledgebase for helpful articles and solutions!