Page 1 of 1

Nagios PNP4Nagios Averaging Integer Value?

Posted: Thu Jul 28, 2022 10:48 pm
by MurbiesWalto
I have a powershell script in nagios which returns an integer using the built-in Windows netstat command. The command is as follows:

$conns = nestat -na | select-string -pattern "ESTABLISHED"
$NumberOfConnections = $conns.count
$NumberOfConnections
The output is something like:

123
Works as expected. But when I graph it Nagios and run the check every three minutes, the result is graphed in pnp4nagios like 120.657 or 125.124 (it's averaging the value like a float instead of omegle.2yu.co graphing the integer).

Does anyone know how I can force Nagios and PNP4Nagios RRDtool graphing for a specific service check to not average or round a result? In fact, because it's an integer, I don't want any decimal points at omeglz echat all. Any ideas?