Citrix Netscaler monitoring status information shown as null in icinga1.6 dashboard

Hi Team,
Need your help as i am unable to get the correct status information while configuring the citrix netscalar monitoring in icinga1.6.

Status information shown as null.

Command definition:

define command {
command_name check_netscaler_Memory
command_line /opt/icinga/libexec/plugins/official/check_netscaler.pl -H $HOSTADDRESS$ -s -C above -o system -n memusagepcnt -w ‘$ARG1$’ -c ‘$ARG2$’ -u username -p passwd
}
define command {
command_name check_netscaler_CPU
command_line /opt/icinga/libexec/plugins/official/check_netscaler.pl -H $HOSTADDRESS$ -s -C above -o system -n mgmtcpuusagepcnt -w ‘$ARG1$’ -c ‘$ARG2$’ -u username -p passwd
}

Service definition:

define service {
service_description NetScaler::System:Memory
hostgroup_name Citrix NetScalar Servers
use generic-service
check_command check_netscaler_Memory!75!80
max_check_attempts 3
}
define service {
service_description NetScaler::System:CPU
hostgroup_name Citrix NetScalar Servers
use generic-service
check_command check_netscaler_CPU!75!80
max_check_attempts 3
}

Please assist on this issue.

Hello

First thing, Icinga1 has been EOL for a long time and I highly recommend you upgrade and migrate to Icinga2.

Second thing is that we can not understand what is wrong on the issue as we are missing information:
Can you share an output of the command execution both from the CLI and also from the debug log ?

1 Like

Hi,

We have attached the screenshot of dashboard and we are able to execute the command manually and get the result only thing is dashboard we can see status information as null. Please find the attached screen shot.

Manually execution of command:

mkdcvmon01:/opt/icinga/libexec/plugins/official[ 54 ] --> ./check_netscaler.pl -H SGPAZCTXNSP01 -s -C above -o system -n mgmtcpuusagepcnt -w ‘75’ -c ‘80’ -u uuuuu -p pppp
NetScaler OK - above: system.mgmtcpuusagepcnt: 14.2 | ‘system.mgmtcpuusagepcnt’=14.2;75;80
mkdcvmon01:/opt/icinga/libexec/plugins/official[ 55 ] -->

Are you trying the manual execution in the same user context as icinga?

yes i am able to execute as icinga user

Can you identify anything related in the logs/debug.logs?

Any special characters in the password, that might lead to a misinterpretation of the command when run by the icinga core?
Characters causing problems could be !, ', $, but also others could possibly make problems.

vim /var/log/icinga/icinga.log

Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:CPU;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:CPU MGMT;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:DISK0;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:DISK1;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:HASTATE;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:HASTATUS;CRITICAL;HARD;3;(null)
Aug 26 00:00:00 s_local@mkdcvmon01 icinga: CURRENT SERVICE STATE: SGPAZCTXNSP01;NetScaler::System:Memory;CRITICAL;HARD;3;(null)

No we didn’t use special characters in password

i though issue may be environment variable specified in script.

mkdcvmon01:/opt/icinga/libexec/plugins/check_netscaler-master[ 58 ] --> cat check_netscaler.pl
#!/usr/bin/env perl

i don’t where needs to do changes as i am newly configured this service.
i am stuck here since 3 months
Please help any one