Check_openmanage

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
joke.manager
Posts: 3
Joined: Thu May 02, 2013 7:59 am

Check_openmanage

Post by joke.manager »

Hello,

From the beging, i'm french, and i'm sorry for my english.

I use Nagios® Core™ 3.4.4 and i 've a question about the check_openmange.
When i use in the shell, the plugin works. And it returrn all informations.
It's also worked when i want to know the status form my fans.

Now in Nagios, i just want to have the status of my fan, but it return all information about my server :

OK - System: 'PowerVault NX3000 II', SN: 'XXXXXX', 12 GB ram (6 dimms), 2 logical drives, 6 physical drives

My host.cfg :

Code: Select all

define service {
        host_name                      Mon-serveur
        use                            template-services
        service_description            Baterie
        check_command                  check_openmanage!batteries
        contact_groups                 Nagios-admin
}
My command.cfg :

Code: Select all

define command{
        command_name    check_openmanage
        command_line $USER1$/check_openmanage -s -H $HOSTADDRESS$ $ARG1$
        }

Can you tell me where's my mistake ?

Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check_openmanage

Post by abrist »

What is the full command you are using from the cli that is working?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
joke.manager
Posts: 3
Joined: Thu May 02, 2013 7:59 am

Re: Check_openmanage

Post by joke.manager »

The command what i use is :

./check_openmanage -s -H 132.147.140.4

and i would like have just : ./check_openmanage -s -H 132.147.140.4 --only fans

on my config files but i don't know how config them.
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Check_openmanage

Post by gshergill »

Hi joke.manager,

Try this:

Code: Select all

define service {
        host_name                      Mon-serveur
        use                            template-services
        service_description            Baterie
        check_command                  check_openmanage!--only fans
        contact_groups                 Nagios-admin
}
Kind Regards,

Gary Shergill
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_openmanage

Post by scottwilkerson »

Thanks Gary!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
joke.manager
Posts: 3
Joined: Thu May 02, 2013 7:59 am

Re: Check_openmanage

Post by joke.manager »

hi,

Sorry for my answer later, it works very well,

thank you.
Locked