Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hello,
I have two ways of disks monitoring on Windows via nrpe ... and none of them are perfect.
1. Single service for every disk, ex. Disk usage C:, Disk usage D: etc - fails when new disk appears (E: plugged in today ).
2. All disk at one service but I receive only one critical notification when C: reached the critical state, when D: also came to critical there is no alert ...
drivesize = check_drivesize "crit=free<1g" drive=* "filter=type in ('fixed', 'remote')"
And the problem is when one of three disks reach the critical level, service will generate alert, but few minutes later second drive reach the critical level too, I will not receive alert with 2nd disk because service already was in the critical state
1. Correct in scenario 1 you'd need separate checks.
2. Correct, an single notification event is tied directly to a service.
It sounds like you want some type of infrastructure to dynamically monitor all disks independently. There is nothing which does this to my knowledge. Such a setup would be possible but it would take something that is aware of the remote configuration as it should be and then have the appropriate configuration applied to Nagios. You might want to look a real configuration tool like Ansible or something. Nagios XI also has an API that could be leveraged for some of this.
I combined with the stalking option ... but it starts spam me with every change of disk usage ... even 1MB
That is why I didn't recommend it.
No as I already stated there is nothing that will dynamically alter services in Nagios as things come in and out of existence. You'd need something more to accomplish that. If you want to pursue it you may find this document helpful: https://assets.nagios.com/downloads/nag ... gement.pdf
We do offer custom development for a fee. If you are interested let me know and I'll get you in touch with the correct people.