HenriWahl / Nagstamon

Nagios status monitor for your desktop.
https://nagstamon.de
Other
420 stars 170 forks source link

Unable to add Zabbix latest to nagstamon, it crashed #708

Closed ftahirops closed 3 years ago

ftahirops commented 3 years ago

Every time i add latest zabbix URL to nagstamon, it crashes, there is some error in event log, no matter what i try, it always crash

HenriWahl commented 3 years ago

Can you provide some details like what OS and which version of OS, Nagstamon and Zabbix you are referring to?

Edit: Did any previous version of Nagstamon work in your environment?

Mika56 commented 3 years ago

Hi, I've discovered Nagstamon today. I'm having what seems to be the same issue: Nagstamon starts, says I have no server. I configure my Zabbix server, save, and Nagstamon freezes then crashes. I've tried v3.6.0 first, then 3.4.1, but both had the same results. I'm running on Windows 10 20H2. My Zabbix server is hosted on-premise using a custom CA (which is in the OS' certificate store). My Zabbix server uses LDAP authentication and form login against our Active Directory.

Here's what in Application log:

Faulting application name: Nagstamon.exe, version: 0.0.0.0, time stamp: 0x5e3034fe
Faulting module name: Qt5Core.dll, version: 5.13.2.0, time stamp: 0x5db2b3bb
Exception code: 0xc0000409
Fault offset: 0x0000000000022d28
Faulting process id: 0x7ef4
Faulting application start time: 0x01d72b81784fbaea
Faulting application path: C:\Program Files\Nagstamon\Nagstamon.exe
Faulting module path: C:\Program Files\Nagstamon\Qt5Core.dll
Report Id: f22274c1-53dd-435a-bc69-0ccd34f51cf0
Faulting package full name: 
Faulting package-relative application ID: 

Is there more logs somewhere? Could not find any in %userprofile%\.nagstamon, %programfiles%\Nagstamon nor %appdata%\Temp.

ftahirops commented 3 years ago

Can you provide some details like what OS and which version of OS, Nagstamon and Zabbix you are referring to?

Edit: Did any previous version of Nagstamon work in your environment?

i tried previous versions too, tried 2-3, none work anymore now, they used to work before.

OS: Windows 10 Pro, Ver: 1909 Nagstamon: Tried latest v3.6.0 Zabbix: 5.2 (using without SSL)

HenriWahl commented 3 years ago

@Mika56

Faulting module name: Qt5Core.dll, version: 5.13.2.0, time stamp: 0x5db2b3bb

I wonder about that Qt5 version, because it actually comes with 5.15.2. Do you have several versions installed? Or maybe a previous version has not been deleted completely? You could test with the .zip version of the downloads.

Is there more logs somewhere? Could not find any in %userprofile%\.nagstamon, %programfiles%\Nagstamon nor %appdata%\Temp.

Nagstamon has a debug option but looks like it crashes before you could enable it. :-(

ftahirops commented 3 years ago

@Mika56

Faulting module name: Qt5Core.dll, version: 5.13.2.0, time stamp: 0x5db2b3bb

I wonder about that Qt5 version, because it actually comes with 5.15.2. Do you have several versions installed? Or maybe a previous version has not been deleted completely? You could test with the .zip version of the downloads.

Is there more logs somewhere? Could not find any in %userprofile%\.nagstamon, %programfiles%\Nagstamon nor %appdata%\Temp.

Nagstamon has a debug option but looks like it crashes before you could enable it. :-(

Already un-instaled all versions, then tried, still same issue

Tried Zip folder version too, same issue.

i could not enable debug option, tried a lot

Mika56 commented 3 years ago

You can delete the server configuration in %userprofile%\.nagstamon\servers, then, when NAgstamon starts, select ignore. Right click on the Nagstamon "window", then settings, and enable debug mode. I've done it but Nagstamon had nothing to log for me?

As for the Qt version, my Nagstamon install (3.4.1) shipped with 5.13.2.0: image

ftahirops commented 3 years ago

%userprofile%.nagstamon\

Same for me, i did enable logging, but it crashes and no logs anywhere

HenriWahl commented 3 years ago

I've done it but Nagstamon had nothing to log for me?

OK, so it crashes earlier.

Did you try the new 3.6.0?

Edit: Yes, you did as I read now.

HenriWahl commented 3 years ago

I am going to test this in a Windows environment.

HenriWahl commented 3 years ago

Just one question: are there any special conditions hardware- or softwarewise?

ftahirops commented 3 years ago

Just one question: are there any special conditions hardware- or softwarewise?

i tried it on windows 10 in VM and on laptop, on both same issue, different hardware, same OS, same issue

Mika56 commented 3 years ago

Interestingly, it doesn't crash if credentials are incorrect

ftahirops commented 3 years ago

Interestingly, it doesn't crash if credentials are incorrect

yes, if credentials are nto right, it wont even open or get access to zabbix server, so obviously something only happens,when it tries to login, and after login it crashes

HenriWahl commented 3 years ago

@mprenditore do you maybe have an idea?

ftahirops commented 3 years ago

@HenriWahl so what do you think could be the reason?

HenriWahl commented 3 years ago

@ftahirops to me right now looks like some Zabbix login problem - that's why I ask @mprenditore for opinion as being the main author of the Zabbix code.

ftahirops commented 3 years ago

@ftahirops to me right now looks like some Zabbix login problem - that's why I ask @mprenditore for opinion as being the main author of the Zabbix code.

i want to add something i have multiple monitoring systems added in nagstamon, nagios and zabbix i had one nagios and 3 zabbix. all were doing fine, till last few days, even the working nagstamon is crashing (which was working perfectly fine). i was trying to add 4th Zabbix server, which used to crash it. so i did not add it.

so now i am not able to run nagstamon, looking for better alternatives. lot of issues

HenriWahl commented 3 years ago

@ftahirops this sounds really strange. Have there been any other changes in your environment? Any antivirus software? OS updates? I assume the previously working version was 3.4.1? Just for debugging - are you able to run it on another OS; for example in a Linux VM?

ftahirops commented 3 years ago

@ftahirops this sounds really strange. Have there been any other changes in your environment? Any antivirus software? OS updates? I assume the previously working version was 3.4.1? Just for debugging - are you able to run it on another OS; for example in a Linux VM?

in last few days, no OS changes, i think , may be last windows update happened, no major change beside that

let me try it on ubuntu VM

ftahirops commented 3 years ago

@ftahirops this sounds really strange. Have there been any other changes in your environment? Any antivirus software? OS updates? I assume the previously working version was 3.4.1? Just for debugging - are you able to run it on another OS; for example in a Linux VM?

here are my findings, i found the problem i think. on ubuntu there is same issue, but atleast it gives some erro before crashing.

Screenshot_1 Screenshot_2

HenriWahl commented 3 years ago

Thanks! This looks at least like something to investigate in.

ftahirops commented 3 years ago

Not sure why Zabbix based check goes to any IPMI check. perhaps a bug

HenriWahl commented 3 years ago

The great Github Actions already compiled a version which might fix it - please check https://github.com/HenriWahl/Nagstamon/releases/tag/latest

Mika56 commented 3 years ago

It crashes the same way.

There seems to be a demo instance of Zabbix available here: https://www.racom.eu/eng/products/m/ripex/demo/zabbix.html Maybe you can use this to debug the problem?

HenriWahl commented 3 years ago

@ftahirops can you get the crash output via Linux again?

HenriWahl commented 3 years ago

@Mika56 does this demo instance crash for you?

HenriWahl commented 3 years ago

@Mika56 did you use Zabbix or ZabbixProblemBased server type? I just changed Zabbix.

HenriWahl commented 3 years ago

Meanwhile added ZabbixProblemBased too, so the latest builds could be tested.

ftahirops commented 3 years ago

Thanks man, it worked like a charm. i can add any zabbix instances without any issues.

Regards, Farhan

On Thu, Apr 8, 2021 at 4:18 PM Henri Wahl @.***> wrote:

Meanwhile added ZabbixProblemBased too, so the latest builds could be tested.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HenriWahl/Nagstamon/issues/708#issuecomment-815745161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5ZDXJUVIMBM3AZWWCTTLTTHWNI7ANCNFSM42PG76YQ .

HenriWahl commented 3 years ago

Which one of the both Zabbix-related server types do you use?

ftahirops commented 3 years ago

Zabbix 4, 5.2.6 (latest) and using nagios. all are ok now, working perfectly with new release

Regards, Farhan

On Thu, Apr 8, 2021 at 4:23 PM Henri Wahl @.***> wrote:

Which one of the both Zabbix-related server types do you use?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HenriWahl/Nagstamon/issues/708#issuecomment-815753320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5ZDXLVBHJ5DCH4CEBPF5DTHWN5PANCNFSM42PG76YQ .

ftahirops commented 3 years ago

after upgrad,e , there is a problem. all my problems are duplicated, why is that?

you can see same problem is being shown 2 times, why is that?

Screenshot_1

HenriWahl commented 3 years ago

At first sight I do not know. What monitor type did you configure in Nagstamon? "Zabbix" or "ZabbixProblemBased"?

HenriWahl commented 3 years ago

https://github.com/HenriWahl/Nagstamon/issues/582 describes some similar experience but neither makes much sense.

ftahirops commented 3 years ago

Zabbix 5.2.6

Regards, Farhan

On Fri, Apr 9, 2021 at 1:44 AM Henri Wahl @.***> wrote:

At first sight I do not know. What monitor type did you configure in Nagstamon? "Zabbix" or "ZabbixProblemBased"?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HenriWahl/Nagstamon/issues/708#issuecomment-816240711, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5ZDXMN4DEPNXWYVWTZQNDTHYPSLANCNFSM42PG76YQ .

HenriWahl commented 3 years ago

I mean which type you configured in Nagstamon? There is a dropbox with many different server types to choose from.

HenriWahl commented 3 years ago

Another question aside the configured monitor type: I tested with the above mentioned https://www.racom.eu/eng/products/m/ripex/demo/zabbix.html and every problem occurs just once. How does this site display in your Nagstamon?

ftahirops commented 3 years ago

sorry, it was problem from my side. i just ued default settings fo nagstamon, cleared all filers and now its resolved. thanks

HenriWahl commented 3 years ago

But strange anyway that there the issues where in double?

ftahirops commented 3 years ago

yes, i dont know why it showed the same with double entries. no idea how it happened.

Regards, Farhan

On Sat, Apr 10, 2021 at 2:06 PM Henri Wahl @.***> wrote:

But strange anyway that there the issues where in double?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/HenriWahl/Nagstamon/issues/708#issuecomment-817111585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5ZDXMECXQJYFGWQAXNFETTIAPITANCNFSM42PG76YQ .