check_cisco_ping
Posted: Tue Nov 12, 2013 11:26 am
How to use check_cisco_ping plugin in Nagios core for Monitoring vrf Links.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
[root@localhost libexec]# ./check_cisco_ping --help
Parameter to use lib must be directory, not file at ./check_cisco_ping line 31
check_cisco_ping v1.0 (nagios-plugins 1.4.13)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2005 Colin Stubbs <[email protected]>
This plugin runs commands on a Cisco device via telnet
Usage: check_cisco_ping -H <host> -u <username> -p <password> -r <router address>
-w <wrta,wpl>% -c <crta,cpl>% [-vrf <vrf>] [-P <packets>]
[-h <help>] [-V]
-r, --router=HOST
Name or IP address of Cisco device to run ping on
-H, --hostname=HOST
Name or IP address to ping
-u --username=USERNAME
Username to login with
-p --password=PASSWORD
Password to login with
-v --vrf=VRF
VRF routing target
-P --packets=5
Number of ICMP ECHO packets to send (Default: 5)
-w --warning=THRESHOLD
Warning threshold pair
-c --critical=THRESHOLD
Critical threshold pair
-h --help
This screen
-V --version
Plugin version
THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel
time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the
percentage of packet loss to trigger an alarm state.
Send email to [email protected] if you have questions
regarding use of this software. To submit patches or suggest improvements,
send email to [email protected].
Please include version information with all correspondence (when possible,
use output from the --version option of the plugin itself).
Lines like this mean you are missing a module that the perl script uses, in this case the Net::Telnet::Cisco module. Assuming you are on a RedHat or CentOS machine:debashmit wrote: Can't locate Net/Telnet/Cisco.pm in @INC (@INC contains: utils.pm /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_cisco_ping line 34.
BEGIN failed--compilation aborted at ./check_cisco_ping line 34.
Code: Select all
yum install perl-Net-Telnet-CiscoCode: Select all
updatedb && locate utils.pm
Code: Select all
use lib /usr/local/nagios/libexec/utils.pm
Searching for "check cisco ping ssh" doesn't come up with what you need, so chances are there's not a plugin written for it that supports SSH. I didn't find anything on Google either. It shouldn't be too hard to modify the script to use SSH.debashmit wrote:Hi sreinhardt ,
Can u tell me the SSH plugin Name.