Nagios monitoring server raid card and hard state problem

Recently on the IBM X3650 server is installed on the nagios-3.5.0, plugins-1.4.16, to monitor the physical hard disk interface in the Nagios state, the Nagios exchange was found in two, is based on the MecaCli plug-in tools, one is check_megaraid_sas: .
One is the check_raid:
.
Installed MecaCli tools, at the command line with root users run the two scripts are no problem, can display properly, as follows:
1, WARNING: 0:0:RAID-5:6 drives:4.541TB:Optimal Drives:6 (28 Errors)
2, OK: MegaCli:[0 Vols: , 6 Devs: 12:Online,13:Online,10:Online,09:Online,11:Online,08:Online]
With Nagios users run the two scripts will have problems, as shown below:
1, OK: Drives:0
2, OK: MegaCli:[0 Vols: , 0 Devs: ]
After the discovery of Nagios may not have permission to perform the megcali command to get information, so in the script to run the megcali command place with sodu, and joined the Nagios ALL= in the /etc/sudoers file (ALL) NOPASSWD: /usr/bin/megacli, the command line can be normal operation, with root users run the script showed the same results.

But found that access to the remote host with check_nrpe -H IP -c check_raid state is not normal, the monitoring interface Nagios display is not normal.




You can have this god please stay, please solve, thank you!

Started by Ulysses at February 02, 2016 - 8:29 PM

See the strace.

Posted by Jerry at February 05, 2016 - 8:45 PM

Check the environment variables

Posted by Constance at February 09, 2016 - 9:44 PM

How to see ah?

Posted by Ulysses at January 03, 2017 - 5:39 PM

What are the problems of environment variables?

Posted by Ulysses at January 05, 2017 - 6:36 PM

strace urcommand

Posted by Jerry at January 09, 2017 - 7:27 PM

Have solved the problem, is the Nagios permissions.

Posted by Ulysses at January 10, 2017 - 8:11 PM

Install the manufacturer agent, SNMP can be used to get the hardware and RAID information.
040.jpg

Posted by Jackson at January 14, 2017 - 7:47 PM