Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosimo/nagios-downtime
Schedule hosts downtime in Nagios from the command line
https://github.com/cosimo/nagios-downtime
Last synced: 10 days ago
JSON representation
Schedule hosts downtime in Nagios from the command line
- Host: GitHub
- URL: https://github.com/cosimo/nagios-downtime
- Owner: cosimo
- Created: 2010-03-07T16:12:59.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-04T15:09:20.000Z (over 13 years ago)
- Last Synced: 2023-04-21T10:38:28.901Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 99.6 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
nagios-downtime - Send an external command to Nagios setting downtime
for a hostSYNOPSIS
nagios-downtime
--server
[--protocol={http,https}]
[--port=]
--user
--pass
--hostname
--message
[--start ]
[--duration ]
[--help]Timestamp is in no. of seconds since epoch. Duration is in seconds. Yes,
I'm lazy.DESCRIPTION
Nagios is a widely used systems monitoring application.This script will schedule downtime for a given hostname for you in your
Nagios server from the command line, saving you the "painful" experience
of opening your browser and going through the Nagios web interface.It's meant to be used as quick utility to schedule downtime unattended,
when launching scripts that are not run at some regular point in time
every day/week, but something you have to run at random times.At present, there's no way to cancel a scheduled downtime.
OPTIONS
"-help" Print a brief help message and exits."-server"
The nagios server hostname (ex.: "nagios.yourdomain.lan")"-protocol"
If you're using https, you may specify "-protocol=https" or
"-port=443"."-port" If you're running nagios on a port different from 443 (https) or
80 (http) then you need to specify the port number here (ex.:
"-port=2222")."-user" Nagios username that you can use in the web interface
"-pass" Nagios password that you can use in the web interface
"-hostname"
The host for which you want to schedule downtime (ex.:
"blah.domain.com")"-message"
Comment for the downtime (ex.: "Reinstallation in progress").
Max 40 chars."-start"
Timestamp for when the downtime should start. This is in seconds
since epoch, yes, Unix timestamp.Defaults to now.
"-duration"
Duration of downtime. By default, 2 hours if not specified.AUTHOR
Cosimo Streppone, [email protected]LICENSE AND COPYRIGHT
(C) 2010 Cosimo Streppone, [email protected]This library is free software; you can only redistribute it and/or
modify it under the same terms as Perl itself.