Hi,
this is rather an easy job, but i´m lost at last, PRTG does not understand me, maybe anyone can help?
I´m new to PRTG, coming from the Nagios-Corner, lots of common, lots of differences...
So, on my monitored Linux machines, there is already the package "monitoring-plugins-basic" installed, so why don´t use that? check_apt does the job fine, as we can see
/usr/lib/nagios/plugins/check_apt
APT OK: 0 packages available for upgrade (0 critical updates). |available_upgrades=0;;;0 critical_updates=0;;;0
Fine...
Now using ssh-script sensor on that, and prtg throws an error, what was expected...
Antwort nicht wohlgeformt: "APT OK: 0 packages available for upgrade (0 critical updates). |available_upgrades=0;;;0 critical_updates=0;;;0 "
PRTG awaits a number, not a text. So, trying to be clever and formatting the output a bit...
/usr/lib/nagios/plugins/check_apt |cut -d ' ' -f 3
0
Thats what we want!
But on the ssh-script sensor, the result is
Antwort nicht wohlgeformt: "0 " (Code: PE132)
And that where I am lost...what am I doing wrong?
Regards
Add comment