Using External script.
Posted: Wed Dec 01, 2021 11:42 am
Hi Team,
We have created a script to fetch logged in users details and we are passing arguments(user names) through nagios commad.
We have made script in a way if a personal name is not present in the argument list and that user logs in then we should get critical alert.
It is a PowerShell script for windows server and we are using NSC client. When we are executing script on windows server it is giving proper results
not able fetch arguments executing it from nagios. We are not getting alert as critical always.
Attaching script: Attaching changes made on NSC configuration file: Command executing on nagios server.
/usr/local/nagios/libexec/check_nrpe -2 -H 10.148.156.30 -t 30 -c check_users -a '@("gautam.s","rashi.kansara","kanhaiyadas.m")'
We have created a script to fetch logged in users details and we are passing arguments(user names) through nagios commad.
We have made script in a way if a personal name is not present in the argument list and that user logs in then we should get critical alert.
It is a PowerShell script for windows server and we are using NSC client. When we are executing script on windows server it is giving proper results
not able fetch arguments executing it from nagios. We are not getting alert as critical always.
Attaching script: Attaching changes made on NSC configuration file: Command executing on nagios server.
/usr/local/nagios/libexec/check_nrpe -2 -H 10.148.156.30 -t 30 -c check_users -a '@("gautam.s","rashi.kansara","kanhaiyadas.m")'