Using ProLiant hardware Monitor Bash scripts with NCPA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
djembe65
Posts: 2
Joined: Thu Jan 28, 2010 5:07 pm

Using ProLiant hardware Monitor Bash scripts with NCPA

Post 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..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Using ProLiant hardware Monitor Bash scripts with NCPA

Post 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>'
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked