Discussion:
[Check_mk (deutsch)] Error creating configuration: Invalid entry Check_MK 1.4.0p34 raw
Jan Peters
2018-12-03 19:17:57 UTC
Permalink
Hallo,

ich möchte für die postfix-mailq die output-queue Parameter anpassen. Wenn ich die 2 Werte setze, erhalte ich folgendes:


State: Failed. Started at: 11:09:02. Finished at: 11:09:08.
Failed: Got invalid data:

Internal automation error: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)

Traceback (most recent call last):
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 10208, in page_automation
html.write(repr(automation_commands[command]()))
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 5575, in do_activate_changes_automation
return execute_activate_changes(domains)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 5233, in execute_activate_changes
warnings = domain_class().activate()
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 361, in activate
return check_mk_local_automation(config.wato_activation_method)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 6024, in check_mk_local_automation
raise MKGeneralException(hilite_errors(outdata))
MKGeneralException: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)

Was mache ich falsch?

Besten Dank im Voraus


Jan
Andreas Döhler
2018-12-04 21:45:33 UTC
Permalink
Hallo Jan,

was passiert auf der Shell bei einem --> cmk --debug -vvn vm-238
Schaue bitte mal in deinem ~/local/share/check_mk/checks/ ob es dort ein
postfix_mailq Check gibt. Wenn ja wurde dieser mal angepasst und versteht
die Parameter der aktuellen Version nicht.
Kann das mit deiner Version gerade nicht testen.

Gruß
Andreas
Post by Jan Peters
Hallo,
ich möchte fÌr die postfix-mailq die output-queue Parameter anpassen. Wenn
State: Failed. Started at: 11:09:02. Finished at: 11:09:08.
Internal automation error: Error creating configuration: Invalid entry
'({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])'
in host configuration list: must have 2 or 3 entries (on host vm-238,
checktype postfix_mailq)
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line
10208, in page_automation
html.write(repr(automation_commands[command]()))
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 5575,
in do_activate_changes_automation
return execute_activate_changes(domains)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line
5233, in execute_activate_changes
warnings = domain_class().activate()
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 361, in activate
return check_mk_local_automation(config.wato_activation_method)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line
6024, in check_mk_local_automation
raise MKGeneralException(hilite_errors(outdata))
MKGeneralException: Error creating configuration: Invalid entry
'({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])'
in host configuration list: must have 2 or 3 entries (on host vm-238,
checktype postfix_mailq)
Was mache ich falsch?
Besten Dank im Voraus
Jan
_______________________________________________
checkmk-de mailing list
Verwaltung & Abmeldung unter
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-de
Jan Peters
2018-12-06 07:44:44 UTC
Permalink
Hallo Andreas,

besten Dank!

in ~/local/share/check_mk/checks/ ist nix dergleichen was mit Postfix zu tun haben könnte

Die Debugausgabe ist hier:

CPU load OK - 15 min load 0.00 at 4 Cores (0.00 per Core)
CPU utilization OK - user: 2.8%, system: 0.2%, wait: 0.5%, steal: 0.0%, total: 3.5%
Disk IO SUMMARY OK - Utilization: 2.4%, Read: 0.00 B/s, Write: 81.06 kB/s, Average Wait: 26.08 ms, Average Read Wait: 0.00 ms, Average Write Wait: 26.08 ms, Latency: 3.14 ms, Average Queue Length: 0.00
Interface 2 OK - [eth0] (up) MAC: AA:00:BB:D6:C4:3C, speed unknown, in: 6.22 kB/s, out: 21.85 kB/s
Kernel Context Switches OK - 159/s
Kernel Major Page Faults OK - 0/s
Kernel Process Creations OK - 2/s
Memory OK - RAM used: 2.62 GB of 4.00 GB (65.5%),
Mount options of / OK - Mount options exactly as expected
NTP Time OK - sys.peer - stratum 2, offset 3.49 ms, jitter 0.07 ms, last reached 540 secs ago (synchronized on 82.198.196.1)
Number of threads OK - 120 threads
Postfix Queue CRIT - Deferred queue length: 96 (warn/crit at 10/20)(!!), Active queue length: 1
Postfix status OK - Status: the Postfix mail system is running, PID: 9595
TCP Connections OK - ESTABLISHED: 4, CLOSE_WAIT: 6, TIME_WAIT: 14, FIN_WAIT2: 4, LISTEN: 12
Uptime OK - Up since Tue Jan 3 22:02:51 2017 (701d 10:32:57)
fs_/ OK - 53.3% used (2.13 of 4.00 GB), trend: -322.37 kB / 24 hours
OK - Agent version 1.4.0p34, execution time 0.3 sec|execution_time=0.345 user_time=0.080 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.276
 
Wir haben damals ein Upgrade von 1.2 auf 1.4 gemacht.

Gruß 

Jan



Gesendet: Dienstag, 04. Dezember 2018 um 22:45 Uhr
Von: "Andreas Döhler" <***@gmail.com>
An: "Jan Peters" <***@gmx.de>
Cc: "Checkmk De" <checkmk-***@lists.mathias-kettner.de>
Betreff: Re: [Check_mk (deutsch)] Error creating configuration: Invalid entry Check_MK 1.4.0p34 raw

Hallo Jan,
 
was passiert auf der Shell bei einem --> cmk --debug -vvn vm-238
Schaue bitte mal in deinem ~/local/share/check_mk/checks/ ob es dort ein postfix_mailq Check gibt. Wenn ja wurde dieser mal angepasst und versteht die Parameter der aktuellen Version nicht.
Kann das mit deiner Version gerade nicht testen.
 
Gruß
Andreas 

Am Mo., 3. Dez. 2018 um 20:18 Uhr schrieb Jan Peters <***@gmx.de[mailto:***@gmx.de]>:Hallo,

ich möchte für die postfix-mailq die output-queue Parameter anpassen. Wenn ich die 2 Werte setze, erhalte ich folgendes:


State: Failed. Started at: 11:09:02. Finished at: 11:09:08.
Failed: Got invalid data:

Internal automation error: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)

Traceback (most recent call last):
  File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 10208, in page_automation
    html.write(repr(automation_commands[command]()))
  File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 5575, in do_activate_changes_automation
    return execute_activate_changes(domains)
  File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 5233, in execute_activate_changes
    warnings = domain_class().activate()
  File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 361, in activate
    return check_mk_local_automation(config.wato_activation_method)
  File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 6024, in check_mk_local_automation
    raise MKGeneralException(hilite_errors(outdata))
MKGeneralException: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)

Was mache ich falsch?

Besten Dank im Voraus


Jan

_______________________________________________
checkmk-de mailing list
checkmk-***@lists.mathias-kettner.de[mailto:checkmk-***@lists.mathias-kettner.de]
Verwaltung & Abmeldung unter
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-de[https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-de]
Andreas Döhler
2018-12-06 13:49:51 UTC
Permalink
Hallo Jan,

da der Fehler nach einem Update von 1.2 auf 1.4 aufgetreten ist
versuche erstmal für diesen Host ein "cmk -II" oder "Tabula Rasa" es
hat sich nach dem 1.2.8 beim Postfix etwas geändert.
Es wird nun immer ein Item gefunden auch bei nur einer Queue. Früher
gabs da gar keine Items.

Gruß
Andreas
Post by Jan Peters
Hallo Andreas,
besten Dank!
in ~/local/share/check_mk/checks/ ist nix dergleichen was mit Postfix zu tun haben könnte
CPU load OK - 15 min load 0.00 at 4 Cores (0.00 per Core)
CPU utilization OK - user: 2.8%, system: 0.2%, wait: 0.5%, steal: 0.0%, total: 3.5%
Disk IO SUMMARY OK - Utilization: 2.4%, Read: 0.00 B/s, Write: 81.06 kB/s, Average Wait: 26.08 ms, Average Read Wait: 0.00 ms, Average Write Wait: 26.08 ms, Latency: 3.14 ms, Average Queue Length: 0.00
Interface 2 OK - [eth0] (up) MAC: AA:00:BB:D6:C4:3C, speed unknown, in: 6.22 kB/s, out: 21.85 kB/s
Kernel Context Switches OK - 159/s
Kernel Major Page Faults OK - 0/s
Kernel Process Creations OK - 2/s
Memory OK - RAM used: 2.62 GB of 4.00 GB (65.5%),
Mount options of / OK - Mount options exactly as expected
NTP Time OK - sys.peer - stratum 2, offset 3.49 ms, jitter 0.07 ms, last reached 540 secs ago (synchronized on 82.198.196.1)
Number of threads OK - 120 threads
Postfix Queue CRIT - Deferred queue length: 96 (warn/crit at 10/20)(!!), Active queue length: 1
Postfix status OK - Status: the Postfix mail system is running, PID: 9595
TCP Connections OK - ESTABLISHED: 4, CLOSE_WAIT: 6, TIME_WAIT: 14, FIN_WAIT2: 4, LISTEN: 12
Uptime OK - Up since Tue Jan 3 22:02:51 2017 (701d 10:32:57)
fs_/ OK - 53.3% used (2.13 of 4.00 GB), trend: -322.37 kB / 24 hours
OK - Agent version 1.4.0p34, execution time 0.3 sec|execution_time=0.345 user_time=0.080 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.276
Wir haben damals ein Upgrade von 1.2 auf 1.4 gemacht.
Gruß
Jan
Gesendet: Dienstag, 04. Dezember 2018 um 22:45 Uhr
Betreff: Re: [Check_mk (deutsch)] Error creating configuration: Invalid entry Check_MK 1.4.0p34 raw
Hallo Jan,
was passiert auf der Shell bei einem --> cmk --debug -vvn vm-238
Schaue bitte mal in deinem ~/local/share/check_mk/checks/ ob es dort ein postfix_mailq Check gibt. Wenn ja wurde dieser mal angepasst und versteht die Parameter der aktuellen Version nicht.
Kann das mit deiner Version gerade nicht testen.
Gruß
Andreas
State: Failed. Started at: 11:09:02. Finished at: 11:09:08.
Internal automation error: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 10208, in page_automation
html.write(repr(automation_commands[command]()))
File "/omd/sites/companya/share/check_mk/web/htdocs/wato.py", line 5575, in do_activate_changes_automation
return execute_activate_changes(domains)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 5233, in execute_activate_changes
warnings = domain_class().activate()
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 361, in activate
return check_mk_local_automation(config.wato_activation_method)
File "/omd/sites/companya/share/check_mk/web/htdocs/watolib.py", line 6024, in check_mk_local_automation
raise MKGeneralException(hilite_errors(outdata))
MKGeneralException: Error creating configuration: Invalid entry '({'deferred': (100, 200)}, ['/wato/company-a/+'], ['smtp-relay'], [''])' in host configuration list: must have 2 or 3 entries (on host vm-238, checktype postfix_mailq)
Was mache ich falsch?
Besten Dank im Voraus
Jan
_______________________________________________
checkmk-de mailing list
Verwaltung & Abmeldung unter
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-de[https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-de]
Loading...