Page 1 of 1

Problem with "Status Information" on Nagios

Posted: Fri Nov 08, 2013 3:38 pm
by vrojasmontenegro
Friends,

I have a problem with my NAGIOS, what happens is that this system is working perfect but the service monitor, precisely in the "status information" does not appear as I would, I would like to appear for example 30% of hard drive space and 71147728 as shown.

I'm working with 3.4.1 NAGIOS and machines have enabled SNMP monitored.

The only thing I miss is that status information appears in a more professional, more clear

This is my code:

define command{
command_name snmp_SwapFree
command_line $USER1$/check_snmp -o .1.3.6.1.4.1.2021.9.1.7.1 -H $HOSTADDRESS$ $ARG1$
}

define service {
use generic-service
hostgroup_name plataforma-linux
service_description HARD DISK
check_command snmp_SwapFree! -C public
}

How I can do it? , I need to use SNMP or NRPE not anything like

atacched image

THANKS A LOT!!!

Re: Problem with "Status Information" on Nagios

Posted: Sun Nov 10, 2013 8:58 pm
by vrojasmontenegro
Please help me!!!

Thanks

Re: Problem with "Status Information" on Nagios

Posted: Mon Nov 11, 2013 11:01 am
by slansing
Do not double post, we will answer you as soon as possible, also, double posting actually bumps you lower on our list.

In any case, the check_snmp plugin's usage is located here:

https://www.nagios-plugins.org/doc/man/check_snmp.html

If you cannot modify the output with those flags to fit what you want, you will have to use a different plugin, or modify the source for check_snmp and then re-compile.

Re: Problem with "Status Information" on Nagios

Posted: Mon Nov 11, 2013 11:37 am
by vrojasmontenegro
slansing wrote:Do not double post, we will answer you as soon as possible, also, double posting actually bumps you lower on our list.

In any case, the check_snmp plugin's usage is located here:

https://www.nagios-plugins.org/doc/man/check_snmp.html

If you cannot modify the output with those flags to fit what you want, you will have to use a different plugin, or modify the source for check_snmp and then re-compile.

THE ONLY THING I NEED IS TO APPEAR AS CHARACTER % IN STATUS INFORMATION, THE DATA IS OK!
HOW CAN I MANUALLY ENTER THAT CHARACTER??? OR IS SNMP_CHECK VARIABLES THAT IS THE FACT THAT BRINGS?
I RECOMPILED, BUT THE PROBLEM IS THE SAME

THANKS YOU

Re: Problem with "Status Information" on Nagios

Posted: Mon Nov 11, 2013 11:57 am
by abrist
Lets be civil here . . .
check_snmp returns only what is reported from snmp. In your check's case, that is an integer, not a percentage. You will need to use another plugin script from the exchange, or else you will need to write a custom plugin/wrapper script.