Page 2 of 2

Re: PNP from Nagios XI GUI

Posted: Fri Sep 11, 2015 11:22 am
by r34220

Code: Select all

[root@az84mon11v libexec]# ./check_multi -f sdl_ftp.cmd
OK - 6 plugins checked, 6 ok [please don't run plugins as root!]
[ 1] az84_Phoenix TCP OK - 0.025 second response time on snjftp.sdlproducts.com port 21
[ 2] tx30_Oak_Hill TCP OK - 0.081 second response time on snjftp.sdlproducts.com port 21
[ 3] zch01_China TCP OK - 0.239 second response time on snjftp.sdlproducts.com port 21
[ 4] zfr11_Toulouse TCP OK - 0.169 second response time on snjftp.sdlproducts.com port 21
[ 5] zin45_India TCP OK - 0.264 second response time on snjftp.sdlproducts.com port 21
[ 6] zmy02_Kuala_Lumpur TCP OK - 0.229 second response time on snjftp.sdlproducts.com port 21|check_multi-check_multi-plugins=6 time=6.208602 az84_Phoenix::check_nrpe::time=0.025008s;;;0.000000;10.000000 tx30_Oak_Hill::check_nrpe::time=0.081251s;;;0.000000;10.000000 zch01_China::check_nrpe::time=0.239198s;;;0.000000;10.000000 zfr11_Toulouse::check_nrpe::time=0.168634s;;;0.000000;10.000000 zin45_India::check_nrpe::time=0.264030s;;;0.000000;10.000000 zmy02_Kuala_Lumpur::check_nrpe::time=0.229442s;;;0.000000;10.000000
Looks like that just fixes the perf data for the check_multi and not the other checks.

Re: PNP from Nagios XI GUI

Posted: Fri Sep 11, 2015 1:50 pm
by tgriep
We found more changes to remove the :: fron the output. Edit the check_multi file again and change the following
Line 3922 from this

Code: Select all

$perftmp="${name}::check_multi::$1 ";
to

Code: Select all

$perftmp="${name}-check_multi-$1 ";
Line 3937 from this

Code: Select all

$perftmp="\'$cmds[$no]{name}::${plugin}::$1\'=$2$3 ";
to

Code: Select all

$perftmp="\'$cmds[$no]{name}-${plugin}-$1\'=$2$3 ";
Line 3946 from this

Code: Select all

$perftmp="$cmds[$no]{name}::${plugin}::$cmds[$no]{performance} ";
to

Code: Select all

$perftmp="$cmds[$no]{name}-${plugin}-$cmds[$no]{performance} ";
Save it out and delete the rrd and xml files and see if that gets the rest.

Re: PNP from Nagios XI GUI

Posted: Fri Sep 11, 2015 2:05 pm
by r34220
That did it! Thanks for all the help!

Re: PNP from Nagios XI GUI

Posted: Fri Sep 11, 2015 2:08 pm
by hsmith
r34220 wrote:That did it! Thanks for all the help!
Glad to hear!

Are we all right to mark this one resolved and close it?

Re: PNP from Nagios XI GUI

Posted: Fri Sep 11, 2015 2:11 pm
by r34220
hsmith wrote:
r34220 wrote:That did it! Thanks for all the help!
Glad to hear!

Are we all right to mark this one resolved and close it?
Yes, Thank you.