Search found 29 matches
- Wed Jul 27, 2016 1:39 pm
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
I figured out my syntax. I have it working great! Thanks all for the help! The key was the systax on the arguments and the allow nasty characters in the nsclient config. Final Service Code: define service{ use doceserve-services host_name doc-e-serve service_description Fileage Verification of C:\Do...
- Wed Jul 27, 2016 1:00 pm
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
That got rid of the meta character issue. Now getting. Unknown argument: -a Service Code: define service{ use doceserve-services host_name doc-e-serve service_description Fileage Verification of C:\Doceserve\Active check_command check_nrpe!CheckFiles!-a path='C:\\WJTNagiosTest' pattern=*.* 'master-s...
- Wed Jul 27, 2016 11:30 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
So, based on my code in my command definition: # 'check_nrpe' command definition define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ } I changed my service code to this: define service{ use doceserve-services host_name doc-e-serve service_desc...
- Wed Jul 27, 2016 11:11 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
Thanks for your help! I have done this code for my service, but I am getting a error on verifying the config in nagios. Service Code: define service{ use doceserve-services host_name doc-e-serve service_description Fileage Verification of C:\Doceserve\Active check_command check_nrpe -c CheckFiles -a...
- Tue Jul 26, 2016 3:42 pm
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
How do I check the number of files in a folder using check_nt?
- Tue Jul 26, 2016 10:12 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
The intention is to use the plugin to check the number of files in folder specified in my code above. This is a folder on a remote windows machine. The remote machine (host) is running the NSClient++ agent on the remote windows host. I saw some examples of how to use the nsclient cfg file to basical...
- Tue Jul 26, 2016 7:18 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
Well, I was able to solve the error regarding the (Return code 13 being out of bounds). This was a permission issue on the plugin it self. The service is showing green and reporting 0 files. I dropped three files in the folder, which should have generated a warning. The service is still green and re...
- Tue Jul 26, 2016 7:07 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
The final nail ended up being a permission issue with the plugin. I did a chmod 755 on check_numoffiles.sh and restarted the nagios. It seems to be now reporting correctly.
- Tue Jul 26, 2016 6:55 am
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
I have corrected the command syntax. I now get (Return code of 13 is out of bounds) in the Nagios reported error. Command Definition Code: #'check_numoffiles' command definition define command{ command_name check_numoffiles.sh command_line $USER1$/check_numoffiles.sh -d $ARG1$ -w $ARG2$ -c $ARG3$ } ...
- Mon Jul 25, 2016 4:06 pm
- Forum: Open Source Nagios Projects
- Topic: Trying to setup plugin check_numoffiles.sh
- Replies: 21
- Views: 8847
Re: Trying to setup plugin check_numoffiles.sh
So, I am real close. I was able to get things to pass the verification. However, I get the following warning from Nagios. It is complaining about the path. ----------------------- (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_numoffiles, ...) failed. errno is 2: No such file o...