do not enough $ARG$ for my service
Re: do not enough $ARG$ for my service
hi ben,
Thanks for your info. I can open the ticket, but our system is a high security system, offline system and you are unable to remote to the system from outside.
So is there another way to check this issue? do we need open the ticket as well?
Thanks.
Thanks for your info. I can open the ticket, but our system is a high security system, offline system and you are unable to remote to the system from outside.
So is there another way to check this issue? do we need open the ticket as well?
Thanks.
Re: do not enough $ARG$ for my service
Try doing this on the remote system:
Then restart the ncpa_listener and try again.
Code: Select all
mkdir /home/nagios
chown nagios.nagios /home/nagios
chmod 0700 /home/nagios
Re: do not enough $ARG$ for my service
hi ben,
i tried but no luck, nothing changed.
only its process show when run the plugin.
i tried but no luck, nothing changed.
only its process show when run the plugin.
You do not have the required permissions to view the files attached to this post.
Re: do not enough $ARG$ for my service
Add this to your /etc/sudoers:
Make sure these are set in your ncpa.cfg:
Restart the ncpa_listener service:
Then test:
That should do it. The sudo was required because the plugin is unable to get this info for the non-nagios services:
Code: Select all
nagios ALL=NOPASSWD: /bin/python3 /usr/local/ncpa/plugins/unix_check_OSprocess.py *Code: Select all
.py = python3 $plugin_name $plugin_args
run_with_sudo = unix_check_OSprocess.py
Code: Select all
systemctl restart ncpa_listenerCode: Select all
/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -P 5693 -t 'xxxxxx' -P 5693 -M 'plugins/unix_check_OSprocess.py' -q 'args=-wC 1 -cC 2 -wR 10 -cR 20 -wW 10 -cW 20 -wV 150 -cV 200'Code: Select all
if(data["io_counters"] == None) :
continueRe: do not enough $ARG$ for my service
hi ssax,
i tried but no luck.
it was not work from both nagios xi and remote server.
i tried but no luck.
it was not work from both nagios xi and remote server.
You do not have the required permissions to view the files attached to this post.
Re: do not enough $ARG$ for my service
Try removing the /bin from the python3 in the sudoers, I had to do that with mine.
Set your run_with_sudo to this (it's not asking for a full path):
After both of those changes, restart the ncpa_listener service and test again.
Set your run_with_sudo to this (it's not asking for a full path):
Code: Select all
run_with_sudo = unix_check_OSprocess.pyRe: do not enough $ARG$ for my service
I tried but not effect bro.
You do not have the required permissions to view the files attached to this post.
Re: do not enough $ARG$ for my service
The run_with_sudo one shouldn't be in the /etc/sudoers.
Edit your /etc/sudoers, and add this:
Make sure this line is in your /usr/local/ncpa/etc/ncpa.cfg on the remote system under the [plugin directives] section:
Make sure you can sudo with it now:
Then restart the ncpa_listener service and test:
- Remove the | wc -l from the command so that I can see the output from the command
Edit your /etc/sudoers, and add this:
Code: Select all
nagios ALL=NOPASSWD: /usr/bin/python3 /usr/local/ncpa/plugins/unix_check_OSprocess.pyCode: Select all
run_with_sudo = unix_check_OSprocess.pyCode: Select all
su - nagios
sudo /usr/bin/python3 /usr/local/ncpa/plugins/unix_check_OSprocess.py- Remove the | wc -l from the command so that I can see the output from the command
Code: Select all
systemctl restart ncpa_listenerRe: do not enough $ARG$ for my service
hi,
i tried and able to execute the command in remote server now.
But still not work fine from nagios xi using ncpa. How to do run with sudo from nagios xi?
(wc -l just for shortly and count the result)
i tried and able to execute the command in remote server now.
But still not work fine from nagios xi using ncpa. How to do run with sudo from nagios xi?
(wc -l just for shortly and count the result)
You do not have the required permissions to view the files attached to this post.
Re: do not enough $ARG$ for my service
Is this in your ncpa.cfg on the remote system? (it needs to be under the [plugin directives], then restart the ncpa_listener service)
Code: Select all
run_with_sudo = unix_check_OSprocess.py