Pnpnagios package loss error

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.
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post 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,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post 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.
Attachments
host1.JPG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post 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
Attachments
ping.JPG
perf data.JPG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alex3105
Posts: 103
Joined: Sat Jul 28, 2018 10:54 am

Re: Pnpnagios package loss error

Post by alex3105 »

Thanks for the support .. I'll make the changes ..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pnpnagios package loss error

Post by scottwilkerson »

alex3105 wrote:Thanks for the support .. I'll make the changes ..
sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked