Auto adding new logical disk added on Linux NCPA?
Posted: Tue May 25, 2021 3:26 pm
Hello. We have Nagios XI monitoring various Linux servers via NCPA.
When a new logical disk is added on a Linux NCPA, what would be best approach for automating creation of a new service check?
For example, if a new logical disk is added on a Linux NCPA, I would like to do something similar to the following:
1. Detect the new logical disk was added on the target NCPA
2. Send a notification that the new logical disk was detected
Optionally:
3. Automatically create a new Disk Usage service check for the target NCPA in XI
4. Apply the configuration
I'm assuming all of this can be scripted via API calls, but I'm curious if there's a better or more common approach, or if I'm perhaps overlooking something already in XI.
At the moment, I am manually adding new logical disks..
Thanks.
gd
When a new logical disk is added on a Linux NCPA, what would be best approach for automating creation of a new service check?
For example, if a new logical disk is added on a Linux NCPA, I would like to do something similar to the following:
1. Detect the new logical disk was added on the target NCPA
2. Send a notification that the new logical disk was detected
Optionally:
3. Automatically create a new Disk Usage service check for the target NCPA in XI
4. Apply the configuration
I'm assuming all of this can be scripted via API calls, but I'm curious if there's a better or more common approach, or if I'm perhaps overlooking something already in XI.
At the moment, I am manually adding new logical disks..
Thanks.
gd