Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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.
Current Version
1.1
Last Release Date
2016-06-08
Owner
Florian Fuchs
License
GPL
Compatible With
********************************************************************************
check_aruba_time (check_hp_time)
(c) 2016 by Florian Fuchs ([email protected])
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 <http://www.gnu.org/licenses/>.
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 <host_address> -u <username> -p <password> [-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
You must be logged in to submit a review.
To:
From: