System and Server Status and Don't check option...

I have a monitor of type Execute Process. On that process, I do not want to check it if another monitor, which is of type check process, is down. So, in the box labelled "Don't check if monitor is down", I put the check process monitor. After I do that, it forever thinks the execute process monitor is down, even though the other process clearly shows always up (it checks a MySQL replication slave instance). As soon as I remove the dependency in that box, both show up.

So, it seems like perhaps the don't check if down is actually checking don't check if up perhaps?

It confused me for a long time as when I get into the main screen which shows the status of all monitors, they all show up, when I bring up the execute process monitor, it also shows up, yet, the history always showed down. Took me a while to see that the issue was the dependency box.

Status: 
Active

Comments

The "don't check" option will actually completely disable updating the status of the "execute process" monitor if the "check process" monitor is down. So it will remain in whatever state it was in when the "check process" monitor started failing.

The better solution is to write your command in the "execute process" monitor so that it succeeds if the process isn't running. Something like :

if (ps axuwww | grep -v grep | grep someprocess); then /path/to/command; fi

The check process is and always is/was up. Always. Nevertheless, the execute process monitor remains down, even though it shows up on the status screen, and, if you edit it, it also says up. The reason is says up is that it is, and executing the command from the command line shows as well. It's not difficult to know that MySQL is running of course.

I do want to use the two as the check process monitor checks if mysql is running, there is no reason for the execute process to check if replication slave threads are running if mysql itself is not running. So, I believe it should work but does not work as you say at all. I believe webmin check has boolean logic reversed.

This is odd too.... See how it shows that is is up, near top, and, in the history below. This is without check process involved. Now, I back out of the screen to the main webmin system and server status screen ,and it shows down! Always. This is after the update today to the latest webmin version. And, it's configured to show CURRENT status in module config.

Don't forget that by default the main page of the module only shows the status from the last scheduled check, but when you click on a monitor it shows the current live status. You can change this on the Module Config page via the "Status to display in list" setting though.

Yes, am well aware, and as I had said in the ticket, it is set to "Current Status". In any case, the monitors do not work. See portion #2 in this ticket.

Another possible cause is that when you click on a monitor, its status is shown regardless of the status of whatever monitor is in the "Don't check if monitor is down" field. That only controls what checking is done on schedule (to prevent false alerts), not in the UI.

Ok, I should not have mentioned the second issue as it is clear I have confused things, I will report that as a separate case. Back to the original. When the monitor has the box checked to not check if monitor is down, then, I am finding that the monitor is never run, whether or not the other monitor is down. That is the issue I am reporting here.

I would like for that to be fixed.

I'm not seeing this on my test system, sorry. However, I just realized when you have the main page set to show the current status vs. the last background collected, it does NOT take dependencies into account.

However, when you change the "Status to display in list" to "From last scheduled check", monitors that had a failed dependencies will have their status shown as a dash.

Ok, so, it sounds like I may need to grant you access to this Virtualmin so you can see for yourself.

I sent email, however, I do not see the Virtualmin support module any more to grant access?

You may need to install it with the command yum install wbm-virtualmin-support

Yep, but, it is not a valid module that yum sees. So, I did a yum clean all just in case, and a yum search virtualmin, and get this output. I do not see support as a module!

Loaded plugins: fastestmirror Determining fastest mirrors epel/metalink | 12 kB 00:00
* base: mirror.stanford.edu * epel: mirror.prgmr.com * extras: mirror.web-ster.com * updates: mirror.pac-12.org base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.2 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.2 MB 00:00
virtualmin | 1.2 kB 00:00
virtualmin/primary | 31 kB 00:00
virtualmin-universal | 1.2 kB 00:00
virtualmin-universal/primary | 23 kB 00:00
virtualmin-universal 193/193 epel/pkgtags | 1.0 MB 00:00
=========================== N/S Matched: virtualmin ============================ virtualmin-base.noarch : Wrapper package to trigger installation of the : Virtualmin Stack virtualmin-release.noarch : Virtualmin release file and package configuration wbm-virtualmin-dav.noarch : Webmin module for 'Virtualmin DAV' wbm-virtualmin-git.noarch : Webmin module for 'Virtualmin Git Repositories' wbm-virtualmin-google-analytics.noarch : Webmin module for 'Virtualmin : Analytics' wbm-virtualmin-htpasswd.noarch : Webmin module for 'Virtualmin Protected : Directories' wbm-virtualmin-init.noarch : Webmin module for 'Virtualmin Bootup Actions' wbm-virtualmin-mailman.noarch : Webmin module for 'Virtualmin Mailman Mailing : Lists' wbm-virtualmin-oracle.noarch : Webmin module for 'Virtualmin Oracle Databases' wbm-virtualmin-registrar.noarch : Webmin module for 'Virtualmin Domain : Registration' wbm-virtualmin-signup.noarch : Webmin module for 'Virtualmin Mailbox Signup' wbm-virtualmin-slavedns.noarch : Webmin module for 'Virtualmin Slave DNS Plugin' wbm-virtualmin-sqlite.noarch : Webmin module for 'Virtualmin SQLlite Databases' wbm-virtualmin-svn.noarch : Webmin module for 'Virtualmin Subversion : Repositories' ust-virtual-server-mobile.noarch : Usermin theme 'Virtualmin Mobile Theme' ust-virtual-server-theme.noarch : Usermin theme 'Virtualmin Framed Theme' wbm-security-updates.noarch : Webmin module for 'Virtualmin Package Updates' wbm-virtual-server.noarch : Webmin module for 'Virtualmin Virtual Servers (GPL)' wbm-virtualmin-awstats.noarch : Webmin module for 'AWstats Reporting' wbm-virtualmin-nginx.noarch : Webmin module for 'Nginx Webserver' wbm-virtualmin-nginx-ssl.noarch : Webmin module for 'Nginx SSL Webserver' wbt-virtual-server-mobile.noarch : Webmin theme 'Virtualmin Mobile Theme' wbt-virtual-server-theme.noarch : Webmin theme 'Virtualmin Framed Theme'

I assume you are using the Pro version there?

True, it turns out this is a GPL machine. So, how to proceed? My email documented what to do, assuming you could get on of course. There is definitely at least one bug, probably two. Perhaps I could just create a temporary webmin user and email to you? How do people usually handle this? Can I grant access to just system and server status perhaps? Or, do you need more?

I installed your patch for the issue where adding a don't check if monitor down causes it to always say down, and I get the same results. I uploaded the patch, installed from the local directory, it said it was installed, I even restarted webmin just in case.

Ok, I've emailed your the virtualmin-support RPM - you can install it with the command :

rpm -U wbm-virtualmin-support-1.6-1.noarch.rpm