Page 1 of 1

Check_openmanage

Posted: Thu May 02, 2013 8:12 am
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

Re: Check_openmanage

Posted: Thu May 02, 2013 10:59 am
by abrist
What is the full command you are using from the cli that is working?

Re: Check_openmanage

Posted: Fri May 03, 2013 2:46 am
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.

Re: Check_openmanage

Posted: Fri May 03, 2013 10:40 am
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

Re: Check_openmanage

Posted: Fri May 03, 2013 3:35 pm
by scottwilkerson
Thanks Gary!

Re: Check_openmanage

Posted: Tue May 07, 2013 3:38 am
by joke.manager
hi,

Sorry for my answer later, it works very well,

thank you.