<commit_before>
# Nagios Stop

    module.exports = header: 'Nagios Stop', label_true: 'STOPPED', handler: ->

## Stop

Stop the Nagios server. The file storing the process ID (PID) is located in
"/var/run/nagios.pid". You can also stop the server manually with the following
command:

```
service nagios stop
```

The file storing the PID is "/var/run/nagios.pid".

      @service.stop
        name: 'nagios'
        code_stopped: 1

## Stop Clean Logs

      @execute
        header: 'Clean Logs'
        cmd: 'rm /var/log/nagios/*'
        code_skipped: 1
        if: @config.ryba.clean_logs<commit_msg>nagios: fix stop if not yet installed<commit_after>
# Nagios Stop

    module.exports = header: 'Nagios Stop', label_true: 'STOPPED', handler: ->

## Stop

Stop the Nagios server. The file storing the process ID (PID) is located in
"/var/run/nagios.pid". You can also stop the server manually with the following
command:

```
service nagios stop
```

The file storing the PID is "/var/run/nagios.pid".

      @service.stop
        name: 'nagios'
        code_stopped: 1
        if_exists: '/etc/init.d/nagios'

## Stop Clean Logs

      @execute
        header: 'Clean Logs'
        cmd: 'rm /var/log/nagios/*'
        code_skipped: 1
        if: @config.ryba.clean_logs
{'fraction_non_alphanumeric': 0.11285266457680251, 'fraction_numerical': 0.003134796238244514, 'mean_word_length': 2.659025787965616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3788519', 'n_tokens_mistral': 445, 'n_tokens_neox': 422, 'n_words': 139}