I've been working on a script to silently install NSClient++ on target systems. I'm trying to programmatically add scheduled checks that are submitted via NSCA, which is working so far, except for one. I can't seem to properly configure check_drivesize. This is what I want the key to read:
Code: Select all
Drive Space C: = check_drivesize "warn=free<10G and free<10%" "crit=free<5G and free<5%" drive=c: show-all
Code: Select all
.\nscp settings --path "/settings/scheduler/schedules" --key "Drive Space C:" --set "check_drivesize "warn=free<10G and free<10%" "crit=free<5G and free<5%" drive=c: show-all"
Code: Select all
Drive Space C: = check_drivesize
I realize that this question may be better suited to the NSClient++ forums, but that website is currently down, so I figured I'd post here on the off-chance that someone can help me.
Thank you very much.