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 <davieb at gmail.com> Gesendet: Mittwoch, 20. April 2022 22:04 An: me at tdiehl.org Cc: Becker Christian <christian.becker at rhein-zeitung.net>; 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 <me at tdiehl.org<mailto:me at tdiehl.org>> 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=05%7C01%7Cchristian.becker%40rhein-zeitung.net%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 me at tdiehl.org<mailto:me at tdiehl.org>
Regards and good luck! Christian
-----Urspr?ngliche Nachricht----- Von: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> Im Auftrag von me at tdiehl.org<mailto:me at tdiehl.org> 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 mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=05%7C01%7Cchristian.becker%40rhein-zeitung.net%7C092c7bea6e264e986aed08da2308f62f%7C4fed923898bc4f3b96450b99f4d1b669%7C0%7C1%7C637860818648835197%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=WYXOPT57L%2Bkfsedoos3Jh98VJxurCn%2B2Xz9Thg7kXvI%3D&reserved=0>