Page 1 of 2

AIX Agent

Posted: Thu Feb 13, 2014 11:06 am
by DanZ
Continuing my work on a Nagios XI POC here at MST. Where may I find a AIX agent that will will work with XI. Is there a plug-in for XI so an AIX Icon sows up in the configure monitoring wizard?

Re: AIX Agent

Posted: Thu Feb 13, 2014 11:34 am
by abrist

Re: AIX Agent

Posted: Fri Feb 14, 2014 3:21 pm
by DanZ
I'm looking at the check_by_SSH monitor for monitoring 2000+ Unix / Linux servers. A mixture of AIX, SUN and Redhat. Since we are a retailer and du to the whole Target mess setup of Pre- shared keys is now off the table. I would like to use Nagios with XI to monitor and want a agentless implementations. Can the SSH monitor be confiture to use a login and password? (no key)

BTW you guys do a great job with the online support. Answers are quick and to the point. If I can over-come these technical challenges I'm recommending the full purchase of this tool..

Re: AIX Agent

Posted: Fri Feb 14, 2014 3:34 pm
by abrist
DanZ wrote:Can the SSH monitor be confiture to use a login and password? (no key)
No. But you could make a plugin that does it quite easily - though it would (without further scripting) store the password in plaintext on the XI server. Not sure if that is better than pre-shared keys though.
You would make a shell script plugin using sshpass and pass the command string through a parameter.
If this is a requirement, we can most definitely help you create this script.

Re: AIX Agent

Posted: Mon Feb 17, 2014 1:29 pm
by DanZ
We will require account with our own naming convention and not use the shared key. IF you have a white paper on how to create the sshpass plug in. I can try that before I get your gut to help us.. Thanks again.

Re: AIX Agent

Posted: Mon Feb 17, 2014 1:51 pm
by abrist
We do not provide a document for using sshpass to create a plugin. It would be rather simple though:
check_by_sshpass.sh:

Code: Select all

#!/bin/bash
HOST=$1
USER=$2
PASS=$3
COMMAND=$4
sshpass -p$PASS ssh -o StrictHostKeyChecking=no $USER@$HOST "$COMMAND"
Run it with:

Code: Select all

./check_by_sshpass.sh <hostname> <username> <password> "<command>"

Re: AIX Agent

Posted: Mon Mar 17, 2014 3:43 pm
by DanZ
OK so once I create this check_by_sshpass.sh what path on the XI server do I put it in. and how in the XI UI do I tell it to use this on the ssh monitor setups instead of its normail check_by_ssh?

Re: AIX Agent

Posted: Mon Mar 17, 2014 4:56 pm
by lmiltchev
As with any other plugin in nagios, you will need to install the plugin, test it from the CLI, define a command, and add a service. Please, review the following document, which describes how to manage plugins on your XI system:

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

Re: AIX Agent

Posted: Fri Mar 21, 2014 1:17 pm
by DanZ
Thanks for all the help thus far. I was able to create a plugin to do what we need. The last part of this POC is to configure Nagios to send a SNMP TRAP to our SNMP management server. I'm still looking but have not yet found documentation on how to set this up. Can you point me in the right direction?

Re: AIX Agent

Posted: Fri Mar 21, 2014 1:32 pm
by ss6396
DanZ wrote:Thanks for all the help thus far. I was able to create a plugin to do what we need. The last part of this POC is to configure Nagios to send a SNMP TRAP to our SNMP management server. I'm still looking but have not yet found documentation on how to set this up. Can you point me in the right direction?
I've been doing the same thing. Look in the XI Administrators Guide under Advanced Topics, SNMP Trap Integration. There is an snmp trap sender component. Or direct link to instructions: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf