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

No "acknowledgements" or "scheduleddowntimes" or " Logentires" visible #26

Open
tinoklauer opened this issue Aug 19, 2021 · 4 comments
Open

Comments

@tinoklauer
Copy link

Hi,

with the new Version (installation yesterday) i can`t see "acknowledgements" or "scheduleddowntimes" or " Logentires".

Git_stat

/opt/statusengine/worker/bin/StatusengineWorker.php
statusengine-worker[10763]: Starting Statusengine-Worker Version 3.2.0
statusengine-worker[10763]: Fork new host status worker
statusengine-worker[10763]: Fork new service status worker
statusengine-worker[10763]: Fork new log entry worker
statusengine-worker[10763]: Fork new state change worker
statusengine-worker[10763]: Fork new host check worker
statusengine-worker[10763]: Fork new service check worker
statusengine-worker[10763]: Fork new misc worker
statusengine-worker[10763]: Fork new performance data worker
statusengine-worker[10763]: Finished daemonizing
statusengine-worker[10763]: Bye

@nook24
Copy link
Member

nook24 commented Aug 20, 2021

Hi, could you please test if this is also happening on the demo system https://demo.statusengine.org/ ?

Also please set log_external_commands=1 in your nagios.cfg or naemon.cfg, restart the monitoring and check the logfile to see if the monitoring is processing the external commands

@tinoklauer
Copy link
Author

Hi,

i can see the external commands in nagios.log and

EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;XXX;D: drive space;2;1;1;admin;empty comment
EXTERNAL COMMAND: SCHEDULE_HOST_DOWNTIME;xxx;1629438175;1629481375;1;0;43200;admin;empty comment
EXTERNAL COMMAND: SCHEDULE_HOST_SVC_DOWNTIME;xxx;1629438175;1629481375;1;0;43200;admin;empty comment
HOST DOWNTIME ALERT: xxx;STARTED; Host has entered a period of scheduled downtime

i can now see "scheduleddowntimes","acknowledgements".

my mistake was statusengine has default selected "nodes" and not "services". Why no all as default?
git

But with the new broker i have no Logentries!

Test 1 with dump load from old statusengine:

  1. Save the old Database with old broker on Debian 9:
    /usr/bin/mysqldump -uUser -pPassword statusengine --flush-privileges --single-transaction --triggers --routines --no-tablespaces --events --hex-blob | bzip2 > /destination/statusengine_$(date +%Y-%m-%d).sql.bz2
  2. Fresh installation (Debian 10) with downloads from 18.08.2021 and load Database Dump
    bunzip2 < /destination/statusengine_$(date +%Y-%m-%d).sql.bz2 | mysql -usame User -psame Password --database statusengine
  3. Fix error mysql because new Version of mysql
    mysql_upgrade --force -uroot -pPassword

No " logentires".

Test 2 without dump load - Debian 10
I can see "scheduleddowntimes", "acknowledgements" but no " logentires".

Test 3 install with old broker - Debian 10
No problem i can see all

@nook24
Copy link
Member

nook24 commented Sep 7, 2021

Did you updated your database like descripted in the docs? https://statusengine.org/worker/#update-to-3.7

@tinoklauer
Copy link
Author

Hi,

here the script for reproduce. I change the script from nook24 for Debian 10.

Download script

Testet in Debian 10

you see the error with systemctl status nagios | grep Could or you try to run the file /opt/statusengine/lib/libstatusengine.so --> Speicherzugriffsfehler

thx

Originally posted by @tinoklauer in #24 (comment)

I test it with this Skript and I have no logentries.

This was a fresh installtion.

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

2 participants