Can Xymon alert for a missing disk on windows?
list Tom Diehl
Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards, -- Tom user-dcee455aaab0@xymon.invalid
list Becker Christian
Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.) Now xymon knows that you explicitely want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section. Regards and good luck! Christian -----Urspr?ngliche Nachricht-----
▸
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid
Gesendet: Donnerstag, 14. April 2022 22:58
An: xymon at xymon.com
Betreff: [Xymon] Can Xymon alert for a missing disk on windows?
Hi,
Is there a way to have Xymon alert if a disk is missing on a Windows server?
I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing?
We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not.
My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness.
Regards,
--
Tom user-dcee455aaab0@xymon.invalid
list Tom Diehl
Hi Christian,
▸
On Tue, 19 Apr 2022, Becker Christian wrote:
Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.)
Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.
I cannot get the above to work.
I have a file in analysis.d with the following in it:
HOST=fs1.mydomain.com
DISK C 90 95
DISK D 93 95
This was there when the D drive went offline and Xymon never alerted.
To test further, I dropped the warning for the D drive to 78 which is less than
the current usage of 79% and I added the below.
DISK z 93 95
What I found was the D drive went yellow as expected but the Z drive is ignored
as it does not exist.
I am running 4.3.30 from the Terebithia rpms.
Any other suggestions?
Regards,
--
Tom user-dcee455aaab0@xymon.invalid
▸
Regards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,
list David Boyer
Try setting it up for a file to exist on the drive. If the drive goes offline, the file will become non-existent and should alert. Dave
▸
On Wed, Apr 20, 2022 at 3:16 PM <user-dcee455aaab0@xymon.invalid> wrote:
Hi Christian, On Tue, 19 Apr 2022, Becker Christian wrote:Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.) Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.I cannot get the above to work. I have a file in analysis.d with the following in it: HOST=fs1.mydomain.com DISK C 90 95 DISK D 93 95 This was there when the D drive went offline and Xymon never alerted. To test further, I dropped the warning for the D drive to 78 which is less than the current usage of 79% and I added the below. DISK z 93 95 What I found was the D drive went yellow as expected but the Z drive is ignored as it does not exist. I am running 4.3.30 from the Terebithia rpms. Any other suggestions? Regards, -- Tom user-dcee455aaab0@xymon.invalidRegards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,
list Becker Christian
All, think i have to apologize..... you're right, my idea doesn't work. Dave's solution works, just tested. Nevertheless it's a bit foolish that powershell client cannot report "non present" disks that have been present..... Greetings Christian
▸
Von: David Boyer <user-a6c09f28d9d2@xymon.invalid>
Gesendet: Mittwoch, 20. April 2022 22:04
An: user-dcee455aaab0@xymon.invalid
Cc: Becker Christian <user-e4a19bfb94c0@xymon.invalid>; xymon at xymon.com
Betreff: Re: [Xymon] Can Xymon alert for a missing disk on windows
Try setting it up for a file to exist on the drive. If the drive goes offline, the file will become non-existent and should alert.
Dave
On Wed, Apr 20, 2022 at 3:16 PM <user-dcee455aaab0@xymon.invalid<mailto:user-dcee455aaab0@xymon.invalid>> wrote:
Hi Christian,
On Tue, 19 Apr 2022, Becker Christian wrote:
Tom,
the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section.
Example:
HOST=WINDOWSSERVER
DISK C 85 90
DISK D 55 70
(Pls note that changes like this could take some minutes before they are reflected by xymon.)
Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.I cannot get the above to work. I have a file in analysis.d with the following in it:
HOST=fs1.mydomain.com<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Ffs1.mydomain.com%2F&data=user-d191750adb4f@xymon.invalid%7C092c7bea6e264e986aed08da2308f62f%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C637860818648835197%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Gf2KKsYhPP%2Bw2q8s7gkv%2BGl8sfubFhzPNSbMKYlTmlM%3D&reserved=0>;
▸
DISK C 90 95
DISK D 93 95
This was there when the D drive went offline and Xymon never alerted.
To test further, I dropped the warning for the D drive to 78 which is less than
the current usage of 79% and I added the below.
DISK z 93 95
What I found was the D drive went yellow as expected but the Z drive is ignored
as it does not exist.
I am running 4.3.30 from the Terebithia rpms.
Any other suggestions?
Regards,
--
Tom user-dcee455aaab0@xymon.invalid<mailto:user-dcee455aaab0@xymon.invalid>
▸
Regards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> Im Auftrag von user-dcee455aaab0@xymon.invalid<mailto:user-dcee455aaab0@xymon.invalid> Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com<mailto:xymon at xymon.com> Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,
Xymon at xymon.com<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=user-d191750adb4f@xymon.invalid%7C092c7bea6e264e986aed08da2308f62f%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C637860818648835197%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WYXOPT57L%2Bkfsedoos3Jh98VJxurCn%2B2Xz9Thg7kXvI%3D&reserved=0>;
list Tom Diehl
Hi, Resending this as I sent it from the wrong address and figured it would get moderated. Sorry for the duplicate message.
▸
On Wed, 20 Apr 2022, David Boyer wrote:
Try setting it up for a file to exist on the drive. If the drive goes offline, the file will become non-existent and should alert.
That sounds like a great idea, however I cannot for the life of me get Xymon to see any files. The msgs column just stays clear. I have added the following to client-local.cfg: [host=fs1.mydomain.com] file:D:\Canary_DO_NOT_Delete.txt as well as "FILE D:\Canary_DO_NOT_Delete.txt" to analysis.cfg file. I also see the following in the powershell client log: 2022-04-28 12:57:38.030 Connecting to host XX.XX.XX.178 2022-04-28 12:57:38.061 Sent 112 bytes to server 2022-04-28 12:57:38.265 Received 0 bytes from server 2022-04-28 12:57:38.265 XymonProcessRuntimeCheck finished Based on the above it looks like the Xymon server is not sending the client-local data to the client. Is there something I need to do to get Xymon to send the client-local data to the client or am I missing something else? Regards, -- Tom user-dcee455aaab0@xymon.invalid
▸
Dave On Wed, Apr 20, 2022 at 3:16 PM <user-dcee455aaab0@xymon.invalid> wrote:Hi Christian, On Tue, 19 Apr 2022, Becker Christian wrote:Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.) Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.I cannot get the above to work. I have a file in analysis.d with the following in it: HOST=fs1.mydomain.com DISK C 90 95 DISK D 93 95 This was there when the D drive went offline and Xymon never alerted. To test further, I dropped the warning for the D drive to 78 which is less than the current usage of 79% and I added the below. DISK z 93 95 What I found was the D drive went yellow as expected but the Z drive is ignored as it does not exist. I am running 4.3.30 from the Terebithia rpms. Any other suggestions? Regards, -- Tom user-dcee455aaab0@xymon.invalidRegards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,
list Timothy Williams
First, make sure the xymonclient_config.xml contains the line <clientremotecfgexec>1</clientremotecfgexec> to tell the script to get the remote config file from Xymon server. *Tim Williams* Windows Server *Operating Systems Analyst*
▸
On Thu, Apr 28, 2022 at 1:54 PM <user-dcee455aaab0@xymon.invalid> wrote:
Hi, Resending this as I sent it from the wrong address and figured it would get moderated. Sorry for the duplicate message. On Wed, 20 Apr 2022, David Boyer wrote:Try setting it up for a file to exist on the drive. If the drive goes offline, the file will become non-existent and should alert.That sounds like a great idea, however I cannot for the life of me get Xymon to see any files. The msgs column just stays clear. I have added the following to client-local.cfg: [host=fs1.mydomain.com] file:D:\Canary_DO_NOT_Delete.txt as well as "FILE D:\Canary_DO_NOT_Delete.txt" to analysis.cfg file. I also see the following in the powershell client log: 2022-04-28 12:57:38.030 Connecting to host XX.XX.XX.178 2022-04-28 12:57:38.061 Sent 112 bytes to server 2022-04-28 12:57:38.265 Received 0 bytes from server 2022-04-28 12:57:38.265 XymonProcessRuntimeCheck finished Based on the above it looks like the Xymon server is not sending the client-local data to the client. Is there something I need to do to get Xymon to send the client-local data to the client or am I missing something else? Regards, -- Tom user-dcee455aaab0@xymon.invalidDave On Wed, Apr 20, 2022 at 3:16 PM <user-dcee455aaab0@xymon.invalid> wrote:Hi Christian, On Tue, 19 Apr 2022, Becker Christian wrote:Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.) Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.I cannot get the above to work. I have a file in analysis.d with the following in it: HOST=fs1.mydomain.com DISK C 90 95 DISK D 93 95 This was there when the D drive went offline and Xymon never alerted. To test further, I dropped the warning for the D drive to 78 which is less than the current usage of 79% and I added the below. DISK z 93 95 What I found was the D drive went yellow as expected but the Z drive is ignored as it does not exist. I am running 4.3.30 from the Terebithia rpms. Any other suggestions? Regards, -- Tom user-dcee455aaab0@xymon.invalidRegards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,
list Tom Diehl
Hi Timothy,
▸
On Thu, 28 Apr 2022, Timothy Williams wrote:
First, make sure the xymonclient_config.xml contains the line <clientremotecfgexec>1</clientremotecfgexec> to tell the script to get the remote config file from Xymon server.
Yes, it is there but your suggestion made me take a closer look at the xymonclient_config.xml file and I found that the clientconfigfile directive was pointed at a non-existant path. DUH!! Once I fixed that things started working. Thanks to all that helped. Regards, -- Tom user-dcee455aaab0@xymon.invalid
▸
On Thu, Apr 28, 2022 at 1:54 PM <user-dcee455aaab0@xymon.invalid> wrote:Hi, Resending this as I sent it from the wrong address and figured it would get moderated. Sorry for the duplicate message. On Wed, 20 Apr 2022, David Boyer wrote:Try setting it up for a file to exist on the drive. If the drive goes offline, the file will become non-existent and should alert.That sounds like a great idea, however I cannot for the life of me get Xymon to see any files. The msgs column just stays clear. I have added the following to client-local.cfg: [host=fs1.mydomain.com] file:D:\Canary_DO_NOT_Delete.txt as well as "FILE D:\Canary_DO_NOT_Delete.txt" to analysis.cfg file. I also see the following in the powershell client log: 2022-04-28 12:57:38.030 Connecting to host XX.XX.XX.178 2022-04-28 12:57:38.061 Sent 112 bytes to server 2022-04-28 12:57:38.265 Received 0 bytes from server 2022-04-28 12:57:38.265 XymonProcessRuntimeCheck finished Based on the above it looks like the Xymon server is not sending the client-local data to the client. Is there something I need to do to get Xymon to send the client-local data to the client or am I missing something else? Regards, -- Tom user-dcee455aaab0@xymon.invalidDave On Wed, Apr 20, 2022 at 3:16 PM <user-dcee455aaab0@xymon.invalid> wrote:Hi Christian, On Tue, 19 Apr 2022, Becker Christian wrote:Tom, the following should do it for you: try to include the disks of the mentioned windows server in analysis.cfg with the needed options, even if they already show up in the disk section. Example: HOST=WINDOWSSERVER DISK C 85 90 DISK D 55 70 (Pls note that changes like this could take some minutes before they are reflected by xymon.) Now xymon knows that you explicitly want to know about these disks. You can verify this if you add a disk in this section that doesn't exist on the windows server: after a couple of minutes, xymon should report this disk as red in the disk section.I cannot get the above to work. I have a file in analysis.d with the following in it: HOST=fs1.mydomain.com DISK C 90 95 DISK D 93 95 This was there when the D drive went offline and Xymon never alerted. To test further, I dropped the warning for the D drive to 78 which is less than the current usage of 79% and I added the below. DISK z 93 95 What I found was the D drive went yellow as expected but the Z drive is ignored as it does not exist. I am running 4.3.30 from the Terebithia rpms. Any other suggestions? Regards, -- Tom user-dcee455aaab0@xymon.invalidRegards and good luck! Christian -----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von user-dcee455aaab0@xymon.invalid Gesendet: Donnerstag, 14. April 2022 22:58 An: xymon at xymon.com Betreff: [Xymon] Can Xymon alert for a missing disk on windows? Hi, Is there a way to have Xymon alert if a disk is missing on a Windows server? I have the win_ps_client installed on them and I see the disks listed in the client data. Is it possible to configure Xymon to alert is one of those disks is missing? We had a server that one of the disks went off line after updates were installed and the machine was rebooted (Thanks Microsoft). Xymon was happy but the users were not. My Google foo has not yielded anything useful but I feel like this should be possible without resorting to Powershell weirdness. Regards,