Nagstamon
Nagstamon copied to clipboard
Display issues on mobile
I tested Nagstamon 3.8 on the Pinephone Pro with Mobian and the Phosh desktop environment which is based on GNOME. These are my findings. Hopefully, these notes and screenshots will be helpful to you or others developing on Pinephone or Librem 5.
The default screen resolution is 720x1440 when vertical and 1440x720 when horizontal.
Upon first boot, I was able to easily use the wizard to setup a connection to a Nagios server. This is not pictured.
The status window displays and I can scroll down to see a brief overview of alerts. I cannot scroll to the right to see the Status Information
column. I cannot access the settings from this view. Username, server, and domain information is redacted from screenshots.
If I unlock orientation, I can rotate the screen. The view does not snap to a horizontal view automatically. I played around with it and if I tap on the Go to monitor...
drop down, sometimes it will fill the screen.
Once the screen is wide, the settings menu can be accessed. Changing the order of the first row of options by moving the sandwich menu between the version number and the Go to monitor...
drop down would make all options available to vertical and horizontal views.
The settings menus mostly display and are mostly functional. I had to rotate back and forth between vertical and horizontal to see some of the entries. Scrolling is unavailable so not everything is visible. Entering filter text was the most difficult task as the on-screen keyboard would cover the text box. You could read or type, but not both. I ended up manually creating the $HOME/.nagstamon/nagstamon.conf
file to initially write the filter line before I learned the trick to expand the horizontal view to access the settings menu.
The buttons at the bottom of the screen to Save or Cancel below the view of the screen. The buttons are out of view on my laptop as well. Closing the window does not save the settings so there is no apparent way to save to the user. A workaround is to open the Server
tab, tap on the Update interval
text box, open the on-screen keyboard, and press the enter key.
Sounds play just like when using the desktop. The sounds seem to ignore the Phosh preferences and play even when the phone is set to silent. This is probably an upstream bug rather than nagstamon issue, but I have not traced where the issue lies yet. I would have to stop Nagstamon or disable sound in the settings before going to bed, entering a meeting, or taking a phone call. Rotate > Go to monitor > tap on server > tap > Settings > Uncheck Enable sound
.
~~Desktop notifications do not interact with the notification system of Phosh so the only hint is the sound that plays. My settings were not being saved when I thought they were.~~ Desktop notifications do display in the notifications after changing the settings, but notifications are just the count of alerts in various levels. The custom notifications could make these useful, but currently the variables do not work. See https://github.com/HenriWahl/Nagstamon/issues/566
Overall, not very useful at this point in time on Mobian due to sound issues, lack of notification options, and an inability to see the Status Information
column. In general, nagstamon does work better than many applications that I have tested.
Reproduce: If you want to try to work through these issues and do not have a Pinephone or Librem 5, Purism made a virtual machine image that should be similar environment to what I showed. Purism's PureOS is also Debian based and uses Phosh. After configuring the system, open a terminal and run sudo apt update && sudo apt install -y nagstamon
or open the GNOME Software app and install Nagstamon. To close the terminal or Software app, tap or click on the ^
icon at the bottom of the screen and swipe up or click and drag up while holding onto the window that you want to close. Scroll down to the bottom and tap on the Show All Apps
button. Find Nagstamon in the list to start.
Edit: Changed notes about saving settings with a workaround.
Edit: Expanded notification and sound notes.
Hi there - nice to see it runs on mobile too but I fear becaue this is such a small niche I won't find time to look at it deeper. Maybe things will get better wit Qt6 regarding the changed display orientation.
Anyway any contribution is welcome, so if you find out how to fix things let me know.
Nothing new here...