AIX Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

AIX Agent

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: AIX Agent

Post by abrist »

Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

Re: AIX Agent

Post 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..
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: AIX Agent

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

Re: AIX Agent

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: AIX Agent

Post 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>"
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

Re: AIX Agent

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

Re: AIX Agent

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
DanZ
Posts: 17
Joined: Thu Jan 02, 2014 11:36 am

Re: AIX Agent

Post 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?
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: AIX Agent

Post 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
Locked