This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
ytlcomm
Posts: 62 Joined: Tue May 22, 2012 8:52 pm
Post
by ytlcomm » Thu May 24, 2012 9:54 pm
Hi guys,
This is my first time posting a post in this forum. Please guide me I have break any rules in posting in this forum.
Need your insight on this. I plan to monitor my Windows machine via SNMP and encountered a problem with 'Windows SNMP Wizard'. The check result showing "(Return code of 126 is out of bounds - plugin may not be executable) ". Refer below screenshot.
Capture2.PNG
However, with the same Windows server (different interface), I've tried register it using 'Linux SNMP Wizard' and get below screenshot.
Capture.PNG
Please advice what should I do now?
You do not have the required permissions to view the files attached to this post.
Last edited by
ytlcomm on Wed May 30, 2012 4:36 am, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri May 25, 2012 9:12 am
Run the following from terminal
Code: Select all
ll /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
I am guessing it is a permissions error
ytlcomm
Posts: 62 Joined: Tue May 22, 2012 8:52 pm
Post
by ytlcomm » Sun May 27, 2012 8:20 pm
Hi Scott,
Here is the output. Is it look ok to you?
Code: Select all
[root@nagios01 ~]# ll /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
ls: cannot access /usr/local/nagios/libexec/check_win_snmp_disk: No such file or directory
-rwxr-xr-x. 1 root root 408607 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp
-rw-r--r--. 1 root root 10951 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_boostedge.pl
-rw-r--r--. 1 root root 17866 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_cpfw.pl
-rw-r--r--. 1 root root 8747 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_css_main.pl
-rw-r--r--. 1 root root 16786 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_css.pl
-rw-r--r--. 1 root root 33562 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_env.pl
-rw-r--r--. 1 root root 31919 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_int.pl
-rw-r--r--. 1 root root 10108 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_linkproof_nhr.pl
-rw-r--r--. 1 root root 22965 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_load.pl
-rwxr-xr-x. 1 nagios users 22845 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_load_wizard.pl
-rw-r--r--. 1 root root 18734 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_mem.pl
-rw-r--r--. 1 root root 11898 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_nsbox.pl
-rw-r--r--. 1 root root 24233 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_process.pl
-rwxr-xr-x. 1 nagios users 26183 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_process_wizard.pl
-rw-r--r--. 1 root root 24002 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_storage.pl
-rwxr-xr-x. 1 nagios users 25484 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_storage_wizard.pl
-rw-r--r--. 1 root root 14489 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_vrrp.pl
-rw-r--r-- 1 root root 12440 May 23 15:22 /usr/local/nagios/libexec/check_snmp_win.pl
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue May 29, 2012 8:46 am
It looks like the permissions are not correct.
run the following:
Code: Select all
chmod +x /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
ytlcomm
Posts: 62 Joined: Tue May 22, 2012 8:52 pm
Post
by ytlcomm » Tue May 29, 2012 8:30 pm
Hi Scott,
Thanks. It worked!