| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 16 | class NagiosCommand(Command): |
||
| 17 | """ |
||
| 18 | Test whether Enarksh is running properly. |
||
| 19 | |||
| 20 | nagios |
||
| 21 | """ |
||
| 22 | |||
| 23 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 24 | def handle(self): |
||
| 25 | """ |
||
| 26 | Executes the Nagios command. |
||
| 27 | """ |
||
| 28 | self.output = EnarkshStyle(self.input, self.output) |
||
| 29 | |||
| 30 | client = NagiosClient(self.output) |
||
| 31 | ret = client.main() |
||
| 32 | |||
| 33 | return ret |
||
| 34 | |||
| 36 |