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")'
Using External script.
Using External script.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Using External script.
It looks like you're using an old version of NSClient++, what version is listed next to NSClient++ on the remote system in Add/Remove programs in the Control Panel?
Send us the full output of these commands:
Send us the full output of these commands:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -V
/usr/local/nagios/libexec/check_nrpe -2 -H 10.148.156.30
/usr/local/nagios/libexec/check_nrpe -2 -H 10.148.156.30 -t 30 -c check_users -a '@("gautam.s","rashi.kansara","kanhaiyadas.m")'Re: Using External script.
NSC CLient ++ Version
Commands Output
Commands Output
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Using External script.
Tickets/posts are answered in the order they are received, they also have a one business day response time. You can see our hours of operation here:
https://www.nagios.com/contact/
What does the nsclient.log show on the remote system when that check fails?
I would upgrade the remote agent as it's using a really old version:
https://nsclient.org/download/
Then try again and see if that resolves it.
https://www.nagios.com/contact/
What does the nsclient.log show on the remote system when that check fails?
I would upgrade the remote agent as it's using a really old version:
https://nsclient.org/download/
Then try again and see if that resolves it.