Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_aruba_time (check_hp_time)
Current Version
1.1
Last Release Date
2016-06-08
Compatible With
- Nagios 4.x
Owner
License
GPL
Hits
6590
Files:
File | Description |
---|---|
check_aruba_time_v1.1.zip | check_aruba_time_v1.1.zip |
********************************************************************************
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
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
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
Reviews (0)
Be the first to review this listing!