create new component

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
leens
Posts: 34
Joined: Mon Apr 18, 2011 6:59 am

create new component

Post by leens »

Hello

I'm not a programmer and I try to create a new component. For this I use an existing component : traceroute.

What I would like is to show the result of the command "chow ip nat translation" on a cisco router
I blocked here

//check target IP or domain
if ($unix){
$cmdline=escapeshellcmd("traceroute $host");
system($cmdline);
}

because I have to log on the router before launch my command.. I don't know php so I don't know how to do that..

Can someone help me?

Rgds
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: create new component

Post by mguthrie »

How do you normally authenticate into your router? SSH? Web interface? I should probably let you know now that I am a PHP developer, and unless you can pass a username and password from the command-line to run something on the router, what you're wanting to achieve is going to be difficult.

Is this data available from an SNMP check?
leens
Posts: 34
Joined: Mon Apr 18, 2011 6:59 am

Re: create new component

Post by leens »

Hi

I authenticate by ssh or telnet with user, password. My goal was to have like traceroute a check at demand with result. Not all time...
Via snmp I don't find yet oid but in that case check will be regularly or we need this at demand of client if a problem is detected... It's why I would like to do this component
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: create new component

Post by scottwilkerson »

Could you just use the check_by_ssh command ?

http://assets.nagios.com/downloads/nagi ... ng_SSH.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
leens
Posts: 34
Joined: Mon Apr 18, 2011 6:59 am

Re: create new component

Post by leens »

Hi

I need to connect on a cisco router and I have to authenticate with a password
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: create new component

Post by scottwilkerson »

I don't have direct experience with this plugin, but it looks to do what you want...

http://exchange.nagios.org/directory/Pl ... et/details
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked