Page 2 of 4

Re: Pnpnagios package loss error

Posted: Fri Mar 01, 2019 9:15 am
by alex3105
Sorry for the delay,

I just confirmed that it is the same host .. all my computers monitored around 70 have the same configuration ..

regards

Re: Pnpnagios package loss error

Posted: Fri Mar 01, 2019 3:25 pm
by scottwilkerson
You might want to try adding -t 10 to the check-host-alive command definition to force it to complete in 10 seconds

Re: Pnpnagios package loss error

Posted: Fri Mar 01, 2019 4:57 pm
by alex3105
Dear Scottwilkerson,

Make the changes in the command ... restart Nagios .. I will now observe the monitoring as it behaves ..


define command {
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 10
}

Best Regards,

Re: Pnpnagios package loss error

Posted: Mon Mar 04, 2019 8:04 am
by scottwilkerson
alex3105 wrote:Dear Scottwilkerson,

Make the changes in the command ... restart Nagios .. I will now observe the monitoring as it behaves ..


define command {
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 -t 10
}

Best Regards,
Sounds good, let us know what you find

Re: Pnpnagios package loss error

Posted: Mon Mar 04, 2019 2:45 pm
by alex3105
Dear Scottwilkerson,

After applying the suggested change .. perform the registration of a host in my nagios ... then simulate the loss of connection to the network .. but I still do not observe changes in the graph, should show some activity graph if the connection in the second graphic of lost packages ...?

Host Status: DOWN (for 0d 0h 13m 20s)
Status Information: (Host check timed out after 30.01 seconds)

Best Regards.

Re: Pnpnagios package loss error

Posted: Mon Mar 04, 2019 5:19 pm
by scottwilkerson
In looking into another issue, it is possible you may have uncovered a bug in check_ping.

Can you change the command to the followin to use the check_icmp plugin to see if this resolves the issue

Code: Select all

define command {
command_name check-host-alive
command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000,80% -c 5000,100% -p 5 -t 10
}
Then restart nagios

Thanks!

Re: Pnpnagios package loss error

Posted: Tue Mar 05, 2019 10:13 am
by alex3105
Good morning Scottwilkerson,

It is possible to modify the command because it is not generating graphics in the pnpnagios in perfdata after restarting the nagios.

Best regards

Re: Pnpnagios package loss error

Posted: Tue Mar 05, 2019 4:29 pm
by scottwilkerson
Ok, let me propose an alternative that may resolve the problem.

Lets edit the nagios.cfg
and change the following items to 90 to allow enough time for the command to finish

Code: Select all

service_check_timeout=90
host_check_timeout=90

Re: Pnpnagios package loss error

Posted: Tue Mar 05, 2019 5:20 pm
by alex3105
Thanks for the support .. I'll make the changes ..

Re: Pnpnagios package loss error

Posted: Tue Mar 05, 2019 5:21 pm
by scottwilkerson
alex3105 wrote:Thanks for the support .. I'll make the changes ..
sounds good