rotewolke
Goto Top

Centreon check wmi plus.pl checknetwork Funktioniert nicht

Centreon Monitoring Software
PLUGIN: check_wmi_plus.pl

Hallo

Meine frage dazu ist was ist das Problem wenn unter Konfiguration Befehle ich die Prüfung Bearbeite und dort Live Teste ich eine Antwort erhalte und wenn ich unter Services den Service Aktiviere ich die Antwort so erhalte:

UNKNOWN - Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagios process user. You will need to change the permissions on the file or remove

Genau das gleiche erhalte ich bei der Abfrage vom checkcpu

Hat da jemand Erfahrung?

meine Abfrage lautet so:
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u DOMAIN/USER -p PASSWORT -m checknetwork -a $ARG1$
Ich nehme dann die Option LAN-VERBINDUNG in den Service Einstellung. Wenn ich keinen Eintrag habe, erhalte ich eine Antwort!

Content-Key: 194355

Url: https://administrator.de/contentid/194355

Printed on: April 26, 2024 at 15:04 o'clock

Member: AB-Sys
AB-Sys Nov 16, 2012 at 11:35:00 (UTC)
Goto Top
Im Grunde steht dort bereits die Ursache und die Lösung:

Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagios process user. You will need to change the permissions on the file or remove

Das Ergebnis des Checks wird in eine Statusdatei geschrieben und der Prozess unter der Centreon läuft, darf nicht in die Datei schreiben.
Korrigiere die Berechtigungen der Datei, dann sollte es gehen.
Member: rotewolke
rotewolke Nov 16, 2012 at 11:49:23 (UTC)
Goto Top
ok... und welche Datei ist das?

Verstehe das nicht so ganz den wenn ich den Wert LAN-Verbindung rausnehme bekomme ich ja Infos von allen Netzwerkadaptern.
Member: AB-Sys
AB-Sys Nov 16, 2012 at 11:57:06 (UTC)
Goto Top
Ich kenne deine Konfiguration nicht.
Ggf. /tmp ?
Member: rotewolke
rotewolke Nov 16, 2012 at 12:15:24 (UTC)
Goto Top
Ja stimmt... im /tmp hatte er kein Erlaubnis. Danke!