check_sun_hardware
check_sun_hardware
Hi.
Nagios XI Version : 5.2.3
searnantmon01. 2.6.32-573.el6.x86_64 x86_64
CentOS release 6.7 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Server Name:
Server Address:
Server Port: 80
Have download (https://exchange.nagios.org/directory/P ... re/details) this checker for our sun fire x4170 m3 servers running as esxi hosts. Want to get hardware monitoting like check state of cpu, fans, temperature and voltage sensors like it says on the site.
Add the command as:
$USER1$/check_sun_hardware $ARG1$
COMMAND: /usr/local/nagios/libexec/check_sun_hardware
Error mess:
No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_sun_hardware, ...) failed. errno is 2: No such file or directory
Run the command from ssh putty
output:
[root@searnantmon01 ~]# /usr/local/nagios/libexec/check_sun_hardware
-bash: /usr/local/nagios/libexec/check_sun_hardware: /usr/local/bin/perl: bad in terpreter: No such file or directory
Nagios XI Version : 5.2.3
searnantmon01. 2.6.32-573.el6.x86_64 x86_64
CentOS release 6.7 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Server Name:
Server Address:
Server Port: 80
Have download (https://exchange.nagios.org/directory/P ... re/details) this checker for our sun fire x4170 m3 servers running as esxi hosts. Want to get hardware monitoting like check state of cpu, fans, temperature and voltage sensors like it says on the site.
Add the command as:
$USER1$/check_sun_hardware $ARG1$
COMMAND: /usr/local/nagios/libexec/check_sun_hardware
Error mess:
No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_sun_hardware, ...) failed. errno is 2: No such file or directory
Run the command from ssh putty
output:
[root@searnantmon01 ~]# /usr/local/nagios/libexec/check_sun_hardware
-bash: /usr/local/nagios/libexec/check_sun_hardware: /usr/local/bin/perl: bad in terpreter: No such file or directory
Re: check_sun_hardware
What is the output of perl -v?
For the other issue, I believe it's permission related. What are the permissions on /usr/local/nagios/libexec/check_sun_hardware? ls -l /usr/local/nagios/libexec/check_sun_hardware
For the other issue, I believe it's permission related. What are the permissions on /usr/local/nagios/libexec/check_sun_hardware? ls -l /usr/local/nagios/libexec/check_sun_hardware
Former Nagios Employee
Re: check_sun_hardware
perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
ls -l
-rwxrwxr-x 1 apache nagios 6695 Feb 26 09:40 /usr/local/nagios/libexec/check_sun_hardware
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
ls -l
-rwxrwxr-x 1 apache nagios 6695 Feb 26 09:40 /usr/local/nagios/libexec/check_sun_hardware
Re: check_sun_hardware
Can you edit that plugin and change this line from
to
Save it and see if that resolves the issue.
Code: Select all
#!/usr/local/bin/perl -wCode: Select all
#!/usr/bin/perl -wBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_sun_hardware
Now i get unknown status on the checker:
OUTPUT: PICL class must be defined
Usage:
check_sun_hardware [-d | --debug] [-e | --errors_only] -c <picld class>
check_sun_hardware [-h | --help]
check_sun_hardware [-V | --version]
run the follow:
/usr/local/nagios/libexec/check_sun_hardware --help
check_sun_hardware Revision: 0.1
Check status of SUN hardware via PICLD interface.
Usage:
check_sun_hardware [-d | --debug] [-e | --errors_only] -c <picld class>
check_sun_hardware [-h | --help]
check_sun_hardware [-V | --version]
Now supported next PICLD classes:
fan -- fan rpm and failures,
cpu -- cpu state at multicpu platform,
voltage -- voltage ranges,
temperature -- temperature sensors ranges.
Ranges of critical (of warning) state determine on hardware level of server.
This help info above is not much help.How should i configure this checker with $ARG ?
OUTPUT: PICL class must be defined
Usage:
check_sun_hardware [-d | --debug] [-e | --errors_only] -c <picld class>
check_sun_hardware [-h | --help]
check_sun_hardware [-V | --version]
run the follow:
/usr/local/nagios/libexec/check_sun_hardware --help
check_sun_hardware Revision: 0.1
Check status of SUN hardware via PICLD interface.
Usage:
check_sun_hardware [-d | --debug] [-e | --errors_only] -c <picld class>
check_sun_hardware [-h | --help]
check_sun_hardware [-V | --version]
Now supported next PICLD classes:
fan -- fan rpm and failures,
cpu -- cpu state at multicpu platform,
voltage -- voltage ranges,
temperature -- temperature sensors ranges.
Ranges of critical (of warning) state determine on hardware level of server.
This help info above is not much help.How should i configure this checker with $ARG ?
Re: check_sun_hardware
It looks like that check has to be installed in the remote server to work.
I found these links describing picld
http://docs.oracle.com/cd/E23824_01/htm ... cl-1m.html
Do you have SNMP running on that server so that could be used to monitor that hardware?
I found these links describing picld
http://docs.oracle.com/cd/E23824_01/htm ... cl-1m.html
Do you have SNMP running on that server so that could be used to monitor that hardware?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_sun_hardware
I wanna use this plugin for our esxi hosts running on sun fire x4170 m3 hardware, where in esxi should i place this plugin and how will the check command look like?
Yes snmp is running on these servers, i also want to use the plugin on vmboxes running solaris 10 what is the path i should upload it to, is it /usr/local/nagios/libexec/ and also here can you help to setup a commandline for the checker?
Yes snmp is running on these servers, i also want to use the plugin on vmboxes running solaris 10 what is the path i should upload it to, is it /usr/local/nagios/libexec/ and also here can you help to setup a commandline for the checker?
Re: check_sun_hardware
I think @tgriep was saying that you need to run this check_sun_hardware script on the remote machine instead of on the Nagios server. You would need to use something like NRPE to do so:
https://assets.nagios.com/downloads/nag ... g_NRPE.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... g_NRPE.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
Re: check_sun_hardware
Hi.
Can i install the nrpe agent on a esxi host after that copy over the check_sun_hardware file to the esxi host to what path, there is no nagios folder on the esxi like /usr/local/nagios/
will i also use the check_sun_hardware in the command line in $ARG?
Reason for this questions i have not been able to use the vmware MIB file for these Sun servers and im after the hardware features this script have.
Can i install the nrpe agent on a esxi host after that copy over the check_sun_hardware file to the esxi host to what path, there is no nagios folder on the esxi like /usr/local/nagios/
will i also use the check_sun_hardware in the command line in $ARG?
Reason for this questions i have not been able to use the vmware MIB file for these Sun servers and im after the hardware features this script have.
Re: check_sun_hardware
I just want to verify, Are you running VMWare on the sun fire x4170 m3 servers for the host operating system?
Be sure to check out our Knowledgebase for helpful articles and solutions!