PDA

View Full Version : User suspend


so4life
02-26-2015, 07:51 AM
Hi there,

We have a monitoring system that allow us to see high load information. In case when user uses more then 20% cpu he is stopped automatically by the system.
But ISPmanager still show that user is active.
We would like to integrate our system with ISPmanager. So, is there any way to suspend user in ISPmanager via API ?

fly
02-26-2015, 01:09 PM
Hi,

To suspend user via API execute the command in cli

/usr/local/mgr5/sbin/mgrctl -m ispmgr user.suspend elid=username

or

https://ip:port/ispmgr?func=user.suspend&elid=username