ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I had to guess, and I am, you should not use this.
Quote:
Originally Posted by tissam89
Hi !
I am using nagios to monitor my equipments .
I have to monitor the interfaces of my switches and routers, but is a big number of interfaces and equipments , i can't add it one by one manualy .
Why not? Define a "big number of interfaces and equipments"
Are those host details stored in a file somewhere? Where did you 'find' this script exactly?
Hi !
I am using nagios to monitor my equipments. I have to monitor the interfaces of my switches and routers, but is a big number of interfaces and equipments , i can't add it one by one manualy.
Yes, you CAN add them manually. It's a matter of WANTING to add them manually.
Quote:
I searshed in internet , and i have found this script. i don't know how to use it , what should I write on modele.com file, and from where my script will get the $ip et $modele ?
So...you found the script, but instead of asking the author of the script for help, you posted it here, and want US to figure it out? Why don't you just email the person who wrote it, and ask? Their email address and other contact info is on their website. Also, there are six pages of networking plugins on the Nagios site...have you checked there? http://exchange.nagios.org/directory...-and-Bandwidth
You just say "monitor"...you don't say if you want a simple up/down, traffic information, or how detailed you want.
Hi, Thank you for your answer. I have try to contact the person, but noway.
What do you mean "no way"??? You couldn't find out how, they haven't answered, or they told you no?? If you read the script, it's telling you the .txt file contains two things: the model of the Cisco router, and the IP address of the router, separated by comma.
Quote:
I posted my question on nagios forums too, but no answer yet.
Question about WHAT?? They didn't write that script...which plugin did you post about?? Each plugin has a different author and maintainer...but they are very easy to install/use and are typically well documented. Did you read/understand those docs?
Quote:
for the moment, i just want to test if the interface is up or down .
Ok, so AGAIN, go to the Nagios plugin site, and pick the plugin that does exactly what you're looking for. Read the instructions and install it. Did you try to look this up? http://exchange.nagios.org/directory..._cisco/details
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.