hi all.
i’ve been using nagios 1.3 for a few weeks.
2 or 3 days ago i tried to add a service to monitor ldap.
theres a plugin named check_ldaps in libexec but when i try to run #./check_ldaps -help get an error which says that no file or folder found. i mean check_ldaps doesnt seem to be there. but when i ls, i can see it here
anyway i wrote my service definitions and restart nagios. wait for some time and get this error : Return code of 127 is out of bounds. plugin may be missing.
my eyes are gone ? or something wrong with nagios ?
now see ls results and tell me that your eyes are still works fine
Well, from the command line, check_ldaps won’t run unless you write the whole path. So if you want to run it from command line, it’d probably work if you executed /usr/local/nagios/libexec/./check_ldaps…
and then any options you felt necessary. Now, as for why it wont run in nagios…that, I can’t be sure. I’d check user/group permissions for that plugin and make sure the user nagios is running under is authorized to use that particular plugin.
all other plugins work fine. but check_ldaps not and dont know why.
would any one of you please give me the whole path to check check_ldaps from command line.
and if you dont mind please tell me how to write a command and service definition for check_ldaps.
maybe thats the point i am doing mistakes.
thanks in advance.
bye for now.
Yeah, you’ll need to write a command definition for check_ldaps. I assumed you’d already done that.
If you used the defaults during the installation, your path to check_ldaps would be /usr/local/nagios/libexec/check_ldaps. But to be sure, you’ll have to look in your resource.cfg file to find out what the $USER1$ macro is set to. That should be your base nagios directory.
I’m not familiar with check_ldaps, but a lot of times, if you try and just run the plugin from command line, it will return a list of options. In that case, you might be able to write the command by looking at your options and those of the commands that have already been written and seeing how they’ve been formatted.
i suppos the sql server you talk about is MSSQL… Check for nt_client. with that you can get snmp requests for any value you find in thw Windows performance monitor
[quote=“mfakbulut”]hi all.
root@localhost# ./check_ldaps -help
bash: ./check_ldaps: No such file or directory
Bye[/quote]
ls -la check_ldaps
lrwxrwxrwx 1 root root 10 Jun 25 16:23 check_ldaps -> check_ldap
ls -la check_ldap
-rwxr-xr-x 1 nagios nagios 40692 Jun 25 16:23 check_ldap
What are your permissions?
Now that I look more closely at your output of ls, I dont see the file check_ldap, but only the check_ldaps, which is a link in my folder.
So please show a ls -la of check_ldaps
but i dont understand if theres something wrong or missing thats why check_ldap not configured when installing plugins, then why the symlink is there ?
is this a nagios lack