Statistics
| Branch: | Tag: | Revision:

root / src / ganeti-mond.hs @ 0349f9c6

History | View | Annotate | Download (1.2 kB)

1 13cc7b84 Michele Tartara
{-| Ganeti monitoring agent daemon
2 13cc7b84 Michele Tartara
3 13cc7b84 Michele Tartara
-}
4 13cc7b84 Michele Tartara
5 13cc7b84 Michele Tartara
{-
6 13cc7b84 Michele Tartara
7 13cc7b84 Michele Tartara
Copyright (C) 2013 Google Inc.
8 13cc7b84 Michele Tartara
9 13cc7b84 Michele Tartara
This program is free software; you can redistribute it and/or modify
10 13cc7b84 Michele Tartara
it under the terms of the GNU General Public License as published by
11 13cc7b84 Michele Tartara
the Free Software Foundation; either version 2 of the License, or
12 13cc7b84 Michele Tartara
(at your option) any later version.
13 13cc7b84 Michele Tartara
14 13cc7b84 Michele Tartara
This program is distributed in the hope that it will be useful, but
15 13cc7b84 Michele Tartara
WITHOUT ANY WARRANTY; without even the implied warranty of
16 13cc7b84 Michele Tartara
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 13cc7b84 Michele Tartara
General Public License for more details.
18 13cc7b84 Michele Tartara
19 13cc7b84 Michele Tartara
You should have received a copy of the GNU General Public License
20 13cc7b84 Michele Tartara
along with this program; if not, write to the Free Software
21 13cc7b84 Michele Tartara
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 13cc7b84 Michele Tartara
02110-1301, USA.
23 13cc7b84 Michele Tartara
24 13cc7b84 Michele Tartara
-}
25 13cc7b84 Michele Tartara
26 13cc7b84 Michele Tartara
module Main (main) where
27 13cc7b84 Michele Tartara
28 13cc7b84 Michele Tartara
import qualified Ganeti.Monitoring.Server
29 13cc7b84 Michele Tartara
import Ganeti.Daemon
30 13cc7b84 Michele Tartara
import Ganeti.Runtime
31 13cc7b84 Michele Tartara
import qualified Ganeti.Constants as C
32 13cc7b84 Michele Tartara
33 13cc7b84 Michele Tartara
-- | Options list and functions.
34 13cc7b84 Michele Tartara
options :: [OptType]
35 13cc7b84 Michele Tartara
options =
36 13cc7b84 Michele Tartara
  [ oNoDaemonize
37 13cc7b84 Michele Tartara
  , oNoUserChecks
38 13cc7b84 Michele Tartara
  , oDebug
39 ce03c84c Petr Pudlak
  , oBindAddress
40 13cc7b84 Michele Tartara
  , oPort C.defaultMondPort
41 13cc7b84 Michele Tartara
  ]
42 13cc7b84 Michele Tartara
43 13cc7b84 Michele Tartara
-- | Main function.
44 13cc7b84 Michele Tartara
main :: IO ()
45 13cc7b84 Michele Tartara
main =
46 13cc7b84 Michele Tartara
  genericMain GanetiMond options
47 13cc7b84 Michele Tartara
    Ganeti.Monitoring.Server.checkMain
48 13cc7b84 Michele Tartara
    Ganeti.Monitoring.Server.prepMain
49 13cc7b84 Michele Tartara
    Ganeti.Monitoring.Server.main