Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/etc/monit/conf.d/20_network:4: invalid every format 'I' #70

Open
kaiszy opened this issue Jul 25, 2024 · 0 comments
Open

/etc/monit/conf.d/20_network:4: invalid every format 'I' #70

kaiszy opened this issue Jul 25, 2024 · 0 comments

Comments

@kaiszy
Copy link

kaiszy commented Jul 25, 2024

Hi,

i use the latest puppet-monit module to install monit on our nodes.

mod 'sbitio-monit', '2.2.2'
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"

I use the code:

class base::monit (
  Array $monit_Allert_recipients = lookup('base::monit::mail::recipients', Array, 'first', ['[email protected]]),
) {

  class { '::monit':
    check_interval    => 60,
    check_start_delay => 120,
    mailserver        => 'localhost',
    eventqueue        => true,
    alerts            => $monit_Allert_recipients,
    httpserver        => false,
    httpserver_allow  => ['admin:secret'],
  }
}

When i start a puppet run i get:

Jul 25 11:18:04 monit[1380701]: * Starting daemon monitor monit
Jul 25 11:18:04 monit[1380716]: /etc/monit/conf.d/20_network:4: invalid every format 'I'
Jul 25 11:18:04 monit[1380716]: /etc/monit/conf.d/20_network:4: syntax error 'F'

The created file look like:

# This file is managed by Puppet. DO NOT EDIT.
CHECK NETWORK interface_eth0 WITH INTERFACE eth0
  GROUP interface_eth0
  EVERY

  IF FAILED LINK
  THEN ALERT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant