Home Directory Plugins Hardware Network Gear HP check_aruba_time (check_hp_time)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_aruba_time (check_hp_time)

Rating
0 votes
Favoured:
0
Current Version
1.1
Last Release Date
2016-06-08
Compatible With
  • Nagios 4.x
Owner
License
GPL
Hits
7406
Files:
FileDescription
check_aruba_time_v1.1.zipcheck_aruba_time_v1.1.zip
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
The script connects via SSH to an Aruba Switch (HP Switch), executes the "show time" command and then compares the result with the current time. Depending on the chosen parameters it returns OK, WARNING or CRITICAL. In case of an error it returns UNKNOWN.
********************************************************************************

check_aruba_time (check_hp_time)

(c) 2016 by Florian Fuchs (florian.fuchs@k.roteskreuz.at)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see .

********************************************************************************


Purpose
=======
The script connects via SSH to an Aruba Switch (HP Switch), executes the
"show time" command and then compares the result with the current time. Depending
on the chosen parameters it returns OK, WARNING or CRITICAL. In case of an error
it returns UNKNOWN.

Since the Aruba Switch does not support the execution of commands via SSH, the
program has to open a shell and write commands and read their results.

The script has been tested with a HP Switch 5406Rzl2 (J9850A).


Installation
============
Put the check_aruba_time script into the /usr/local/nagios/libexec directory.


Usage
=====
check_aruba_time.pl -H -u -p [-w variance in seconds] [-c variance in seconds]

Examples:
check_aruba_time.pl -H 172.27.1.2 -u user -p pass -c 5
check_aruba_time.pl -H host.domain.at -u user -p pass -w 5
check_aruba_time.pl -H host.domain.at -u user -p pass -w 5 -c 10

The scripts runs around 25 seconds. So do not worry if it takes that long.

It is recommended to use a login with operator and not with administrator privileges!


Changes
=======
V1.1: *) correct "check_aruba_time.exe" to "check_aruba_time.pl" in README and usage sub