Problem with "Status Information" on Nagios

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
vrojasmontenegro
Posts: 4
Joined: Mon Oct 28, 2013 2:06 pm

Problem with "Status Information" on Nagios

Post 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!!!
Attachments
SNMPD.CONF - Client Machine
SNMPD.CONF - Client Machine
Status Information on Nagios
Status Information on Nagios
vrojasmontenegro
Posts: 4
Joined: Mon Oct 28, 2013 2:06 pm

Re: Problem with "Status Information" on Nagios

Post by vrojasmontenegro »

Please help me!!!

Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Problem with "Status Information" on Nagios

Post 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.
vrojasmontenegro
Posts: 4
Joined: Mon Oct 28, 2013 2:06 pm

Re: Problem with "Status Information" on Nagios

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problem with "Status Information" on Nagios

Post 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.
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.
Locked